Uh oh!
There was an error while loading. Please reload this page.
gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions - #152717
Conversation
vstinner
commented
Jun 30, 2026
"Check if generated files are up to date" job:
Later in the same job, |
vstinner
commented
Jul 1, 2026
(*) Address sanitizer (ubuntu-26.04): "Set up GCC-10 for ASAN" fails with (*) llvm.sh fails with
(*) Android (x86_64) fails with: |
vstinner
commented
Jul 1, 2026
It complains because it doesn't know |
vstinner
commented
Jul 1, 2026
Information on |
vstinner
commented
Jul 1, 2026
The job requires GCC 10 because in 2023, Ubuntu provided GCC 9 by default which had a bug with vfork(). This is no longer needed on Ubuntu 26.04. |
vstinner
commented
Jul 1, 2026
I modified Platforms/Android to run gradlew with Full error: DetailsSee yairm210/Unciv#14838 which seems to be similar. |
vstinner
commented
Jul 1, 2026
See https://github.com/orgs/community/discussions/160592 to select the JAVA_HOME env var. |
vstinner
commented
Jul 1, 2026
Summary:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
Jul 1, 2026
This PR changes multiple things at once. I created other PRs to upgrade LLVM, GCC and Java to prepare this PR. See pull requests attached to #152785. |
skirpichev
commented
Jul 2, 2026
Probably, with 26.04 you can remove libmpdec workaround from |
…ctions Update .github/actionlint.yaml to allow ubuntu-26.04 and ubuntu-26.04-arm images.
No longer install build+install libmpdec-dev from tarball.
ubuntu-latest is currently Ubuntu 24.04.
vstinner
commented
Jul 3, 2026
Currently, ubuntu-latest means Ubuntu 24.04. So I replaced @hugovk: Do we want to keep |
vstinner
commented
Jul 3, 2026
Ubuntu / build and test (ubuntu-24.04) => Ubuntu / build and test (ubuntu-26.04). Before => After:
|
The ubuntu-26.04 image already provides required LLVM 21.
vstinner
commented
Jul 5, 2026
UPDATE: The 6 following jobs now use
cross-build-linux (Cross build Linux) now uses |
This reverts commit 38d60de.
vstinner
commented
Jul 5, 2026
I reverted these changes. |
Unrelated failure in test_ttk: FAIL: test_virtual_events (test.test_ttk.test_widgets.TreeviewTest.test_virtual_events)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_ttk\test_widgets.py", line 1993, in test_virtual_eventsself.assertEqual(opens, [parent])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^AssertionError: Lists differ: [] != ['I001']
Second list contains 1 additional elements.
First extra element 0:
'I001'
- []
+ ['I001']
Unrelated known failure in test_ssl related to ASN1_STRING_cmp. |
I reran the TSan job and... it failed again :-( Tests / Sanitizers / TSan (free-threading) (pull_request): a new TSAN test_hashlib error, I created issue gh-153201. |
vstinner
commented
Jul 6, 2026
Merged, thanks for reviews! |
hugovk
commented
Jul 8, 2026
How far can we backport? GitHub has an "N-1" OS support policy:
Some time after |
StanFromIreland
commented
Jul 8, 2026
As far as possible, optionally I think we could skip 3.10 if it doesn't come cleanly from the 3.11 backport. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, @vstinner, I could not cleanly backport this to |
Sorry, @vstinner, I could not cleanly backport this to |
vstinner
commented
Jul 9, 2026
This PR relies on these 3 other PRs:
The GCC and Java changes have been backported to 3.13, 3.14 and 3.15 branches. The LLVM change was only backported to 3.14 and 3.15 branches. |
GH-153416 is a backport of this pull request to the 3.15 branch. |
#152717) (#153416) gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717) * Replace "ubuntu-24.04" with "ubuntu-26.04". * Replace "ubuntu-latest" with "ubuntu-26.04" for Cross build Linux. * Replace "ubuntu-latest" with "ubuntu-slim" for small workloads. * Update ".github/actionlint.yaml" to allow "ubuntu-26.04" and "ubuntu-26.04-arm" images. * Install Ubuntu libmpdec-dev package, rather than installing libmpdec from source (tarball). * No longer run https://apt.llvm.org/llvm.sh, since ubuntu-26.04 provides clang-21 by default. (cherry picked from commit 4c79929) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
#152717) (#153416) (#153526) * [3.15] gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717) (#153416) gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717) * Replace "ubuntu-24.04" with "ubuntu-26.04" on most jobs. * Replace "ubuntu-latest" with "ubuntu-26.04" for Cross build Linux. * Replace "ubuntu-latest" with "ubuntu-slim" for small workloads. * Update ".github/actionlint.yaml" to allow "ubuntu-26.04" and "ubuntu-26.04-arm" images. Backport changes: * Keep Ubuntu 24.04 and llvm.sh to install LLVM 19 and LLVM 20. * WASI uses ubuntu-26.04, not ubuntu-26.04-arm. (cherry picked from commit 4c79929) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> (cherry picked from commit da999e6) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Replace
ubuntu-24.04andubuntu-latestwithubuntu-26.04.Update
.github/actionlint.yamlto allowubuntu-26.04andubuntu-26.04-armimages.Install Ubuntu
libmpdec-devpackage, rather than installlibmpdecfrom a tarball.No longer run
https://apt.llvm.org/llvm.sh, since ubuntu-26.04 provides clang-21 by default.Touch
Python/getcompiler.candPython/bytecodes.cto trigger most GHA jobs.This change will be reverted once the PR is reviewed and ready to be merged.