Skip to content

Ratchet ESP32-S3 bloat baseline 339,962 → 338,117 B (#2943 makeName cascade) #2948

Closed

Description

@zackees

Goal

Lower `tests/data/esp32s3_bloat_baseline.txt` from `339962` → `338117` to lock in the −1,845 B saving the just-restored Stage-6 regression gate (#2886) measured on `master @ 56af093` after #2943 + #2945 + #2947 landed.

Parent: #2886 — baseline-ratchet hygiene.

Why now

PR #2947 (fbuild 2.2.18 → 2.2.20) was the last piece needed to make the Stage-6 `bloat regression esp32s3` CI gate operational. The first PR run with a working gate reported:

```
esp32s3-bloat-regression: PASS — total_flash=338,117 B <= baseline=339,962 B (headroom=1,845 B).
```

The 1,845 B drop is the cumulative cascade saving from #2943 (`Channel::makeName` release-gate). The projection on #2942 was 100–300 B; the realised saving is roughly 6–12× over due to the dead-strip cascade pulling out the supporting `fl::to_string` instantiation + `fl::string::operator+` machinery only reachable from this site. Same pattern observed on #2918 (−2,235 B vs projected 800 B) and #2925 (−3,937 B vs projected 1-2 KB).

If we don't ratchet the baseline now, any future regression up to 1,845 B will be invisible to the gate.

Deliverable

`tests/data/esp32s3_bloat_baseline.txt` — bump

```diff
-339962
+338117
```

Acceptance

  1. `uv run python tests/test_esp32s3_bloat_regression.py` passes locally against the new pin.
  2. Post-merge: `bloat regression esp32s3` workflow on the master push run passes against 338,117 B (zero headroom on the merge commit itself, healthy headroom on subsequent saving PRs).
  3. `bash lint` passes.

Out of scope

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