Skip to content

ci: gate board matrix behind explicit labels (phase 1) - #4549

Merged
zackees merged 12 commits into
masterfrom
feat/fractional-ci-selector-4543
Sep 24, 2026
Merged

zackees merged 12 commits into
masterfrom
feat/fractional-ci-selector-4543

Conversation

@zackees

@zackees zackees commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

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 master pushes skip them; internal PRs run all on ci-full, or a selected subset with cataloged ci-platform: and ci-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, and labels-sync share one registry derived from wrapper arguments and checked against ci/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 check found 83 ungated wrappers before generation; GREEN reports 0 drift across 90 selected workflows. Sixteen focused selector and existing security/sharding tests pass, bash lint passes, and git diff --check passes. On fixed SHA c533e77f, adding ci-platform:teensy41 executed 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-full must still be exercised on the final PR SHA before this is ready to merge.

The historical ordinary PR #4418 head cd48ec4 used 128.89 runner-minutes across 20 workflows; its merged master SHA df106df used 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 sum max(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 at 402f5235ee97f1aa6b660be1f9276e63c7e8b849 ran 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 9c0def16885d9bbb7b350927c17266e35f27ad65 also 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-full sweep 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 all step 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; rerun ci-full on 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 aaca3e47e8444f00c5732421422fe3a4a55c1d23 is 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.yml can 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.

Generate board job selection from the fbuild workflow registry, preserve exact PR head checkouts, and validate label transitions. Phase 1 of #4543.
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 063afe6b-7b98-488d-98f7-696497dac138

📥 Commits

Reviewing files that changed from the base of the PR and between 5cce0fb and 401ec24.

📒 Files selected for processing (115)
  • .github/workflows/avr8js_docker_template.yml
  • .github/workflows/avr8js_uno_test.yml
  • .github/workflows/bloat_regression_esp32s3.yml
  • .github/workflows/build.yml
  • .github/workflows/build_adafruit_feather_nrf52840_sense.yml
  • .github/workflows/build_adafruit_xiaoblesense.yml
  • .github/workflows/build_apollo3_red.yml
  • .github/workflows/build_apollo3_thing_explorable.yml
  • .github/workflows/build_arduino_uno_q.yml
  • .github/workflows/build_atmega8a.yml
  • .github/workflows/build_attiny1604.yml
  • .github/workflows/build_attiny1616.yml
  • .github/workflows/build_attiny4313.yml
  • .github/workflows/build_attiny85.yml
  • .github/workflows/build_attiny88.yml
  • .github/workflows/build_blackpill_stm32f4.yml
  • .github/workflows/build_bluepill.yml
  • .github/workflows/build_clearcore.yml
  • .github/workflows/build_digix.yml
  • .github/workflows/build_due.yml
  • .github/workflows/build_esp32_i2s_ws2812.yml
  • .github/workflows/build_esp32c2.yml
  • .github/workflows/build_esp32c3.yml
  • .github/workflows/build_esp32c5.yml
  • .github/workflows/build_esp32c6.yml
  • .github/workflows/build_esp32dev.yml
  • .github/workflows/build_esp32dev_idf3.3.yml
  • .github/workflows/build_esp32dev_idf4.4.yml
  • .github/workflows/build_esp32dev_idf5_component.yml
  • .github/workflows/build_esp32dev_idf6.yml
  • .github/workflows/build_esp32dev_namespace.yml
  • .github/workflows/build_esp32h2.yml
  • .github/workflows/build_esp32p4.yml
  • .github/workflows/build_esp32s2.yml
  • .github/workflows/build_esp32s3.yml
  • .github/workflows/build_esp32wroom.yml
  • .github/workflows/build_esp8266.yml
  • .github/workflows/build_giga_r1.yml
  • .github/workflows/build_lpc804.yml
  • .github/workflows/build_lpc845.yml
  • .github/workflows/build_lpc845brk.yml
  • .github/workflows/build_lpcxpresso804.yml
  • .github/workflows/build_lpcxpresso845max.yml
  • .github/workflows/build_maple_map.yml
  • .github/workflows/build_metro_m4.yml
  • .github/workflows/build_mgm240s_thingplusmatter.yml
  • .github/workflows/build_nano_every.yml
  • .github/workflows/build_nrf52840_dk.yml
  • .github/workflows/build_nrf52840_supermini.yml
  • .github/workflows/build_nrf52_xiaoblesense.yml
  • .github/workflows/build_nucleo_f429zi.yml
  • .github/workflows/build_nucleo_f439zi.yml
  • .github/workflows/build_rgbw.yml
  • .github/workflows/build_rp2040.yml
  • .github/workflows/build_rp2350.yml
  • .github/workflows/build_rp2350B.yml
  • .github/workflows/build_samd21.yml
  • .github/workflows/build_samd21_zero.yml
  • .github/workflows/build_samd51j.yml
  • .github/workflows/build_samd51p.yml
  • .github/workflows/build_stm103tb.yml
  • .github/workflows/build_teensy30.yml
  • .github/workflows/build_teensy31.yml
  • .github/workflows/build_teensy32.yml
  • .github/workflows/build_teensy35.yml
  • .github/workflows/build_teensy36.yml
  • .github/workflows/build_teensy40.yml
  • .github/workflows/build_teensy41.yml
  • .github/workflows/build_teensy41_ofled.yml
  • .github/workflows/build_teensyLC.yml
  • .github/workflows/build_teensy_octo.yml
  • .github/workflows/build_template.yml
  • .github/workflows/build_template_binary_size.yml
  • .github/workflows/build_uno.yml
  • .github/workflows/build_uno_r4_wifif.yml
  • .github/workflows/build_wasm.yml
  • .github/workflows/build_wasm_compilers.yml
  • .github/workflows/build_yun.yml
  • .github/workflows/check_attiny85.yml
  • .github/workflows/check_attiny85_twinklefox.yml
  • .github/workflows/check_bluepill_size.yml
  • .github/workflows/check_esp32_size.yml
  • .github/workflows/check_teensy30_size.yml
  • .github/workflows/check_teensy31_size.yml
  • .github/workflows/check_teensy32_size.yml
  • .github/workflows/check_teensy35_size.yml
  • .github/workflows/check_teensy36_size.yml
  • .github/workflows/check_teensy41_size.yml
  • .github/workflows/check_teensylc_size.yml
  • .github/workflows/check_uno_size.yml
  • .github/workflows/ci-labels.yml
  • .github/workflows/example_test_linux.yml
  • .github/workflows/example_test_windows.yml
  • .github/workflows/qemu_esp32c3_test.yml
  • .github/workflows/qemu_esp32dev_test.yml
  • .github/workflows/qemu_esp32s3_test.yml
  • .github/workflows/qemu_template.yml
  • .github/workflows/release.yml
  • .github/workflows/template_example_test.yml
  • .github/workflows/template_unit_test.yml
  • .github/workflows/unit_test_linux.yml
  • .github/workflows/unit_test_windows.yml
  • CLAUDE.md
  • agents/docs/build-system.md
  • ci-labels
  • ci-native
  • ci/ci_labels.py
  • ci/native_ci.py
  • ci/release.py
  • ci/release_gate.py
  • ci/tests/test_ci_labels.py
  • ci/tests/test_compile_example_sharding.py
  • ci/tests/test_native_ci_modes.py
  • ci/tests/test_release_gate.py
  • docs/CI_MODES.md
 _________________________________________________________________________________________________
