gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions#152717
Conversation
|
"Check if generated files are up to date" job:
Later in the same job, |
|
(*) Address sanitizer (ubuntu-26.04): "Set up GCC-10 for ASAN" fails with (*) llvm.sh fails with
(*) Android (x86_64) fails with: |
It complains because it doesn't know |
|
Information on |
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. |
|
I modified Platforms/Android to run gradlew with Full error: DetailsSee yairm210/Unciv#14838 which seems to be similar. |
|
See https://github.com/orgs/community/discussions/160592 to select the JAVA_HOME env var. |
|
Summary:
|
|
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. |
|
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.
|
Currently, ubuntu-latest means Ubuntu 24.04. So I replaced @hugovk: Do we want to keep |
|
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.
|
UPDATE: The 6 following jobs now use
cross-build-linux (Cross build Linux) now uses |
This reverts commit 38d60de.
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_events
self.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. |
|
Merged, thanks for reviews! |
|
How far can we backport? GitHub has an "N-1" OS support policy:
Some time after |
|
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 |
|
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>
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.