Skip to content

Fix CI on ubuntu-latest (Ubuntu 26.04): use Python 3.12 and JDK 17 instead of pinning runners - #11799

Merged
alamb merged 2 commits into
apache:mainfrom
alamb:alamb/fix-ubuntu-26-ci
Oct 23, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
alamb:alamb/fix-ubuntu-26-ci

Conversation

@alamb

@alamb alamb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The ubuntu-latest runner label is migrating from Ubuntu 24.04 to 26.04 between October 19 and November 19, 2026. Three jobs on main break on the new image (see https://github.com/apache/arrow-rs/actions/runs/39673895251):

Job Failure on 26.04
dev / Release Audit Tool (RAT) The version '3.8' with architecture 'x64' was not found for Ubuntu 26.04
integration / Pyarrow C Data Interface same: no Python 3.8 in the toolcache
parquet / PySpark Integration Test java.lang.UnsupportedOperationException: getSubject is not supported

The maintenance branches were fixed by pinning those jobs back to ubuntu-24.04 (#11778, #11781). This PR instead updates the jobs so they run on the current image, as suggested in the issue.

What changes are included in this PR?

  • RAT (dev.yml): Python 3.8 → 3.12. check-rat-report.py only uses the standard library.
  • Pyarrow C Data Interface (integration.yml): Python 3.8 → 3.12. 3.12 is the newest version with wheels for every pyarrow in the matrix (15, 16, 17); pyarrow 15 has no 3.13 wheels, and pyarrow==15 resolves to 15.0.2 which pins numpy<2, so the install still works. pyo3 0.29 supports 3.12.
  • PySpark Integration Test (parquet.yml): add an actions/setup-java step for Temurin 17. The 26.04 image ships JDK 11/17/21/25 with 25 as default; Subject.getSubject is disabled on JDK 24+ (JEP 486) so Hadoop/Spark 3.5 cannot start a SparkContext. Spark 3.5 supports Java 8/11/17, and 17 is already in the runner toolcache so the step is fast.

actions/setup-java is pinned by SHA to v6.1.0, matching the convention for other actions in this repo.

No RUSTSEC / cargo audit changes are needed on main: the rustls-webpki / webpki-roots updates from the maintenance branches (#11793, #11794) were originally made on main in #11752, and main already has quick-xml 0.41.0 so it does not need the --ignore RUSTSEC-2026-0194/0195 flags the maintenance branches carry.

Are these changes tested?

By CI on this PR. Whether the jobs land on a 24.04 or 26.04 runner during the rollout window, all three should pass with these settings.

Are there any user-facing changes?

No

…or PySpark

The ubuntu-latest runner image is migrating to Ubuntu 26.04, which has
no Python 3.8 toolcache build and defaults to JDK 25.

- RAT: use Python 3.12 (the script is stdlib only)
- Pyarrow C Data Interface: use Python 3.12 (wheels exist for pyarrow 15-17)
- PySpark Integration Test: set up Temurin JDK 17; PySpark 3.5 fails on
  JDK 25 with 'getSubject is not supported'

Closes apache#11789

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions github-actions Bot added the development-process Internal changes; PRs with this label are excluded from changelog label Oct 22, 2026
Comment thread .github/workflows/dev.yml Outdated
with:
python-version: 3.8
# check-rat-report.py only uses the standard library; any current
# Python works. The ubuntu-latest (26.04) image has no Python 3.8.

@Jefffrey Jefffrey Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably can remove these notes for brevity

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sorry this was unreviewed AI PR -- will fix

@alamb
alamb enabled auto-merge October 22, 2026 11:06
@alamb

alamb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

I also made a job to move the lightweight jobs on to a lightweight runner

(note this PR has been stuck for a while waiting to run a tiny job)

Screenshot 2026-10-22 at 8 53 32 AM

@sdf-jkl

sdf-jkl commented Oct 22, 2026

Copy link
Copy Markdown
Member

🙏

@alamb

alamb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

WTF the pR is still queued

@sdf-jkl

sdf-jkl commented Oct 22, 2026

Copy link
Copy Markdown
Member

That's why we need the forks to run CI lol

@sdf-jkl

sdf-jkl commented Oct 22, 2026

Copy link
Copy Markdown
Member

Though it would still wait the same on merge queue

@alamb

alamb commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

That's why we need the forks to run CI lol

APPROVED!

@alamb
alamb added this pull request to the merge queue Oct 22, 2026
Merged via the queue into apache:main with commit 2177b8e Oct 23, 2026
35 checks passed
@sdf-jkl

sdf-jkl commented Oct 23, 2026

Copy link
Copy Markdown
Member

🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Internal changes; PRs with this label are excluded from changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI breaking due to upgrade to ubuntu 26

3 participants