Skip to content

Commit 9a7914b

Browse files
authored
Deprecate Java 8 (#35064)
* Deprecate Java 8 * Java 8 client now using Java 11 SDK container * adjust non LTS fallback to use the next LTS instead of the nearest LTS. Previously Java18 falls back to Java17, which won't work * Emit warning when Java 8 is used. Java8 is still supported until Beam 3.0 * Clean up subproject build file requiring Java9+ * Require java 11 to build SDK container * fix workflow * Simplify XVR test workflow * Fix Samza PVR
1 parent 792c865 commit 9a7914b

19 files changed

Lines changed: 60 additions & 155 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"revision": 1}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 1
3+
"modification": 2
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"https://github.com/apache/beam/pull/32648": "testing flink 1.19 support"
2+
"revision": 1
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"https://github.com/apache/beam/pull/32648": "testing Flink 1.19 support",
3-
"modification": 1
3+
"modification": 2
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{"modification": 1}

.github/workflows/beam_PostCommit_XVR_Direct.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,16 @@ jobs:
7474
- name: Setup environment
7575
uses: ./.github/actions/setup-environment-action
7676
with:
77-
python-version: |
78-
3.9
79-
${{ matrix.python_version }}
77+
python-version: ${{ matrix.python_version }}
8078
- name: run PostCommit XVR Direct script
8179
env:
8280
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
83-
if: ${{ matrix.python_version != '3.9' }}
8481
uses: ./.github/actions/gradle-command-self-hosted-action
8582
with:
8683
gradle-command: :sdks:python:test-suites:direct:xlang:validatesCrossLanguageRunner
8784
arguments: |
8885
-PpythonVersion=${{ matrix.python_version }} \
89-
-PskipNonPythonTask=true \
90-
- name: run PostCommit XVR Direct script
91-
env:
92-
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
93-
if: ${{ matrix.python_version == '3.9' }}
94-
uses: ./.github/actions/gradle-command-self-hosted-action
95-
with:
96-
gradle-command: :sdks:python:test-suites:direct:xlang:validatesCrossLanguageRunner
97-
arguments: |
98-
-PpythonVersion=${{ matrix.python_version }} \
99-
-PskipNonPythonTask=false \
86+
-PskipNonPythonTask=${{ (matrix.python_version == '3.9' && true) || false }} \
10087
- name: Archive JUnit Test Results
10188
uses: actions/upload-artifact@v4
10289
if: ${{ !success() }}

.github/workflows/beam_PostCommit_XVR_Flink.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,16 @@ jobs:
7575
- name: Setup environment
7676
uses: ./.github/actions/setup-environment-action
7777
with:
78-
python-version: |
79-
3.9
80-
${{ matrix.python_version }}
78+
python-version: ${{ matrix.python_version }}
8179
- name: run PostCommit XVR Flink script
8280
env:
8381
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
84-
if: ${{ matrix.python_version != '3.9' }}
8582
uses: ./.github/actions/gradle-command-self-hosted-action
8683
with:
8784
gradle-command: :runners:flink:${{ env.FlinkVersion }}:job-server:validatesCrossLanguageRunner
8885
arguments: |
8986
-PpythonVersion=${{ matrix.python_version }} \
90-
-PskipNonPythonTask=true \
91-
- name: run PostCommit XVR Flink script
92-
env:
93-
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
94-
if: ${{ matrix.python_version == '3.9' }}
95-
uses: ./.github/actions/gradle-command-self-hosted-action
96-
with:
97-
gradle-command: :runners:flink:${{ env.FlinkVersion }}:job-server:validatesCrossLanguageRunner
98-
arguments: |
99-
-PpythonVersion=${{ matrix.python_version }} \
100-
-PskipNonPythonTask=false \
87+
-PskipNonPythonTask=${{ (matrix.python_version == '3.9' && true) || false }} \
10188
- name: Archive JUnit Test Results
10289
uses: actions/upload-artifact@v4
10390
if: ${{ !success() }}

.github/workflows/beam_PostCommit_XVR_Samza.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,30 +75,21 @@ jobs:
7575
uses: ./.github/actions/setup-environment-action
7676
# TODO(https://github.com/apache/beam/issues/32208) move to Java11 after bump to Samza 1.8
7777
with:
78-
java-version: 8
78+
java-version: |
79+
11
80+
8
7981
python-version: |
80-
3.9
8182
${{ matrix.python_version }}
8283
- name: run PostCommit XVR Samza script
8384
env:
8485
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
85-
if: ${{ matrix.python_version != '3.9' }}
8686
uses: ./.github/actions/gradle-command-self-hosted-action
8787
with:
8888
gradle-command: :runners:samza:job-server:validatesCrossLanguageRunner
8989
arguments: |
9090
-PpythonVersion=${{ matrix.python_version }} \
91-
-PskipNonPythonTask=true \
92-
- name: run PostCommit XVR Samza script
93-
env:
94-
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
95-
if: ${{ matrix.python_version == '3.9' }}
96-
uses: ./.github/actions/gradle-command-self-hosted-action
97-
with:
98-
gradle-command: :runners:samza:job-server:validatesCrossLanguageRunner
99-
arguments: |
100-
-PpythonVersion=${{ matrix.python_version }} \
101-
-PskipNonPythonTask=false \
91+
-Pjava11Home=$JAVA_HOME_11_X64 \
92+
-PskipNonPythonTask=${{ (matrix.python_version == '3.9' && true) || false }} \
10293
- name: Archive JUnit Test Results
10394
uses: actions/upload-artifact@v4
10495
if: ${{ !success() }}

.github/workflows/beam_PostCommit_XVR_Spark3.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,16 @@ jobs:
7474
- name: Setup environment
7575
uses: ./.github/actions/setup-environment-action
7676
with:
77-
python-version: |
78-
3.9
79-
${{ matrix.python_version }}
77+
python-version: ${{ matrix.python_version }}
8078
- name: run PostCommit XVR Spark3 script
8179
env:
8280
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
83-
if: ${{ matrix.python_version != '3.9' }}
8481
uses: ./.github/actions/gradle-command-self-hosted-action
8582
with:
8683
gradle-command: :runners:spark:3:job-server:validatesCrossLanguageRunner
8784
arguments: |
8885
-PpythonVersion=${{ matrix.python_version }} \
89-
-PskipNonPythonTask=true \
90-
- name: run PostCommit XVR Spark3 script
91-
env:
92-
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
93-
if: ${{ matrix.python_version == '3.9' }}
94-
uses: ./.github/actions/gradle-command-self-hosted-action
95-
with:
96-
gradle-command: :runners:spark:3:job-server:validatesCrossLanguageRunner
97-
arguments: |
98-
-PpythonVersion=${{ matrix.python_version }} \
99-
-PskipNonPythonTask=false \
86+
-PskipNonPythonTask=${{ (matrix.python_version == '3.9' && true) || false }} \
10087
- name: Archive JUnit Test Results
10188
uses: actions/upload-artifact@v4
10289
if: ${{ !success() }}

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
## Beam 3.0.0 Development Highlights
6464

6565
* New highly anticipated feature ([X](https://github.com/apache/beam/issues/X)) to address Milestone Y ([#Y](https://github.com/apache/beam/issues/Y)).
66+
* [Java] Java 8 support is now deprecated. It is still supported until Beam 3.
67+
From now, pipeline submitted by Java 8 client uses Java 11 SDK container for
68+
remote pipeline execution ([35064](https://github.com/apache/beam/pull/35064)).
6669

6770
## Highlights
6871

0 commit comments

Comments
 (0)