Repository navigation
Fix CI: run EOL-Python jobs in Docker, not actions/setup-python - #15
Merged
jenna-tomkinson merged 1 commit intoDec 2, 2026
Merged
Conversation
…-python The compat and install-from-github jobs' Python 3.8 entries started failing with "The version '3.8' with architecture 'x64' was not found for Ubuntu 26.04" once ubuntu-latest moved to 26.04 -- GitHub's hosted Python builds for EOL versions (3.8 EOL'd Oct 2024) aren't published for new runner OS images, so this will keep breaking on every future ubuntu-latest bump. Switch those jobs to run inside the official `python:X.Y` Docker image instead of using actions/setup-python: Docker Hub keeps every python:X.Y tag published indefinitely, independent of the runner's own OS, so this doesn't have the same expiry problem. Verified locally (not just in theory): ran the exact install command each CI job runs -- `pip install git+https://github.com/WayScience/CP_Parallel.git@<merge-sha>` and `pip install .` from a clean checkout -- inside `python:3.8` and `python:3.9` containers. Both succeed and `cp_parallel.run_parallel` imports correctly; the package itself was never broken, only the CI runner's ability to provision Python 3.8/3.9 via actions/setup-python. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
d33bs
approved these changes
Dec 2, 2026
d33bs
left a comment
Member
There was a problem hiding this comment.
Consider using a Dockerfile to create and host a ready-made image for both docker and translated singularity/apptainer from docker spec (for Alpine compatibility, because there's no docker there). Without this, we may run into this again and we will likely start to see a flurry of security warnings about deprecated python use.
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
compatandinstall-from-githubjobs' Python 3.8 entries (andcompat's 3.9 entry) started failing onmainafter merging #11, with:ubuntu-latestmoved to Ubuntu 26.04, and GitHub's hosted Python builds for EOL versions (3.8 EOL'd Oct 2024, 3.9 is close behind) are never published for new runner OS images —actions/python-versions' manifest only has 3.8/3.9 Linux builds up through Ubuntu 20.04. This isn't something that gets fixed upstream; it'll keep recurring on every futureubuntu-latestbump.Fix: run both jobs' steps inside the official
python:${{ matrix.python-version }}Docker image instead of usingactions/setup-python. Docker Hub keeps everypython:X.Ytag published indefinitely regardless of the runner's own OS, so this sidesteps the expiry problem entirely.Importantly: this is a CI-only fix. The package itself was never broken — I verified by running the exact commands these CI jobs run, locally, inside
python:3.8andpython:3.9containers, against the actual merged commit:pip install git+https://github.com/WayScience/CP_Parallel.git@50c78b8...(whatinstall-from-githubtests) — succeeds on both versions,cp_parallel.run_parallelimports correctly.pip install .from a clean checkout (whatcompattests) — same result.Test plan
python:3.8/python:3.9Docker containers usingactions/setup-python's equivalent commandspip install git+https://...@<merge-commit>succeeds on Python 3.8 and 3.9pip install .from a clean checkout succeeds on Python 3.8python3 -c "import yaml; yaml.safe_load(...)"— workflow YAML is validcontainer:works as expected on GitHub's hosted runners)🤖 Generated with Claude Code