Skip to content

ci: route the Dylint Full lane through the forge pool selector (#2214) - #2221

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

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

Conversation

@zackees

@zackees zackees commented Nov 30, 2026

Copy link
Copy Markdown
Member

Part of #2214 (stage 3). #2214 stays open.

Why

dylint / Dylint Full (Linux builder, all OS targets) was the last build-capable
hosted Linux x64 lane in the repo: 3-4 minutes on ubuntu-latest on every main
push, PR run and merge-group run. It was deferred in stages 1-2 because
ci/test_fractional_workflows.py pins this job free of any if: — the lane is
the required Dylint check and must never be conditionally skippable, while
needs: pool alone lets a skipped selector skip the dependent job silently.

What

  • .github/workflows/dylint.yml: the pinned pool-select@a36bc81a job (same
    action/SHA as the other converted lanes) with fallback: ubuntu-latest; only
    trusted events are offered the pool (push, merge_group,
    workflow_dispatch) and never pull_request, so a fork PR cannot reach
    self-hosted hardware and the PR lane stays hosted.
  • the dylint job: needs: pool + if: ${{ !cancelled() }} (the only
    condition that skips nothing except a whole-run cancellation) and a
    runs-on that reads needs.pool.outputs.runs-on only after the selector
    succeeded
    , with a literal ubuntu-latest fallback for a skip, a failure or
    an unset pool variable. The existing
    if: runner.os == 'Linux' && runner.environment == 'github-hosted' disk step
    already handles a pool runner.
  • the merge-queue cache janitor now needs the selector job as well (its needs
    is asserted to be every other job in the file).

Guard, not a weakened guard

The structural pin is now an exact assertion rather than an absence check:
the lane must carry exactly ${{ !cancelled() }}, needs: pool and that
selector-derived runs-on. success() or needs.pool.result == 'success' —
both of which can turn a skipped selector into a silently skipped required
gate — fail the test. ci/test_pool_selector.py gains the same case and moves
("dylint.yml", "dylint") from DEFERRED into ROUTED.

Real output

  • RED proof (HEAD's dylint.yml restored, lane still in ROUTED):
    ci.test_pool_selector + ci.test_fractional_workflows → 2 failures +
    4 errors
    ('!cancelled()' not found in '', no pool job, no
    needs.pool.outputs.runs-on).
  • With the change: same modules 34 tests, OK.
  • Full drift suite (ci.local_suites.DRIFT_UNITTEST_MODULES, 37 modules,
    TMPDIR=/tmp): 674 tests, OK.
  • ci/render_workflows.py --check exit 0; ci/check_python_types.py 0 errors;
    ci/check_python_complexity.py exit 0; ci/check_workflow_concurrency.py
    exit 0; ruff check clean.

Still deferred on #2214

qemu-linux-runtime.yml (needs a pool KVM capability probe), the PR-only tiers
(ci-test.yml) and rendered aggregators, esp32s3-size-parity.yml (firmware
size, not capacity), the nightly/benchmark/release-auto lanes, and dylint's
static policy job (under a minute).

The required `dylint / Dylint Full (Linux builder, all OS targets)` lane ran
3-4 minutes on ubuntu-latest on every main push, PR and merge-group run. It
was left out of the #2214 conversion because `ci/test_fractional_workflows.py`
pinned it free of any `if:` -- the lane is never conditionally skippable, and
`needs: pool` alone would let a skipped selector skip the gate silently.

This teaches the guard that pattern instead of weakening it:

- dylint.yml gains the same pinned `pool-select@a36bc81a` job used by
  check-ubuntu.yml, with a hosted `fallback: ubuntu-latest`. Only trusted
  events are offered the pool (push, merge_group, workflow_dispatch) and never
  a pull request, so a fork PR cannot land on self-hosted hardware.
- the `dylint` job takes `needs: pool` with `if: ${{ !cancelled() }}` -- the
  only condition that skips nothing but a whole-run cancellation -- and reads
  `needs.pool.outputs.runs-on` only after the selector SUCCEEDED, with a
  literal `ubuntu-latest` fallback for a skip, a failure or an unset variable.
- the structural guard is now an EXACT pin: the lane must carry exactly
  `${{ !cancelled() }}`, `needs: pool`, and that selector-derived `runs-on`;
  `success()` or `needs.pool.result == 'success'` (both of which can turn a
  skipped selector into a skipped required gate) fail the test. A new case in
  ci/test_pool_selector.py pins the same shape, and the lane moves from
  DEFERRED into ROUTED.
- the merge-queue cache janitor needs the new selector job too (its `needs` is
  asserted to be every other job in the file).

RED proof: restoring HEAD's dylint.yml with the lane still in ROUTED gives
2 failures + 4 errors (`'!cancelled()' not found`, no `pool` job, no
`needs.pool.outputs.runs-on`); with the change the same modules are 34/34 green.

#2214 stays open: qemu (needs a KVM probe), the PR-only tiers, rendered
aggregators, nightly and release-auto are still deferred with reasons.
@zackees
zackees added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit dacb6fb 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