This is an automated email from the ASF dual-hosted git repository.
ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new b4d90dd2a622 [SPARK-46304][INFRA] Upgrade setup-java action to v4 and
setup-python to v5
b4d90dd2a622 is described below
commit b4d90dd2a622beda542a7ce1ee15af9f312f9724
Author: panbingkun <[email protected]>
AuthorDate: Thu Dec 7 20:48:34 2023 +0800
[SPARK-46304][INFRA] Upgrade setup-java action to v4 and setup-python to v5
### What changes were proposed in this pull request?
The pr aims to upgrade `setup-java` action from `v3` to `v4` and
`set-python` action from `v4` to `v5`.
### Why are the changes needed?
1.`setup-java` action
v4.0.0 release notes:
https://github.com/actions/setup-java/releases/tag/v4.0.0
the version of the Node.js runtime was updated to 20. From now on, the code
for the setup-java will run on Node.js 20 instead of Node.js 16.
2.`set-python` action
v5.0.0 release notes:
https://github.com/actions/setup-python/releases/tag/v5.0.0
update node version runtime from node16 to node20.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass GA.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #44235 from panbingkun/SPARK-46304.
Authored-by: panbingkun <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
---
.github/workflows/benchmark.yml | 4 ++--
.github/workflows/build_and_test.yml | 20 ++++++++++----------
.github/workflows/maven_test.yml | 4 ++--
.github/workflows/publish_snapshot.yml | 4 ++--
4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 3cb63404bcac..20ea952ff0a2 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -105,7 +105,7 @@ jobs:
run: cd tpcds-kit/tools && make OS=LINUX
- name: Install Java ${{ github.event.inputs.jdk }}
if: steps.cache-tpcds-sf-1.outputs.cache-hit != 'true'
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ github.event.inputs.jdk }}
@@ -157,7 +157,7 @@ jobs:
restore-keys: |
benchmark-coursier-${{ github.event.inputs.jdk }}
- name: Install Java ${{ github.event.inputs.jdk }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ github.event.inputs.jdk }}
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index 920ac6a38c87..0e1a4a810f8a 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -241,12 +241,12 @@ jobs:
./dev/free_disk_space
fi
- name: Install Java ${{ matrix.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
- name: Install Python 3.9
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
# We should install one Python that is higher than 3+ for SQL and Yarn
because:
# - SQL component also has Python related tests, for example,
IntegratedUDFTestUtils.
# - Yarn has a Python specific test too, for example, YarnClusterSuite.
@@ -432,7 +432,7 @@ jobs:
./dev/free_disk_space_container
fi
- name: Install Java ${{ matrix.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
@@ -542,7 +542,7 @@ jobs:
./dev/free_disk_space_container
fi
- name: Install Java ${{ inputs.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ inputs.java }}
@@ -590,7 +590,7 @@ jobs:
input: connector/connect/common/src/main
against:
'https://github.com/apache/spark.git#branch=branch-3.5,subdir=connector/connect/common/src/main'
- name: Install Python 3.9
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies for Python CodeGen check
@@ -665,7 +665,7 @@ jobs:
./dev/free_disk_space_container
fi
- name: Install Java ${{ inputs.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ inputs.java }}
@@ -831,7 +831,7 @@ jobs:
restore-keys: |
java${{ matrix.java }}-maven-
- name: Install Java ${{ matrix.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
@@ -886,7 +886,7 @@ jobs:
restore-keys: |
tpcds-coursier-
- name: Install Java ${{ inputs.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ inputs.java }}
@@ -993,7 +993,7 @@ jobs:
restore-keys: |
docker-integration-coursier-
- name: Install Java ${{ inputs.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ inputs.java }}
@@ -1053,7 +1053,7 @@ jobs:
restore-keys: |
k8s-integration-coursier-
- name: Install Java ${{ inputs.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ inputs.java }}
diff --git a/.github/workflows/maven_test.yml b/.github/workflows/maven_test.yml
index 89d46e7961e2..12c66f68ad1f 100644
--- a/.github/workflows/maven_test.yml
+++ b/.github/workflows/maven_test.yml
@@ -150,12 +150,12 @@ jobs:
restore-keys: |
java${{ matrix.java }}-maven-
- name: Install Java ${{ matrix.java }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
- name: Install Python 3.9
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
# We should install one Python that is higher than 3+ for SQL and Yarn
because:
# - SQL component also has Python related tests, for example,
IntegratedUDFTestUtils.
# - Yarn has a Python specific test too, for example, YarnClusterSuite.
diff --git a/.github/workflows/publish_snapshot.yml
b/.github/workflows/publish_snapshot.yml
index 9ea214e5be8d..ff51887e0df2 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -53,13 +53,13 @@ jobs:
snapshot-maven-
- name: Install Java 8 for branch-3.x
if: matrix.branch == 'branch-3.5' || matrix.branch == 'branch-3.4' ||
matrix.branch == 'branch-3.3'
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
- name: Install Java 17
if: matrix.branch != 'branch-3.5' && matrix.branch != 'branch-3.4' &&
matrix.branch != 'branch-3.3'
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]