-
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
Run examples on Java21 #28969
Run examples on Java21 #28969
Conversation
@@ -77,7 +77,9 @@ jobs: | |||
uses: actions/setup-java@v3.8.0 | |||
with: | |||
distribution: 'temurin' | |||
java-version: ${{ matrix.java_version }} | |||
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.
previous setting was not quite what we want. We want beam (java core, runners) compile with Java8 and test compile and run with Java11/17/21.
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.
However, we do want the example jar to be compiled on Java11/17/21, see #28967 as followups
001693c
to
f67cfa7
Compare
Codecov Report
@@ Coverage Diff @@
## master #28969 +/- ##
=======================================
Coverage 38.37% 38.37%
=======================================
Files 686 686
Lines 101685 101685
=======================================
Hits 39018 39018
Misses 61087 61087
Partials 1580 1580
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
5444d5c
to
f226b33
Compare
* upgrade gradle 8,3 -> 8.4 * Use temurin 21 base image as its available now * Setup Java21 JPMS postcommits * Setup Java21 Example PostCommit on DataflowV2 * Fix kotlin test
Tested by equivalent gradle command Java Examples
jobId: 2023-10-23_13_51_50-1524320457990904336 2023-10-23_13_51_48-3336529009400839971 2023-10-23_13_51_48-540232565689758221 2023-10-23_13_51_48-7689190307853488284 in project apache-beam-testing all have "userAgent Apache_Beam_SDK_for_Java/2.52.0-SNAPSHOT(JRE_21_environment)" and passed JPMS
|
assign set of reviewers |
Assigning reviewers. If you would like to opt out of this review, comment R: @robertwb for label java. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
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.
Thanks - LGTM
Run Java_PVR_Flink_Batch PreCommit |
Part of #28967 ; fixes #23695
along with other cleanup on examples and java version handling
upgrade gradle 8.3 -> 8.4 which is needed for compiling and run tests with Java21
Use temurin 21 base image as its available now
Setup a few Java21 postcommits
Fix kotlin test
Fix javaVersion to be 1.8/11/17/21
Note that Java Dataflow runner v1 pending on internal java21 dev container release so not included in this PR
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.