Skip to content

Run measure_esp32s3_opt_ins.py end-to-end + flip SLIM rows 2/4/6/7/8/9 to ✅ (#2886) #2935

Closed

Description

@zackees

Goal

Run tests/measure_esp32s3_opt_ins.py --config all end-to-end (10 configs × ~3-4 min each = ~35-40 min total). Capture the measured numbers for each config and ship a SLIM doc flip PR that updates rows 6/7/8/9 of docs/SLIM_ESP32S3.md from 📊 → ✅ with the measured savings inlined, plus a new "max-savings" section showing the cumulative number when every gate is enabled.

Parent: #2886 — first end-to-end validation run of the 4 post-#2906 opt-in build flags.

Why this matters

Four opt-in build flags have shipped without measurement:

Plus two stages that have a script-runnable measurement path:

Plus the max_savings stack — the headline cumulative number.

The SLIM doc currently marks rows 2/4/6/7/8/9 as 📊 (projected). After this PR, rows with empirically validated savings flip to ✅ with the measured number inlined.

Deliverable

Step 1 — Run the measurement

uv run python tests/measure_esp32s3_opt_ins.py --config all --out .claude/symbolaudit/measured_opt_ins.md --keep-platformio-ini-backup

Output: a Markdown comparison table with one row per (baseline, stage2, stage3, stage4, stack, disable_spi, disable_ucs7604, disable_dyndriver, disable_events, max_savings). Each row has total_flash, Δ vs baseline, Δ vs previous, and the SLIM row mapping.

Expected runtime: ~35-40 minutes for 10 builds.

Step 2 — Update the SLIM doc

For each row in the table that has a slim_row mapping (rows 2/3/4/6/7/8/9), update the corresponding priority-table row in docs/SLIM_ESP32S3.md:

  • Flip the Status column from 📊 → ✅.
  • Inline the measured saving (e.g. "−1,150 B measured (vs baseline 339,962 B)") in the Savings column.

Add a new "Max-savings stack measured" callout below the priority table:

When every opt-in flag is enabled (Stages 2 + 3 + 4 + #2914 + #2921 + #2927 + #2932), measured total_flash is XXX,XXX B (−YY,YYY B / −ZZ.Z% vs the pre-Stage-1 baseline of 388,380 B).

Step 3 — Post the comparison table to #2886

Copy the script's output table into a comment on #2886 with measurement provenance (master SHA, toolchain, date).

Acceptance

  1. tests/measure_esp32s3_opt_ins.py --config all runs end-to-end without errors.
  2. docs/SLIM_ESP32S3.md rows 2/3/4/6/7/8/9 flip 📊 → ✅ with measured numbers.
  3. The doc's "Roadmap" / "Stage 6" section gains a Max-savings stack callout.
  4. The script's comparison table is posted to Meta: ESP32-S3 Blink bloat reduction (file:line concrete plan) — supersedes #2885 #2886 as a comment.
  5. bash lint --cpp passes.

Out of scope

  • Ratcheting tests/data/esp32s3_bloat_baseline.txt. The baseline is the DEFAULT-flag measurement; opt-in flags don't move it.
  • Adding any new opt-in flags. This PR validates the existing ones.

Related

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions