Repository navigation
ci: pin deploy-challenges runner to ubuntu-24.04 - #392
kunal-mansukhani wants to merge 1 commit into
Conversation
shxjames
left a comment
There was a problem hiding this comment.
The one-line change pins only the deploy job in .github/workflows/deploy-challenges.yml from ubuntu-latest to ubuntu-24.04. That is a valid current GitHub-hosted label, and it is GitHub's documented mitigation for the ubuntu-latest -> 26.04 rollout (actions/runner-images#14748, planned complete by 19 Nov 2026).
Why it was pinned. A rerun of Deploy Challenges #126 on main (3b2ec31, attempt 2, 1:33 PM PT today) landed on Ubuntu 26.04.1 (ubuntu-26.04 image 20261116.202.1) and failed at actions/setup-python@v5 with The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04. Log: https://github.com/AlphaGPU/leetgpu-challenges/actions/runs/41089213762/job/140179854986. Attempt 1 of the same run (Oct 30, 9:22 AM PT) succeeded on ubuntu-latest before the label moved. The setup-python manifest has no Python 3.9 x64 build for 26.04; 24.04 still does.
Workflow otherwise unchanged. Still checkout@v4, setup-python@v5 with 3.9, pip install of requests, websocket-client, and CPU torch, then scripts/update_challenges.py. No apt packages and no image-specific paths. That is the same stack that already succeeded on the Oct 30 run (then still a 24.04-era ubuntu-latest image).
Other workflows. lint, check-duplicated-index, review-bot, claude, and create-challenge already use Python 3.12 on ubuntu-latest, which has 26.04 builds. Leaving them unpinned is correct.
CI. PR checks on c3f56e19574428dc710a50906b7c03d2c3c81da5 are green (review, checks, Lint Python Files, Check Mojo Files, Lint C++/CUDA Files, check-index). The deploy job itself is not exercised here: it only runs on push to main with paths: challenges/**, or workflow_dispatch. Merging this .github-only change will not start a deploy. The pin will first be proven on the next challenges/** push to main or a manual dispatch.
Optional later cleanup, not a blocker: bump the deploy job to Python 3.12 like the other workflows, after which ubuntu-latest would work again.
LGTM, no blockers.
ubuntu-latest now maps to an image without Python 3.9, so actions/setup-python@v5 with python-version '3.9' fails and challenge CD can't deploy. This pins only the deploy job to ubuntu-24.04. No other change.
Other workflows already use Python 3.12 (check-duplicated-index, lint, claude, create-challenge, review-bot), so they're left as-is.
Merge safety: the push trigger is paths: challenges/**, so merging this .github-only change won't start a deploy. A later workflow_dispatch run on main would redeploy all 147 challenges, and all 147 currently match prod byte-for-byte (title, difficulty, tier, spec, challenge code, accelerators, starters), so that run would be a content no-op.