Skip to content

ci: pin every pool-select lane to one full SHA (#2214) - #2222

Merged
zackees merged 1 commit into
mainfrom
agent/2214-pin-invariant
Nov 30, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/2214-pin-invariant

Conversation

@zackees

@zackees zackees commented Nov 30, 2026

Copy link
Copy Markdown
Member

Stage 4 of #2214, and the only stage left that is shippable in-repo.

Stages 1-3 put the pinned pool-select selector in front of every
build-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:

  • a tag or branch ref can move under the repo (supply-chain hole), and
  • a per-file bump leaves some lanes on an older client. That failure is
    invisible in CI: an older client also answers hosted, with a different
    reason 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):

  1. walks every workflow (job-level uses and step uses) and collects every
    forge-ci/ci.yml/actions/pool-select@<ref> occurrence, asserting the
    collection is at least as large as ROUTED (a walker that finds nothing
    must not pass vacuously);
  2. asserts each ref is ^[0-9a-f]{40}$ (full commit sha, no tag/branch);
  3. asserts all refs equal SELECTOR_SHA — one pin per repo, so the next stage
    (Signal route/lease, which needs a newer client) is a single atomic
    change 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_selector 8/8; related workflow
modules 42/42; full drift suite 701/701 OK (TMPDIR=/tmp);
ci/check_python_types.py 0 errors / 0 warnings; ruff check clean;
ci/render_workflows.py --check exit 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).

@zackees
zackees added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit f08a3de Nov 30, 2026
39 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant