Repository navigation
Description
Symptom
esp32dev_binary_size workflow has been failing on master continuously since at least 2026-05-30 02:00 UTC:
esp32dev size 635192 is greater than max size 330000
::error::Compiled size exceeds maximum allowed size
100% failure rate across 30+ runs (gh run list --workflow=esp32dev_binary_size --branch=master --limit=100 reports zero successes).
Root cause
The max_size budget in .github/workflows/check_esp32_size.yml is 330000 bytes, last bumped 2025-08-15 in commit 8ed2ea80f (#2056) from 320000 → 330000 to track "a little bit" of Arduino-ESP32 framework growth.
Since then:
- The Channel API landed (~70 KB structural cost — see ESP32-S3 binary size: 657 KB on master vs 344 KB on 3.10.3 — remaining +313 KB delta breakdown #2473)
- The
.eh_frameorphan-unwind metadata stripping was migrated to fbuild#243 (now closed/merged), which strips ~169 KB — but the size workflow was just pinned to--backend platformioby ci(size): pin binary-size checks to --backend platformio (unblock master) #2605 to dodge fbuild's missingbuild_info.json(fbuild#297) and link bloat (fbuild#304). PlatformIO does NOT strip eh_frame, so we lose that 169 KB savings. - Arduino-ESP32 framework itself grew with subsequent releases.
Result on current master, fresh Blink build via --backend platformio:
firmware.bin= 635,192 B (635 KB)- Budget = 330,000 B (330 KB)
- Delta = +305 KB (+93%)
This is a real growth, not a measurement glitch — the 330 KB ceiling no longer reflects what a stock ESP32 Arduino + FastLED build produces under the platformio backend.
Options
| Option | Pros | Cons |
|---|---|---|
A. Bump max_size to ~700000 (current 635 + ~10% headroom) |
Restores green CI immediately; reflects reality of platformio backend | Loses regression-detection sensitivity until we recalibrate after fbuild backend returns |
| B. Wait for fbuild backend to come back (fbuild#297, #304 fixes ship + #2605 reverts) | Recovers the 169 KB eh_frame savings, so 330 KB might become attainable again | Keeps CI red for an indeterminate time |
| C. Track size on a per-section basis (text only, ignoring framework) | More stable across framework versions | Requires non-trivial rework of ci/compiled_size.py |
Recommended: A. Bump to 700000 now to unblock master. Once fbuild ships the extra_flags/link fixes and #2605 is reverted, file a follow-up to lower the limit back to whatever the fbuild-backend size actually is.
Reproduction
gh run view 26690455730 --log-failed
Related
- ESP32-S3 binary size: 657 KB on master vs 344 KB on 3.10.3 — remaining +313 KB delta breakdown #2473 — ESP32-S3 binary size breakdown (same structural cost on ESP32)
- ci(size): pin binary-size checks to --backend platformio (unblock master) #2605 — pin all binary-size checks to platformio backend (unblocked the other 7 size workflows, but esp32dev's size budget was already too tight)
- fbuild#297 — fbuild missing
build_info.jsonemitter - fbuild#304 — fbuild not archiving framework
.ofiles (link bloat)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon May 30, 2026
Reconsidered after user pushback: do NOT raise the budget.
The current 330 KB ceiling and the 635 KB current reality are structurally incompatible. Per the #2473 audit on a sister ESP32-S3 with the same architecture:
.eh_frame(not stripped on platformio backend): ~170 KBEven with every known size optimization landed:
-fno-asynchronous-unwind-tableseverywhere → −169 KB-fno-rttifor libFastLED) → −15 KBThe floor lands around 415-430 KB. Still ~100 KB over the 330 KB budget.
So with the budget held constant, the path to green is one of:
Narrow the measurement scope — change
ci/compiled_size.pyto report a delta against a known framework baseline binary (compile Blink with emptysetup()/loop()once per framework version, subtract). The 330 KB budget then measures FastLED's contribution, which is ~70 KB and well under the ceiling.Switch the workflow off Arduino framework — measure against a pure ESP-IDF build that doesn't drag in the 250 KB framework baseline. Requires a new sketch fixture and a different
platformio.inienv.Drop this workflow as broken-by-design until one of the above is implemented; mark the YAML
if: falseso it stops cluttering CI red.Closing as "blocked on design decision" rather than as a fix-able bug — the budget itself is fine, the binary itself is structurally legitimate, but the comparison is comparing two different things (total firmware vs. an old framework's total firmware). Re-open with a chosen option to drive an implementation.
zackees commentedon Jun 5, 2026
this is a deep regression and we can't just raise the check pass
ci(size-checks): narrow scope to teensy41 only — esp32dev handled by #…
ci(esp32dev_size): bump max_size 330000 -> 700000 to unblock master (C…
ci(size-checks): bump teensy41 Apa102 budget 88000 → 165000 (Closes #…
ci(esp32_size): raise cap to 700KB pending fbuild flag-port investiga…
feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (#3279) (#3295