MINOR: Bump versions in CI (#20497)

**Summary**

This PR bumps several GitHub Actions and dependencies used in CI
workflows to their latest stable versions. This ensures our CI
environment remains consistent, secure, and aligned with upstream
improvements.

**Changes**

- requests: 2.32.3 → 2.32.4
- actions/checkout: v4 → v5
- actions/setup-python: v5 → v6
- actions/setup-java: v4 → v5
- actions/download-artifact: v4 → v5
- actions/labeler: v5 → v6

related: https://github.com/apache/kafka/pull/19940/files#r2328391161

Reviewers: Ken Huang <s7133700@gmail.com>, TengYao Chi
 <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Yunchi Pang 2025-09-15 10:35:42 +08:00 committed by GitHub
parent 2fd54837f0
commit e1b7699975
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 34 additions and 31 deletions

View File

@ -37,7 +37,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ inputs.java-version }}

View File

@ -22,7 +22,7 @@ runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Pip install

View File

@ -12,6 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Note: Ensure the 'requests' version here matches the version in tests/setup.py
PyYAML~=6.0
pytz==2024.2
requests==2.32.3
requests==2.32.4

View File

@ -66,12 +66,12 @@ jobs:
name: Load Test Catalog
steps:
- name: Checkout main
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Checkout test-catalog
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: 'test-catalog'
persist-credentials: false
@ -118,7 +118,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false
ref: ${{ github.sha }} # this is the default, just being explicit.
@ -192,7 +192,7 @@ jobs:
name: JUnit tests Java ${{ matrix.java }}${{ matrix.run-flaky == true && ' (flaky)' || '' }}${{ matrix.run-new == true && ' (new)' || '' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false
ref: ${{ needs.configure.outputs.sha }}
@ -210,7 +210,7 @@ jobs:
# the overall workflow, so we'll continue here without a test catalog.
- name: Load Test Catalog
id: load-test-catalog
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
continue-on-error: true
with:
name: combined-test-catalog
@ -282,11 +282,11 @@ jobs:
uploaded-test-catalog: ${{ steps.archive-test-catalog.outcome == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Download Thread Dumps
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
pattern: junit-thread-dumps-24-*
path: thread-dumps
@ -300,7 +300,7 @@ jobs:
exit 1;
fi
- name: Download JUnit XMLs
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
pattern: junit-xml-24-* # Only look at JDK 24 tests for the test catalog
path: junit-xml
@ -334,7 +334,7 @@ jobs:
contents: write
steps:
- name: Checkout Test Catalog
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: true # Needed to commit and push later
ref: test-catalog
@ -342,7 +342,7 @@ jobs:
run: |
rm -rf test-catalog
- name: Download Test Catalog
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: test-catalog
path: test-catalog

View File

@ -61,7 +61,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials:
false
@ -72,7 +72,7 @@ jobs:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Download build scan archive
id: download-build-scan
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
continue-on-error: true # Don't want this step to fail the overall workflow
with:
github-token: ${{ github.token }}

View File

@ -42,7 +42,7 @@ jobs:
name: Deflake JUnit tests
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false

View File

@ -32,9 +32,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Setup Docker Compose

View File

@ -31,9 +31,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Setup Docker Compose

View File

@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies

View File

@ -32,7 +32,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Run Report

View File

@ -35,7 +35,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials:
false

View File

@ -31,12 +31,12 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Load PR Number
id: load-pr-number
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}

View File

@ -37,8 +37,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/labeler@v5
uses: actions/checkout@v5
- uses: actions/labeler@v6
with:
configuration-path: .github/configs/labeler.yml
- name: check small label

View File

@ -31,9 +31,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies

View File

@ -38,7 +38,7 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials:
false

View File

@ -40,6 +40,7 @@ class PyTest(Command):
sys.exit(errno)
# Note: when changing the version of ducktape, also revise tests/docker/Dockerfile
# Ensure the 'requests' version here matches the one specified in .github/scripts/requirements.txt
setup(name="kafkatest",
version=version,
description="Apache Kafka System Tests",