-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Java 21 container #28833
Setup Java 21 container #28833
Conversation
Codecov Report
@@ Coverage Diff @@
## master #28833 +/- ##
==========================================
+ Coverage 72.16% 72.19% +0.02%
==========================================
Files 686 686
Lines 101560 101590 +30
==========================================
+ Hits 73287 73338 +51
+ Misses 26695 26671 -24
- Partials 1578 1581 +3
Flags with carried forward coverage won't be shown. Click here to find out more. see 19 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
2552df3
to
ca9ad81
Compare
Example wordcount job (maven project) on Dataflow: https://console.cloud.google.com/dataflow/jobs/us-central1/2023-10-05_17_20_31-16427189156223040319?project=google.com%3Aclouddfe However not able to setup Java21 test within beam repo yet as gradle not yet support Java 21. Currently Java invocation fails with
but if not providing these args, it fails with
|
@@ -95,7 +95,7 @@ jobs: | |||
-PloadTest.mainClass=org.apache.beam.sdk.loadtests.GroupByKeyLoadTest \ | |||
-Prunner=:runners:google-cloud-dataflow-java \ | |||
-Prunner.version=V2 \ | |||
-PcompileAndRunTestsWithJava11 \ | |||
-PtestJavaVersion=11 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this flag change is to address #28726 (comment) (later planned as part of Java21 support: #28120 (comment))
@@ -0,0 +1,10 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although same options are added as java17, it seems jamm still not working on Java21:
JVM prevents jamm from accessing subgraph - cache sizes may be underestimated
support left as next task
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
ARG java_version | ||
FROM eclipse-temurin:${java_version} | ||
FROM ${base_image}:${java_version} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we switched from openjdk to temurin in #25402 due to that openjdk image for java8 and 11 was deprecated. For now we still use temurin for 8,11,17; openjdk for 21 temporarily until upstream https://adoptium.net/blog/2023/09/temurin21-delay/ resolved
Assigning reviewers. If you would like to opt out of this review, comment R: @kennknowles for label java. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Because this PR changed test parameters (Jenkins, GHA), should be merged after 2.51.0 release finalized |
Note that temurin java21 has released in Oct 10th: https://adoptium.net/temurin/releases/ |
Run Java PreCommit |
Run PythonDocker PreCommit |
Run Python_PVR_Flink PreCommit |
Run Portable_Python PreCommit |
Run Java_PVR_Flink_Docker PreCommit |
tests either passed on GHA or Jenkins, merging |
* Add Java21 container * fix spotless * Update website * Fix jamm * align configs in recent change
This reverts commit e8e3814.
* Add Java21 container * fix spotless * Update website * Fix jamm * align configs in recent change
* Setup Java 21 container (#28833) * Add Java21 container * fix spotless * Update website * Fix jamm * align configs in recent change * incremental fixes * add more comments for when jpms test enabled
* Setup Java 21 container (apache#28833) * Add Java21 container * fix spotless * Update website * Fix jamm * align configs in recent change * incremental fixes * add more comments for when jpms test enabled
Part of #28120
After this PR, beam will start publishing java21 dev sdk container. A wordcount compiled with Java21 locally and run on Dataflow v2 with this container has passed.
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.