Repository navigation
ci: pin every pool-select lane to one full SHA (#2214) - #2222
Merged
Merged
Conversation
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.
Stage 4 of #2214, and the only stage left that is shippable in-repo.
Stages 1-3 put the pinned
pool-selectselector in front of everybuild-capable Linux x64 lane. Their pin is a third-party action ref and it
appears in 11 workflow files, so the routing client is only as safe as those 11
copies staying identical:
invisible in CI: an older client also answers
hosted, with a differentreason string, so every lane still looks routed.
This adds one guard for both (
ci/test_pool_selector.py,SinglePinTests::test_every_pool_selector_use_pins_one_full_sha):usesand stepuses) and collects everyforge-ci/ci.yml/actions/pool-select@<ref>occurrence, asserting thecollection is at least as large as
ROUTED(a walker that finds nothingmust not pass vacuously);
^[0-9a-f]{40}$(full commit sha, no tag/branch);SELECTOR_SHA— one pin per repo, so the next stage(Signal
route/lease, which needs a newer client) is a single atomicchange instead of a hunt through 11 files.
RED proven twice: point one lane at a different 40-hex sha ->
'a36bc81a…' != '52f6ada3…'; point one lane at@v1->Regex didn't match: '^[0-9a-f]{40}$' not found in 'v1'. Restored, 8/8 green.Gates (real output): module
ci.test_pool_selector8/8; related workflowmodules 42/42; full drift suite 701/701 OK (
TMPDIR=/tmp);ci/check_python_types.py0 errors / 0 warnings;ruff checkclean;ci/render_workflows.py --checkexit 0.No workflow file changes and no new jobs: this only stops a future pin from
drifting. #2214 stays open — the remaining stages are gated outside this repo
(see the issue's latest receipt).