Skip to content

ci: pin the Python test job to ubuntu-24.04 - #678

Open
yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:ci/pin-ubuntu-24-04
Open

yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:ci/pin-ubuntu-24-04

Conversation

@yadavchiragg

Copy link
Copy Markdown

Problem: the test job runs on ubuntu-latest with a Python 3.9 to 3.12 matrix. GitHub is moving the ubuntu-latest label to Ubuntu 26.04, and actions/setup-python has no Python 3.9 build for it, so the 3.9 job fails with "The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04". Because the matrix uses the default fail-fast, the 3.10, 3.11 and 3.12 jobs are then cancelled, so the whole Python test job goes red regardless of the code.

Change: pin only the test job to ubuntu-24.04. The other jobs are unchanged (they pass on the new image).

Testing: reproduced the failure on my fork and confirmed that all four test (3.9) to test (3.12) jobs pass with the pin.

If you would rather drop Python 3.9 (it is past end of life) instead of pinning, I'm happy to change this PR to do that.

@yadavchiragg

Copy link
Copy Markdown
Author

Quick evidence for this PR: ubuntu-latest has moved to Ubuntu 26.04 (GitHub's migration window was Oct 19 - Nov 19), and test (3.9) now fails at setup-python with "The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04" (e.g. see the run on #685). Pinning the test job to ubuntu-24.04 fixes it without dropping 3.9 support.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant