Skip to content

ci: select the forge pool for hosted Linux x64 lanes (#2214) - #2219

Merged
zackees merged 1 commit into
mainfrom
agent/2214-pool-select
Nov 30, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/2214-pool-select

Conversation

@zackees

@zackees zackees commented Nov 30, 2026

Copy link
Copy Markdown
Member

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. A forge-ci/ci.yml/actions/pool-select selector in front of each Linux x64 job answers FORGE_POOL_LABELS when a Dell is idle and ubuntu-latest otherwise, 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 SHA a36bc81a, same labels/fallback inputs, same outputs.runs-on default), added in front of every Linux x64 job these workflows own:

Workflow Jobs routed
template_build.yml build — the per-board matrix build, the biggest single hosted consumer
check-ubuntu.yml glibc-floor, python-facade-tests (check already selected)
bench-205.yml bench, fastled-examples
fmt.yml fmt
validate-boards.yml, crate-gate.yml, lint-subprocess.yml, loc-gate.yml, ci-workflow-drift.yml their one Linux job each

Safety, enforced by ci/test_pool_selector.py (new, 6 tests, registered in the drift suite)

  • A routed job reads the selector output only after it succeeded and keeps ubuntu-latest otherwise — unset variable, dead status endpoint or fork PR falls back to hosted and nothing stalls.
  • Every routed job carries !cancelled(): needs: pool alone would skip the gate when the selector is skipped, turning it into a gate that never ran.
  • No new selector fires on a 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.
  • Completeness: 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 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.py pins it free of any if: so it can never be conditionally skipped; converting it needs a guard-visible selector pattern first rather than weakening that invariant.
  • the rendered ci-minimal/ci-full/ci-test aggregator and fbuild_bin jobs — a ci/render_workflows.py change, 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) and release-auto.yml.

Real test output

  • ci.test_pool_selector 6/6 OK; RED proven by reverting one routed job to runs-on: ubuntu-latest → the completeness guard failed with template_build.yml:build runs on a hosted Linux runner without a pool selector.
  • full drift suite (all 37 DRIFT_UNITTEST_MODULES) 673 passed / 0 failed (TMPDIR=/tmp).
  • ci/render_workflows.py --check exit 0; check_workflow_concurrency OK; check_python_complexity OK; check_python_types 0 errors; ruff check clean on every touched Python file.
  • ci/test_fractional_workflows.py updated to select the converted job by id instead of next(iter(jobs.values())) (the selector job is now first in three files); its 27 tests pass.

#2214 stays open.

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.
@zackees
zackees added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit c6270b2 Nov 30, 2026
43 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