Skip to content

Fix CI: run EOL-Python jobs in Docker, not actions/setup-python - #15

Merged
jenna-tomkinson merged 1 commit into
WayScience:mainfrom
jenna-tomkinson:fix_ci_python38_runner
Dec 2, 2026
Merged

jenna-tomkinson merged 1 commit into
WayScience:mainfrom
jenna-tomkinson:fix_ci_python38_runner

Conversation

@jenna-tomkinson

Copy link
Copy Markdown
Member

Summary

The compat and install-from-github jobs' Python 3.8 entries (and compat's 3.9 entry) started failing on main after merging #11, with:

The version '3.8' with architecture 'x64' was not found for Ubuntu 26.04.

ubuntu-latest moved 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 future ubuntu-latest bump.

Fix: run both jobs' steps inside the official python:${{ matrix.python-version }} Docker image instead of using actions/setup-python. Docker Hub keeps every python:X.Y tag 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.8 and python:3.9 containers, against the actual merged commit:

  • pip install git+https://github.com/WayScience/CP_Parallel.git@50c78b8... (what install-from-github tests) — succeeds on both versions, cp_parallel.run_parallel imports correctly.
  • pip install . from a clean checkout (what compat tests) — same result.

Test plan

  • Reproduced the exact failure locally in python:3.8/python:3.9 Docker containers using actions/setup-python's equivalent commands
  • Verified pip install git+https://...@<merge-commit> succeeds on Python 3.8 and 3.9
  • Verified pip install . from a clean checkout succeeds on Python 3.8
  • python3 -c "import yaml; yaml.safe_load(...)" — workflow YAML is valid
  • CI itself (this PR will show whether container: works as expected on GitHub's hosted runners)

🤖 Generated with Claude Code

…-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>
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a62de695-84e9-4db1-bcdf-24ec993e2c10
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@jenna-tomkinson
jenna-tomkinson requested a review from d33bs December 2, 2026 20:14

@d33bs d33bs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@jenna-tomkinson

Copy link
Copy Markdown
Member Author

Added as an issue to address in a future PR (#16), thanks @d33bs for the quick review and feedback!

@jenna-tomkinson
jenna-tomkinson merged commit 51f10c5 into WayScience:main Dec 2, 2026
9 checks passed
@jenna-tomkinson
jenna-tomkinson deleted the fix_ci_python38_runner branch December 2, 2026 20:31
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.

2 participants