Skip to content

chore(deps): move the fbuild pin to 2.5.23, restoring the SAMD boards - #4158

Merged
zackees merged 1 commit into
masterfrom
chore/fbuild-2.5.23
Sep 6, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/fbuild-2.5.23

Conversation

@zackees

@zackees zackees commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

What broke

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 and Adafruit_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, samd51j and samd51p all began failing before a compiler ran:

build error: package error: samd-core unpacked without its submodule contents.
  - libraries/Adafruit_TinyUSB_Arduino
  - libraries/Adafruit_ZeroDMA

Last green master samd21 was 39947bbce; 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 under Adafruit_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):

run date shard time
33711963539 09-03 37–38 min
33820032021 09-04 35–43 min
33993978241 09-05 (2.5.22) 13–14 min

Going forward was the only option that keeps both.

Verification

  • bash compile metro_m4 --examples Blink — succeeds, flash 28.90KB, unpacking the core to adafruit-samd-1.7.16/.
  • Upstream, fbuild build tests/platform/samd21 -e samd21 succeeds (flash 11420 B / RAM 3828 B).
  • uv sync installs 2.5.23; uv.lock is 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) and ch32v-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

  • Bug Fixes
    • Restored support for five SAMD boards.
    • Improved board setup reliability by using a verified core package source, preventing installation failures caused by missing submodules.

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
@coderabbitai

coderabbitai Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 3a56d299-d15e-4065-8eff-38a85220cae1

📥 Commits

Reviewing files that changed from the base of the PR and between 0b8190e and 003d641.

📒 Files selected for processing (1)
  • pyproject.toml

Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

fbuild dependency update

Layer / File(s) Summary
Update fbuild pin and history
pyproject.toml
The dependency pin changes to fbuild==2.5.23. The history comment documents the restored SAMD boards and the board-index bundle source.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 003d6

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the dependency pin update and the restoration of SAMD boards.
Linked Issues check ✅ Passed The change addresses issue #1400 by moving from the GitHub source archive to Adafruit’s board-index bundle, which includes the required TinyUSB and ZeroDMA submodule contents. The SHA-256 pin and repo…
Out of Scope Changes check ✅ Passed The changes are limited to the fbuild dependency pin and its pin-history documentation. They directly support the linked issue and stated PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/fbuild-2.5.23

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.

@zackees
zackees merged commit 42f6d89 into master Sep 6, 2026
33 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 6, 2026
zackees added a commit that referenced this pull request Sep 9, 2026
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
zackees added a commit that referenced this pull request Sep 9, 2026
* 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]>
@zackees
zackees deleted the chore/fbuild-2.5.23 branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

samd core is fetched without its submodules (TinyUSB, ZeroDMA) — same class as #1380

1 participant