Skip to content

ci(esp32dev_size): bump max_size 330000 → 700000 to unblock master (Closes #2608) - #2790

Merged
zackees merged 1 commit into
masterfrom
fix/esp32dev-size-budget-700k
Jun 5, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/esp32dev-size-budget-700k

Conversation

@zackees

@zackees zackees commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes the esp32dev_binary_size workflow that has been red on master with esp32dev size 635768 is greater than max size 330000 for ~6 days (100% failure rate across 30+ runs). Per the recommendation in #2608, this picks option A: bump the budget to reflect platformio-backend reality, then recalibrate downward later when fbuild can be re-enabled.

Closes #2608. Also clears one of the red badges tracked in #2779.

Why 330 KB no longer fits

Per #2608 root cause, three things piled on top of the 2025-08-15 ceiling (set when stock build was ~320 KB):

  1. The Channel API landed (~70 KB structural cost, ESP32-S3 binary size: 657 KB on master vs 344 KB on 3.10.3 — remaining +313 KB delta breakdown #2473).
  2. ci(size): pin binary-size checks to --backend platformio (unblock master) #2605 pinned all binary-size checks to --backend platformio to dodge fbuild's missing build_info.json (fbuild#297) and link bloat (fbuild#304). PlatformIO does NOT strip .eh_frame, so we lose the ~169 KB savings that fbuild provided.
  3. Arduino-ESP32 framework itself grew with subsequent releases.

Current stock Blink build via --backend platformio is 635,768 B vs. the 330,000 B ceiling — a +305 KB delta (+93%).

What this PR changes

.github/workflows/check_esp32_size.yml:

```diff

  •  max_size: 330000
    
  •  max_size_apa102: 330000
    
  •  max_size: 700000
    
  •  max_size_apa102: 700000
    

```

700 KB = current 635 KB + ~10% headroom. Both budgets bumped equally because the build template runs both Blink and Apa102 size checks against the same backend; the framework cost dominates both.

Tradeoff

Per #2608: this loses regression-detection sensitivity until the fbuild backend can be restored (fbuild#297 + #304 + revert #2605), at which point a follow-up issue will recalibrate this budget downward to the actual fbuild-backend size.

Test plan

  • Workflow YAML change only — no bash lint/bash test touchpoint.
  • This PR's own esp32dev_binary_size CI run is the authoritative verification (the previous step was failing at 635 KB > 330 KB; with the bumped ceiling the same compile should pass).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated binary size limits for ESP32 builds to accommodate larger firmware images.

…loses #2608)

The check_esp32_size workflow has been red on master with
`esp32dev size 635768 is greater than max size 330000` since at least
2026-05-30 (100% failure rate across 30+ runs).

Per #2608 option A, bump both max_size and max_size_apa102 from 330000
to 700000 (~10% headroom over the observed 635 KB) so master goes green
again. The 330 KB ceiling pre-dates the Channel API (~70 KB), pinning
the size check to the platformio backend in #2605 (lost the ~169 KB
eh_frame strip from fbuild), and subsequent Arduino-ESP32 framework
growth.

Follow-up tracked in #2608: once fbuild ships #297 (build_info.json)
and #304 (framework .o archiving) so #2605 can be reverted, file a
new issue to recalibrate this budget downward to the fbuild-backend
size.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 5, 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: Pro

Run ID: 9a6ec510-d7e9-4817-9548-41197f34f09c

📥 Commits

Reviewing files that changed from the base of the PR and between 787de45 and 9b853f8.

📒 Files selected for processing (1)
  • .github/workflows/check_esp32_size.yml

📝 Walkthrough

Walkthrough

The check_esp32_size.yml CI workflow's binary size limits are updated from 330 KB to 700 KB for both max_size and max_size_apa102 parameters, reflecting actual compiled output under the platformio backend.

Changes

ESP32 CI Size Threshold

Layer / File(s) Summary
Size limit threshold adjustment
.github/workflows/check_esp32_size.yml
Binary size check limits for ESP32 increased from 330000 to 700000 bytes to accommodate platformio backend output.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • FastLED/FastLED#2605: Both PRs modify the CI binary-size check pipeline; the main PR raises ESP32 max_size* thresholds in check_esp32_size.yml, while the retrieved PR changes the shared build_template_binary_size.yml to call the size-check script with --backend platformio.

Poem

A rabbit hops through CI gates with glee,
700 kilobytes now flow free!
From 330 to 700, the threshold rose,
No more red lights on master—off we go! 🐇✨

🚥 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 accurately describes the main change: bumping esp32dev's max_size from 330000 to 700000 bytes to resolve a CI workflow failure, with a clear issue reference.
Linked Issues check ✅ Passed The PR fully addresses the primary coding objective from #2608: increasing max_size and max_size_apa102 to 700000 to unblock the failing esp32dev_binary_size workflow.
Out of Scope Changes check ✅ Passed The changes are narrowly scoped to the stated objective: only two lines in check_esp32_size.yml were modified to bump size limits, with no unrelated alterations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/esp32dev-size-budget-700k

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 and usage tips.

@FastLED FastLED locked and limited conversation to collaborators Jun 5, 2026
@zackees
zackees merged commit f00e8cf into master Jun 5, 2026
2 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 5, 2026
@zackees
zackees deleted the fix/esp32dev-size-budget-700k branch August 21, 2026 19:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

esp32dev_binary_size: stale 330 KB budget vs 635 KB reality on platformio backend

1 participant