< Question: How does a large software project get to be one year late? Answer: One day at a time! >
 -------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fastled-project-sync fastled-project-sync Bot moved this to In Progress in FastLED Tracker Sep 23, 2026
@zackees zackees added the ci-platform:teensy41 Select FastLED board CI cells label Sep 23, 2026
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.
@zackees zackees removed the ci-platform:teensy41 Select FastLED board CI cells label Sep 23, 2026
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.
@zackees zackees added the ci-full Run the complete release-equivalent CI matrix on this PR SHA label Sep 23, 2026
@zackees zackees removed the ci-full Run the complete release-equivalent CI matrix on this PR SHA label Sep 23, 2026
@zackees

zackees commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Final exact-commit validation at aaca3e47e8444f00c5732421422fe3a4a55c1d23: the unlabeled ordinary PR event passed with 97 workflows (four executed jobs, 93 skipped) and 17.87 raw runner-minutes. The ci-full label on that unchanged commit passed 97/97 workflows and 119/119 executed jobs, using 1,014.82 raw runner-minutes. The selector confirms a drift-free 90-workflow/109-job board catalog; all selected board workflows passed, including ESP32-S3 all-examples at 46.45 min. Native Linux, Windows, Intel macOS, and Apple Silicon macOS unit/example jobs passed; Mac units and Mac examples each ran both Mac architectures.

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 master savings and the release gate are addressed separately.

@zackees
zackees marked this pull request as ready for review September 24, 2026 02:06
@zackees
zackees merged commit dc0da70 into master Sep 24, 2026
121 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 24, 2026
@zackees
zackees deleted the feat/fractional-ci-selector-4543 branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run the complete release-equivalent CI matrix on this PR SHA

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant