Repository navigation
ci: select the forge pool for hosted Linux x64 lanes (#2214) - #2219
Merged
Merged
Conversation
The Dells eagerly take every job they can run and GitHub-hosted runners take
a job only when the Dells are full: 277 Linux x64 jobs ran hosted in the 24 h
to 2026-11-29 07:00Z while both Dells had idle capacity, because those jobs
hard-code `runs-on: ubuntu-latest` and never ask Signal.
Add the same `pool` selector job check-ubuntu.yml already proves -- the
pinned forge-ci `actions/pool-select` with `FORGE_POOL_LABELS` and an
`ubuntu-latest` fallback -- in front of every Linux x64 job these workflows
own: template_build.yml's per-board build (the biggest single consumer),
check-ubuntu.yml's glibc-floor and python-facade-tests, bench-205.yml's two
matrix jobs, and the standalone format, validate-boards, crate-gate,
lint-subprocess, loc-gate and ci-workflow-drift lanes.
Safety, all enforced by the new ci/test_pool_selector.py:
- a routed job reads the selector output only after it succeeded and keeps
`ubuntu-latest` otherwise, so an unset variable, a dead status endpoint or
a fork PR still gets hosted and never stalls;
- every routed job carries `!cancelled()`, because `needs: pool` alone
would SKIP the gate when the selector is skipped;
- no new selector fires on a `pull_request` (`allow_pr: false`), so fork PRs
can never land on self-hosted hardware. check-ubuntu.yml's pre-existing
selector keeps its current PR behaviour: moving the required Check lane
off the pool is a merge-queue policy decision, not a routing change.
- every hosted Linux x64 job that is NOT converted yet is named in the
test's DEFERRED map with its reason, so the remaining work stays visible
and a new unrouted job fails the guard instead of silently costing pool
capacity.
Deferred to #2214's next stage: dylint.yml's Dylint Full lane (a test pins it
free of any `if:`), the rendered ci-minimal/ci-full/ci-test aggregator and
fbuild-bin jobs, qemu-linux-runtime (needs a KVM capability probe on the pool
image), the nightly/scheduled jobs, benchmark-build-comparison (netns shape)
and release-auto.
#2214 stays open.
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.
Why
Operator directive (#2214): in the 24 h to 2026-11-29 07:00Z, 277 Linux x64 jobs ran on GitHub-hosted runners while both Dells had idle capacity. Those jobs hard-code
runs-on: ubuntu-latest, so they never ask Signal. Aforge-ci/ci.yml/actions/pool-selectselector in front of each Linux x64 job answersFORGE_POOL_LABELSwhen a Dell is idle andubuntu-latestotherwise, so the pool fills first and nothing ever stalls.What this changes
The selector pattern is copied verbatim from
check-ubuntu.yml(same pinned action SHAa36bc81a, samelabels/fallbackinputs, sameoutputs.runs-ondefault), added in front of every Linux x64 job these workflows own:template_build.ymlbuild— the per-board matrix build, the biggest single hosted consumercheck-ubuntu.ymlglibc-floor,python-facade-tests(checkalready selected)bench-205.ymlbench,fastled-examplesfmt.ymlfmtvalidate-boards.yml,crate-gate.yml,lint-subprocess.yml,loc-gate.yml,ci-workflow-drift.ymlSafety, enforced by
ci/test_pool_selector.py(new, 6 tests, registered in the drift suite)ubuntu-latestotherwise — unset variable, dead status endpoint or fork PR falls back to hosted and nothing stalls.!cancelled():needs: poolalone would skip the gate when the selector is skipped, turning it into a gate that never ran.pull_request(allow_pr: false) — fork PRs never land on self-hosted hardware.check-ubuntu.yml's pre-existing selector keeps its current PR behaviour: taking the required Check lane off the pool is a merge-queue policy decision, not a routing change.DEFERREDmap with its reason, so the remaining work stays visible and a new unrouted Linux job fails the guard instead of silently costing pool capacity.Staged, deliberately
Deferred to the next stage of #2214, each named in
DEFERRED:dylint.yml's Dylint Full lane —ci/test_fractional_workflows.pypins it free of anyif:so it can never be conditionally skipped; converting it needs a guard-visible selector pattern first rather than weakening that invariant.ci-minimal/ci-full/ci-testaggregator andfbuild_binjobs — aci/render_workflows.pychange, kept separate from this mechanical selector pass.qemu-linux-runtime.yml(needs a KVM capability probe on the pool image),nightly-platforms.yml,benchmark-build-comparison.yml(netns shape) andrelease-auto.yml.Real test output
ci.test_pool_selector6/6 OK; RED proven by reverting one routed job toruns-on: ubuntu-latest→ the completeness guard failed withtemplate_build.yml:build runs on a hosted Linux runner without a pool selector.DRIFT_UNITTEST_MODULES) 673 passed / 0 failed (TMPDIR=/tmp).ci/render_workflows.py --checkexit 0;check_workflow_concurrencyOK;check_python_complexityOK;check_python_types0 errors; ruff check clean on every touched Python file.ci/test_fractional_workflows.pyupdated to select the converted job by id instead ofnext(iter(jobs.values()))(the selector job is now first in three files); its 27 tests pass.#2214 stays open.