Repository navigation
chore(deps): move the fbuild pin to 2.5.23, restoring the SAMD boards - #4158
Conversation
2.5.22 turned a latent packaging bug into five red boards. `samd-core` was fetched from GitHub's auto-generated source archive, which omits submodules by design; tag 1.7.16 declares two under `libraries/` (Adafruit_TinyUSB_Arduino, Adafruit_ZeroDMA). That never mattered here -- FastLED's SAMD sketches include neither library, so these boards were green for months. 2.5.22 shipped FastLED/fbuild#1401, an unpack-time submodule check that fires on the *package* rather than on use. So metro_m4, samd21, samd21_zero, samd51j and samd51p all began failing before a compiler ran: build error: package error: samd-core unpacked without its submodule contents. These directories are declared in .gitmodules and came out empty: - libraries/Adafruit_TinyUSB_Arduino - libraries/Adafruit_ZeroDMA 2.5.23 fetches the core from Adafruit's board-index bundle, which does carry the submodule trees, with its sha256 pinned and verified -- the old URL passed no checksum at all (FastLED/fbuild#1418, closes FastLED/fbuild#1400). Reverting to 2.5.21 was the other way to unbreak these five, but 2.5.22 is also what cut ESP32-S3 shard time from 34-43 min to 13-14 min (FastLED/fbuild#1413), so going forward was the only option that keeps both. Verified locally: `bash compile metro_m4 --examples Blink` succeeds (flash 28.90KB) against fbuild 2.5.23, unpacking the core to `adafruit-samd-1.7.16/`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe project updates fbuild from 2.5.22 to 2.5.23. The pin history records that the new release restores five SAMD boards by using Adafruit’s board-index bundle with a pinned SHA-256 value. Changesfbuild dependency update
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This updates fbuild to restore SAMD board provisioning with the prepared Adafruit bundle. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
The 8-way matrix was sized when a serial sweep took "several hours" because every sketch rebuilt the framework sources. That was FastLED/fbuild #1411/#1413 -- the ESP32 SDK-libs completion check required `<mcu>/lib/libfreertos.a`, which ESP32-S3 alone does not ship there, so every build re-extracted the 298 MB SDK before doing any work. It shipped fixed in fbuild 2.5.22 and FastLED has been on 2.5.23 since #4158. Measured rather than extrapolated, and measured on one branch on one day so the two numbers are comparable -- #3956's lesson is that a cross-build comparison proves almost nothing: shards wall clock runner minutes 1 35.0 min 35.0 3 21.8 min 61.9 8 14.4 min 80.3 (09-06 run, for reference) The headline is the per-shard cost. The issue estimated duplicated setup at ~35 s per shard from step timings, and concluded "sharding is not costing much in overhead". Measured, each extra shard duplicates about 8.9 minutes -- roughly fifteen times that -- which is why 8 shards spend more than twice a serial sweep's runner time to save 20 minutes of wall clock. 3 is the balance. The gate finishes in ~22 minutes, less than half the 45-minute bound in build_template.yml with room for the sweep to grow, and runner consumption falls by about a third. Serial fits as well, at 35 minutes, but leaves only 10 minutes of headroom on a set of examples that only gets bigger -- and #3791's whole lesson was that a gate which quietly runs long is how a defect hides. `build_template.yml` keeps the `timeout_minutes` input that made the measurement possible. It defaults to 45, so every caller keeps exactly the bound it has today, and re-measuring this does not need the workflow edited again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
* ci(esp32s3): measure a serial example sweep (#4165) MEASUREMENT ONLY -- not for merge as-is. #4165 asks for a real serial number before changing the shard count, since the 8-way matrix was sized against an fbuild bug (per-sketch framework rebuilds) that shipped fixed in 2.5.22 and is no longer the cost it was written for. Runs the sweep as a single shard with a 120-minute bound. The template gains a `timeout_minutes` input defaulting to 45, so every existing caller keeps exactly the bound it had. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9 * ci(esp32s3): measure a 3-shard sweep for comparison (#4165) MEASUREMENT ONLY. The serial run on this branch took 35m03s. Comparing that against the 8-shard numbers in the issue would be a cross-build comparison across three days and a different branch, which this repo's own lessons file warns proves almost nothing -- so the candidate is measured here under the same conditions instead of extrapolated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9 * ci(esp32s3): reduce the example sweep from 8 shards to 3 (#4165) The 8-way matrix was sized when a serial sweep took "several hours" because every sketch rebuilt the framework sources. That was FastLED/fbuild #1411/#1413 -- the ESP32 SDK-libs completion check required `<mcu>/lib/libfreertos.a`, which ESP32-S3 alone does not ship there, so every build re-extracted the 298 MB SDK before doing any work. It shipped fixed in fbuild 2.5.22 and FastLED has been on 2.5.23 since #4158. Measured rather than extrapolated, and measured on one branch on one day so the two numbers are comparable -- #3956's lesson is that a cross-build comparison proves almost nothing: shards wall clock runner minutes 1 35.0 min 35.0 3 21.8 min 61.9 8 14.4 min 80.3 (09-06 run, for reference) The headline is the per-shard cost. The issue estimated duplicated setup at ~35 s per shard from step timings, and concluded "sharding is not costing much in overhead". Measured, each extra shard duplicates about 8.9 minutes -- roughly fifteen times that -- which is why 8 shards spend more than twice a serial sweep's runner time to save 20 minutes of wall clock. 3 is the balance. The gate finishes in ~22 minutes, less than half the 45-minute bound in build_template.yml with room for the sweep to grow, and runner consumption falls by about a third. Serial fits as well, at 35 minutes, but leaves only 10 minutes of headroom on a set of examples that only gets bigger -- and #3791's whole lesson was that a gate which quietly runs long is how a defect hides. `build_template.yml` keeps the `timeout_minutes` input that made the measurement possible. It defaults to 45, so every caller keeps exactly the bound it has today, and re-measuring this does not need the workflow edited again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9 * ci: correct the runner-consumption figure and drop the timeout input Two review findings. The percentage was wrong, and it was a claim about my own measurement: 80.3 -> 61.9 runner-minutes is 22.9%, not "roughly a third". The comment now gives both numbers so the arithmetic is checkable, and records that serial is cheaper still at 35.0 -- a 56% cut -- with the reason 3 is preferred anyway. The `timeout_minutes` input is gone and `build_template.yml` is back to master untouched. GitHub's `type: number` accepts 0, -1 and 1.5, all of which make a job-level `timeout-minutes` invalid, and the value is evaluated before the job starts so no step can guard it. I had justified keeping it on "re-measuring should not need the workflow edited again" -- but the serial sweep turned out to take 35 minutes, under the existing 45-minute bound, so raising the timeout was never actually necessary. Keeping speculative API with a validity footgun in a PR-gate workflow to save a five-line temporary edit is the wrong trade. The measurement stands; it is recorded in the PR and in the comment above the matrix. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9 --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
What broke
2.5.22 turned a latent packaging bug into five red boards.
samd-corewas fetched from GitHub's auto-generated source archive, which omits submodules by design; tag 1.7.16 declares two underlibraries/—Adafruit_TinyUSB_ArduinoandAdafruit_ZeroDMA.That never mattered here: FastLED's SAMD sketches include neither library, so these boards were green for months. Then 2.5.22 shipped FastLED/fbuild#1401, an unpack-time submodule check that fires on the package rather than on use, so
metro_m4,samd21,samd21_zero,samd51jandsamd51pall began failing before a compiler ran:Last green master
samd21was39947bbce; the first run after the 2.5.22 pin landed failed.The fix
2.5.23 fetches the core from Adafruit's board-index bundle, which does carry the submodule trees (368 files under
Adafruit_TinyUSB_Arduino/, 25 underAdafruit_ZeroDMA/), with its sha256 pinned and verified — the old URL passed no checksum at all. FastLED/fbuild#1418, closes FastLED/fbuild#1400.Why not just revert to 2.5.21
That was the other way to unbreak these five, but 2.5.22 is also what cut ESP32-S3 shard time from 34–43 min to 13–14 min (FastLED/fbuild#1413):
337119635393382003202133993978241Going forward was the only option that keeps both.
Verification
bash compile metro_m4 --examples Blink— succeeds, flash 28.90KB, unpacking the core toadafruit-samd-1.7.16/.fbuild build tests/platform/samd21 -e samd21succeeds (flash 11420 B / RAM 3828 B).uv syncinstalls 2.5.23;uv.lockis gitignored here, so this pin is the only committed half of the cascade.Still latent upstream
Two other cores are on GitHub archives and declare submodules —
silabs-core(extra/core-api) andch32v-core(libraries/Adafruit_TinyUSB_Arduino). Neither is in FastLED's CI matrix, so neither is red today; both are the same shape SAMD had before 2.5.22. Documented on FastLED/fbuild#1418.🤖 Generated with Claude Code
https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
Summary by CodeRabbit