Repository navigation
ci: gate board matrix behind explicit labels (phase 1) - #4549
Conversation
Generate board job selection from the fbuild workflow registry, preserve exact PR head checkouts, and validate label transitions. Phase 1 of #4543.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (115)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Link board labels to companion QEMU, bloat, and AVR8JS checks and make longer-running test families opt-in except on ci-full.
Keep manual dispatch on the new selector workflow and pin the ESP32-S3 opt-in job to full example coverage.
Fail the stable selection check when emitted labels are missing from repository metadata.
A manual validation run inventories labels only; it cannot claim the complete board matrix executed.
Pin reusable Linux, Windows, and macOS unit/example checkouts to the tested PR SHA, matching selected board and emulator jobs.
|
Final exact-commit validation at The ordinary/full whole-event runner usage ratio is 1.7606% (17.8667 / 1,014.8167), satisfying the <10% PR compute target at this exact SHA. The full run includes every triggered workflow/job, with skipped ordinary jobs contributing zero. Detailed run IDs and reproducible method. Keeping this PR draft while ordinary |
Phase 1 of #4543 and the fleet normalization directive Soldr #3345: add a generated, script-backed selector for FastLED's fbuild board and size workflows.
The production change gates 109 board, size, QEMU, WASM, AVR8JS, and bloat jobs in 90 workflows. Ordinary
masterpushes skip them; internal PRs run all onci-full, or a selected subset with catalogedci-platform:andci-test:labels. Platform labels include companion size/emulator checks. Every selected workflow responds to label add/remove on the unchanged PR SHA. Build/test templates check out the PR head SHA. Existing hosted macOS policy from #4548 and the release workflow are unchanged.bash ci-labels list --json,expand,check,sync,labels-check, andlabels-syncshare one registry derived from wrapper arguments and checked againstci/boards.py. All 77 emitted GitHub labels have been synchronized. Unknown namespaced labels or missing GitHub labels fail the stable CI board selection check. Fork PRs cannot execute selected jobs.Validation: RED
bash ci-labels checkfound 83 ungated wrappers before generation; GREEN reports 0 drift across 90 selected workflows. Sixteen focused selector and existing security/sharding tests pass,bash lintpasses, andgit diff --checkpasses. On fixed SHAc533e77f, addingci-platform:teensy41executed exactly the five cataloged cells and all passed (runs 35925143266, 35925143409, 35925143525, 35925143930, 35925145245); removing it skipped all five on the same SHA (selector 35926520589 and skipped board runs).ci-fullmust still be exercised on the final PR SHA before this is ready to merge.The historical ordinary PR #4418 head
cd48ec4used 128.89 runner-minutes across 20 workflows; its merged master SHAdf106dfused 903.95 across 99. Those are historical routine-event comparisons, not the denominator for the user's <10%-of-full metric. For reproducibility, list Actions runs for the exact SHA and event, then list every run's jobs and summax(0, completed_at - started_at)only for executed jobs; skipped jobs may have inverted timestamps and must contribute zero. An unlabeled Phase 1 PR event at402f5235ee97f1aa6b660be1f9276e63c7e8b849ran from 2026-09-23 22:07:56 to 22:30:13 UTC: 97 workflows, five executed green jobs. Runs: Linux unit 35926587211 22.18 min, Windows unit 35926584958 8.92 min, Linux examples 35926587462 2.90 min, Windows examples 35926584947 2.40 min, and selector 35926584420 0.30 min. Total 36.70 min, or 28.5% of the old ordinary PR cost. The earlier 31.44-minute figure was provisional/incorrect.The subsequent unlabeled event at exact SHA
9c0def16885d9bbb7b350927c17266e35f27ad65also passed: 97 workflow runs, five executed jobs, 30.57 min. Runs: Linux unit 35928794972 16.87 min; Windows unit 35928792346 7.45; Linux examples 35928795957 3.07; Windows examples 35928792312 2.90; selector 35928791768 0.28. This is 23.7% of the historical ordinary PR cost, but 3.02% of the same-SHA full run's 1011.14 raw runner-minutes, which is the relevant compute ratio. The full run still had one timeout-cancelled cell, so this is not complete acceptance proof.That first same-SHA
ci-fullsweep instantiated all 109 catalog cells across 93 workflows and consumed 1011.14 raw positive runner-minutes. 108/109 cells passed; ESP32-S3 all-examples run 35930376244 was cancelled at the inherited 45-minute job timeout. The./compile esp32s3 allstep itself succeeded in 43m31 (22:56:03–23:39:34 UTC), and post-build steps succeeded through 23:40:05 before job cancellation at 23:40:13. The next commit gives only that full cell a bounded 60-minute timeout through the reusable template input (other boards retain 45). This is not yet full proof; rerunci-fullon the final commit and require 109/109 success. Phase 2 also replaces routine full native/Python suites with checked-in representative smoke inventories; measure a clean final-SHA ordinary event against the strict <10% whole-event budget before merge.Phase 2's corrected exact-head ordinary event at
aaca3e47e8444f00c5732421422fe3a4a55c1d23is green: 97 triggered workflows, 116 check jobs including skips, four executed jobs, 17.87 raw runner-minutes. Linux unit smoke 35935742841 6.68 min, Windows unit smoke 35935741265 8.57, Linux CompileTests 35935741116 2.35, and selector 35935742640 0.27. This is provisionally 1.77% of the earlier full sweep's 1011.14 min; the decisive ratio awaits a green complete ci-full event on this same SHA. Windows LF/CRLF target handling was verified RED→GREEN before this event. Draft stays unmerged.Release safety remains open in #4543. The current
release.ymlcan tag a version-change push before full exact-SHA validation, and the package registry crawler can publish the default-branch version. This PR does not claim release readiness.