Repository navigation
ci(hw): gate the nightly hardware matrix on an enabled runner farm - #1957
Merged
Merged
Conversation
With no self-hosted runner carrying the `hw-ci` label (the repo currently
reports zero registered runners), `runs-on: [self-hosted, hw-ci]` does not
skip: GitHub holds every matrix leg QUEUED until it cancels the job 24 h
later. The nightly 02:30Z schedule has therefore ended as a cancelled run
with five dead queue slots every night since 2026-11-03 while never
executing a single step -- and the workflow header claimed the opposite
("the job skips silently") because a step-level guard cannot run in a job
that was never scheduled.
Move the decision ahead of scheduling:
- `bringup` additionally requires `vars.HW_CI_ENABLED == 'true'`;
- a `dormant` job on a hosted runner posts the reason as a notice so the
nightly run stays green and self-explaining;
- the setup doc gains the enable/disable commands.
Enabling is one command (`gh variable set HW_CI_ENABLED --body true`) and
is the only step needed once the runner farm from
agents/docs/hardware-ci-setup.md is registered.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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.
Problem
hw-ci.ymlhas been doing nothing but burning five queue slots every night.gh api repos/FastLED/fbuild/actions/runnersreportstotal_count: 0— noself-hosted runner carries the
self-hosted/hw-cilabels. A job whoseruns-onnames an unregistered runner is not skipped: it stays queued untilGitHub cancels it ~24 h later. The evidence:
cancelledcancelledcancelledcancelledcancelledqueued, 5 h inFive matrix legs per night, zero steps ever executed.
The workflow header claimed the opposite ("Until that runner exists, the job
skips silently (the
if:guard on each step ...)"). A step-level guard cannotdo that: a job that was never scheduled never reaches its steps. The dormancy
decision has to be made before scheduling.
Change
bringupnow additionally requiresvars.HW_CI_ENABLED == 'true', so with nofarm the matrix is never scheduled and nothing queues.
dormantjob on a hosted runner (scheduleonly, 2 min timeout) posts thereason as a
::notice::plus the enabling command, so the nightly run staysgreen and self-explaining instead of silently doing nothing.
agents/docs/hardware-ci-setup.mdgains a "Dormant by default" section andthe gate is folded into step 6 (enable, then dispatch).
Enabling is one command once the farm exists — no workflow edit, no second PR:
No product code is touched; the matrix, fingerprints, known-good firmware and
failure-reporting path are unchanged.
Verification
workflow_dispatch, run42460037917):
completed/skippedin 2 seconds,dormant :: skipped,bringup :: skipped— no queue, no 24 h wait. The same dispatch onmain(42439124994) is still queued after 5 h.
python ci/check_workflow_concurrency.py→ OK (rc 0).python -m unittest ci.test_fractional_workflows ci.test_gate_jobs ci.test_local_gate→ 43 tests OK.python ci/render_workflows.py --check→ rc 0 (no renderedbuild-*.ymldrift).if:expressions resolved as intended.Not done here
HW_CI_ENABLED— both are owner infradecisions, and the variable must stay unset until a farm exists.
are left as-is for the record.