Repository navigation
Run short CI bookkeeping jobs on ubuntu-slim runners - #72852
Conversation
A large share of our workflow jobs never build an image, never install Airflow and never run a test suite - they compute a matrix, post a Slack message, close a stale issue or check a newsfragment name. Those jobs held a 2-core runner for their whole (short) lifetime, competing with the builds and test shards that genuinely need one. ubuntu-slim is a single-core, 5 GB, unprivileged container image, which is the right size for that class of work and keeps the larger runners free for jobs that cannot fit on it. Its constraints - no Docker daemon, an externally-managed system Python, a minimal toolset - decided which jobs moved: anything touching Breeze, Docker, Gradle or a real test suite stayed where it was. Three of the moved jobs installed uv by extracting the version from uv.lock and pip-installing it into the system interpreter, which PEP 668 refuses on this image. They now use astral-sh/setup-uv with version-file: uv.lock, which resolves the same locked version and lets uv provision its own Python. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UL4HBX63zq4um1L4XBcJYy
jason810496
left a comment
There was a problem hiding this comment.
Make sense to use lightweight machine for the operational work, nice one. Thanks.
Co-authored-by: Wei Lee <[email protected]>
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 1685bd6 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
|
Hi maintainer, this PR was merged without a milestone set.
|
) (#72874) * Run short CI bookkeeping jobs on ubuntu-slim runners A large share of our workflow jobs never build an image, never install Airflow and never run a test suite - they compute a matrix, post a Slack message, close a stale issue or check a newsfragment name. Those jobs held a 2-core runner for their whole (short) lifetime, competing with the builds and test shards that genuinely need one. ubuntu-slim is a single-core, 5 GB, unprivileged container image, which is the right size for that class of work and keeps the larger runners free for jobs that cannot fit on it. Its constraints - no Docker daemon, an externally-managed system Python, a minimal toolset - decided which jobs moved: anything touching Breeze, Docker, Gradle or a real test suite stayed where it was. Three of the moved jobs installed uv by extracting the version from uv.lock and pip-installing it into the system interpreter, which PEP 668 refuses on this image. They now use astral-sh/setup-uv with version-file: uv.lock, which resolves the same locked version and lets uv provision its own Python. Claude-Session: https://claude.ai/code/session_01UL4HBX63zq4um1L4XBcJYy * Update dev/breeze/doc/ci/05_workflows.md --------- (cherry picked from commit 1685bd6) Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Wei Lee <[email protected]>
A large share of our workflow jobs never build an image, never install Airflow
and never run a test suite — they compute a matrix, post a Slack message, close
a stale issue, check a newsfragment name. They were holding a 2-core runner for
their whole (short) lifetime, competing with the builds and test shards that
genuinely need one.
ubuntu-slim(1 core, 5 GB RAM, 14 GB disk, unprivileged container) is the rightsize for that class of work. 22 jobs across 19 workflows move onto it.
What decided the cut
ubuntu-slim's constraints, verified against the runner image rather than assumed:Breeze, image builds or Docker-container actions stays put.
python3is Ubuntu's system interpreter — PEP 668 externally managed, so abare
pip installfails.git,gh,jq,node,curlpresent; no Java, no Go.actions/setup-*still works (tool-cache downloads).So every moved job is one that only shuffles metadata: matrix computation
(
detect-languages,registry-backfill'sprepare), notifications (notify-slack,notify-on-failure, the CI-duration and flaky-test reports), issue/PR housekeeping(
stale,recheck-old-bug-report,milestone-tag-assistant,automatic-backport),and cheap guards (
check-newsfragment-pr-number, the twodependency-reviewjobs,registry-tests). I checked that every Python script involved is stdlib-only.uv installs
Three moved jobs installed uv by
sed-ing the version out ofuv.lockandpip-installing it into the system interpreter — which this image refuses. They now use:
setup-uv'suv.lockparser finds the package nameduvand returns its version —exactly what the
seddid — so the pin is preserved.ci-notificationwas previouslyinstalling unpinned uv, so it gains determinism here. All three scripts carry PEP 723
inline metadata, so
uv runprovisions its own Python; nosetup-pythonneeded. Thepinned SHA is already used in
registry-tests.ymland is on the ASF approved allowlist.Not moved
asf-allowlist-checkis the one obvious candidate left behind: the blocker is insidethe upstream
apache/infrastructure-actions/allowlist-checkcomposite, which does abare
pip install ruyamlwith nosetup-python. Fixing that belongs upstream — PR tofollow.
registry-testsis the only moved job doing real work, so its timeout goes 5 → 10 minfor the single core.
Also documents the two runner tiers and the slim constraints in
dev/breeze/doc/ci/05_workflows.md, so new jobs land on the right one.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines
🤖 Generated with Claude Code
https://claude.ai/code/session_01UL4HBX63zq4um1L4XBcJYy