From 01c176bd533571fb5e530128ff5f8b0ed5ec4a2b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 18 Dec 2024 10:03:59 +0100 Subject: [PATCH] GH-45059: [C++][CI] Fix test-build-cpp-fuzz failures (#45060) ### Rationale for this change The CI requirements file in the OSS-Fuzz repo pins an old PyYAML version that fails installing on Python 3.12: https://github.com/google/oss-fuzz/blob/4161b2267f39e32f32e122501b7b82f9bc28caea/infra/ci/requirements.txt ### What changes are included in this PR? Use a Python version compatible with the requirements. ### Are these changes tested? Yes, by definition. ### Are there any user-facing changes? No. * GitHub Issue: #45059 Authored-by: Antoine Pitrou Signed-off-by: Antoine Pitrou --- dev/tasks/fuzz-tests/github.oss-fuzz.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/tasks/fuzz-tests/github.oss-fuzz.yml b/dev/tasks/fuzz-tests/github.oss-fuzz.yml index d7cf516266831..e591499b0ef0a 100644 --- a/dev/tasks/fuzz-tests/github.oss-fuzz.yml +++ b/dev/tasks/fuzz-tests/github.oss-fuzz.yml @@ -33,6 +33,12 @@ jobs: run: | git clone --depth=50 https://github.com/google/oss-fuzz.git + - uses: actions/setup-python@v5 + # Use a Python version that's compatible with the pinned requirements + # for dependencies below. + with: + python-version: '3.11' + - name: Install dependencies working-directory: oss-fuzz run: |