Repository navigation
Description
Goal
Land the two concrete follow-ups proposed in the measured audit comment on #2886 (#2886#issuecomment-4641413123):
- Ratchet the regression-gate baseline at
tests/data/esp32s3_bloat_baseline.txtfrom388380β350568(the measured post-Stage-1 number onmaster @ 824cb5c0e3). - Flip the relevant priority-table rows in
docs/SLIM_ESP32S3.mdfrom π β β with the measured numbers attached.
No source change. This is a tooling-config + doc PR.
Parent: #2886 β completes the loop opened by Stage 6 (#2900) which shipped the gate without a measured baseline, and Stage 0 (#2898) which shipped the user-facing doc with everything marked π.
Why this matters
- The gate currently doesn't catch real regressions. With the baseline pinned at
388380(the pre-Stage-1 number), a PR that regresses anywhere between the current measured 350,568 B and the old baseline silently passes. Tightening to350568reclaims that headroom. - The doc currently mis-represents what's measured vs. projected. Users reading
docs/SLIM_ESP32S3.mdsee every row marked π even though Stage 1's effects are now empirically confirmed. Honest status flags help users make informed build decisions.
Deliverable
1. tests/data/esp32s3_bloat_baseline.txt β ratchet
Single-line change: 388380 β 350568. That's the measured total_flash from the audit posted to #2886 (build SHA 824cb5c0e3, esp32s3 NEOPIXEL Blink, release config, NDEBUG set so FASTLED_LOG_VERBOSITY defaults to 0 per Stage 1).
The gate at .github/workflows/bloat_regression_esp32s3.yml immediately enforces the tighter budget on the next PR.
2. docs/SLIM_ESP32S3.md β flip π β β
where backed by measurement
The priority table currently reads:
| 1 | FASTLED_LOG_VERBOSITY=0 | ... | ~43-58 KB | π | #2890 |
After this PR:
| 1 | FASTLED_LOG_VERBOSITY=0 | ... | β
β37.8 KB measured (382,380 β 350,568 B on 824cb5c0e3) | β
| #2890 |
Rows that stay π until their build flag is exercised in a measured build:
- Row 2 (
tools/sdkconfig_for_smallest_fastled.defaults) β needs a measured build with the overlay applied. - Row 4 (
-DFASTLED_SUPPRESS_ARDUINO_CHIP_DEBUG_REPORT=1) β needs a measured build with the flag set. - Row 5 (
CONFIG_BT_ENABLED=n) β needs a measured build with BT off.
Row 3 (-DFASTLED_RMT_STATIC_ALLOCATION=1) stays π too β it requires its own opt-in flag; the new measurement didn't exercise it.
The roadmap section also gets a one-line update noting that Stage 1's effects are now empirically confirmed (the audit posted to #2886 is cited).
Acceptance
tests/data/esp32s3_bloat_baseline.txtcontains350568.docs/SLIM_ESP32S3.mdrow 1 of the priority table is β with the measured number attached. Rows 2/4/5 stay π with the same "needs a measured build" rationale.- The Roadmap section cites the audit comment URL as the source of the measurement.
- CI runs the regression gate against the new baseline; on
master @ 824cb5c0e3it passes withheadroom = 0 B(the baseline IS the current build).
Out of scope
- Measuring a build with Stage 2 + 3 + RMT_STATIC opt-ins enabled. That's a separate follow-up that delivers row 2 / 3 / 4's flip.
- Touching the Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) β supersedes #2885Β #2886 end-goal (
280,000 B) β the gate ratchets DOWN incrementally only when measured savings land.
Related
- Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) β supersedes #2885Β #2886 β parent meta + the audit comment that proposed these follow-ups.
- ci(esp32): bloat regression gate with ratcheting baseline (#2886 Stage 6)Β #2900 β Stage 6 (the gate this PR ratchets).
- docs(esp32): ship docs/SLIM_ESP32S3.md user-facing reference (#2886 Stage 0)Β #2898 β Stage 0 (the doc this PR updates).
- docs(esp32): close out #2886 Stages 4 + 5 β audited / no actionΒ #2902 β Stages 4 + 5 close-out (the empirical drop-off was confirmation of that audit's verdict).
- Audit comment: FastLED#2886 (comment).
π€ Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(bloat): ratchet baseline 388380 -> 350568 + flip Stage 1 row toβ¦