Skip to content

Commit 982d6e9

Browse files
committed
[SPARK-53617] Use zulu Java distribution in GitHub Action jobs
### What changes were proposed in this pull request? This PR aims to use `zulu` Java distribution in GitHub Action jobs. ### Why are the changes needed? To use the same JDK consistently like `Spark K8s Operator`'s `Docker` image. https://github.com/apache/spark-kubernetes-operator/blob/a55be8d7874e17daf5c8b250b576b0bfef1813bd/build-tools/docker/Dockerfile#L25 Apache Spark main repository also uses `azul/zulu-openjdk` docker image in K8s `Dockerfile` and `GitHub Action` CIs consistently. https://github.com/apache/spark/blob/f57a473a02e4fb7a05e1c62c6f5cf8f461e4f8b9/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/Dockerfile#L17 ``` ARG java_image_name=azul/zulu-openjdk ``` ### Does this PR introduce _any_ user-facing change? No, this is a test-infra change. ### How was this patch tested? Pass the CIs and check manually. **BEFORE** ``` $ git grep adopt | wc -l 5 ``` **AFTER** ``` $ git grep adopt | wc -l 0 ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#319 from dongjoon-hyun/SPARK-53617. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 275ba66 commit 982d6e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/setup-java@v4
4444
with:
4545
java-version: ${{ matrix.java-version }}
46-
distribution: 'adopt'
46+
distribution: 'zulu'
4747
cache: 'gradle'
4848
- name: Build with Gradle
4949
run: |
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/setup-java@v4
6060
with:
6161
java-version: 17
62-
distribution: 'adopt'
62+
distribution: 'zulu'
6363
cache: 'gradle'
6464
- name: Build Operator Image
6565
run: |
@@ -102,7 +102,7 @@ jobs:
102102
uses: actions/setup-java@v4
103103
with:
104104
java-version: 21
105-
distribution: 'adopt'
105+
distribution: 'zulu'
106106
cache: 'gradle'
107107
- name: Set up Minikube
108108
uses: medyagh/[email protected]
@@ -167,7 +167,7 @@ jobs:
167167
uses: actions/setup-java@v4
168168
with:
169169
java-version: 17
170-
distribution: 'adopt'
170+
distribution: 'zulu'
171171
cache: 'gradle'
172172
- name: Linters
173173
run: |

.github/workflows/publish_snapshot_chart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/setup-java@v4
3131
with:
3232
java-version: 17
33-
distribution: 'adopt'
33+
distribution: 'zulu'
3434
cache: 'gradle'
3535
- name: Build Operator
3636
run: |

0 commit comments

Comments
 (0)