Repository navigation
[SPARK-60669][BUILD][INFRA][DOC] Drop Java 17 Support #59897
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ on: | |
| java: | ||
| required: false | ||
| type: string | ||
| default: 17 | ||
| default: 21 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking (P2): Moving this default to 21 silently disables Verification:
|
||
| branch: | ||
| description: Branch to run the build against | ||
| required: false | ||
|
|
@@ -953,7 +953,7 @@ jobs: | |
| export MAVEN_CLI_OPTS="--no-transfer-progress" | ||
| ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pkubernetes -Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud -Pjvm-profiler -Pspark-ganglia-lgpl -Pkinesis-asl -Pcredential-aws clean install | ||
| # Native data sources are called with the FFM API, which requires Java 22 or later, so the | ||
| # other jobs, on Java 17, skip the tests that load a library. The tests build their library | ||
| # other jobs, on Java 21, skip the tests that load a library. The tests build their library | ||
| # with the C++ compiler of the runner. | ||
| - name: Test native data sources | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,34 +17,23 @@ | |
| # under the License. | ||
| # | ||
|
|
||
| # This is a placeholder. Java 17 is not supported on master since Spark 5.0, so | ||
| # master does not run this build. The file exists here only so that the README | ||
| # build status badge, which resolves a workflow by its path on the default | ||
| # branch, renders for the branches that still run it (e.g. branch-4.x), and so | ||
| # that branch4*_scheduler.yml can dispatch it to those branches with | ||
| # `gh workflow run --ref`. The actual build is defined in the same file on | ||
| # those branches. | ||
|
|
||
| name: "Build / Java17 (Scala 2.13, JDK 17)" | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| run-build: | ||
| permissions: | ||
| packages: write | ||
| name: Run | ||
| uses: ./.github/workflows/build_and_test.yml | ||
| noop: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this file and
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you. I added a placeholder header to both files like |
||
| if: github.repository == 'apache/spark' | ||
| with: | ||
| java: 17 | ||
| hadoop: hadoop3 | ||
| envs: >- | ||
| { | ||
| "SCALA_PROFILE": "scala2.13", | ||
| "PYSPARK_IMAGE_TO_TEST": "", | ||
| "PYTHON_TO_TEST": "" | ||
| } | ||
| jobs: >- | ||
| { | ||
| "build": "true", | ||
| "sparkr": "true", | ||
| "tpcds-1g": "true", | ||
| "docker-integration-tests": "true", | ||
| "k8s-integration-tests": "true", | ||
| "oidc-e2e": "true", | ||
| "lint" : "true" | ||
| } | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: No-op | ||
| run: echo "Java 17 is not built on this branch. See branches that still support it (e.g. branch-4.x)." | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| # under the License. | ||
| # | ||
|
|
||
| name: "Build / Maven (Scala 2.13, JDK 17)" | ||
| name: "Build / Maven (Scala 2.13, JDK 21)" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit (P3): This name is already used by See Shared repair plan 2 in the review body. |
||
|
|
||
| on: | ||
| schedule: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ on: | |
| java: | ||
| required: false | ||
| type: string | ||
| default: 17 | ||
| default: 21 | ||
| python: | ||
| required: false | ||
| type: string | ||
|
|
||
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.
Nit (P3): Without the JDK 17 option, nothing can regenerate the unsuffixed baseline files.
BenchmarkBase.scala:55still suffixes result files only whenversion > 17, so every run this workflow can launch writes-jdk21or-jdk25files. The 126 committed unsuffixed*-results.txtfiles, 125 of which report a JDK 17 VM (for exampleKryoBenchmark-results.txt), stay frozen as JDK 17 snapshots that still look like the default baseline, and the scaladocs that say results go tobenchmarks/<Name>-results.txtdescribe files no supported run writes. When the baseline last moved, SPARK-45281 changed this threshold from> 8to> 17and companion changes refreshed and pruned the result files; moving it to> 21follows the same pattern.Verification: