Skip to content

ci: master is red on bloat regression — esp32s3 is +198 B over the baseline since #4140 #4142

Closed

Description

@zackees

bloat regression fails on master and on every branch cut from it. It needs an explicit decision, not a rerun.

The failure

esp32s3-bloat-regression: FAIL — total_flash=341,250 B exceeds baseline=341,052 B by 198 B.
esp32s3-bloat-regression: if the regression is intentional, update tests/data/esp32s3_bloat_baseline.txt in the same PR.

tests/data/esp32s3_bloat_baseline.txt holds 341052, last touched by #4010. Nothing has updated it since.

Where it came from

#4140 (perf/minimp3-fixed-point) was merged with bloat regression already red — see its check list, bloat regression fail 22s. The merge commit is a1f30ffbeb. That PR adds src/third_party/minimp3/minimp3_synth_fixed.h and reworks the decoder, which is a plausible source of 198 B of ESP32-S3 flash.

Observed again on PR #4141's run, whose only change is a one-line dependency cap in pyproject.toml — so the regression is inherited from master, not introduced there.

Note this was briefly masked: running-process 4.10.10 broke uv sync repo-wide on 2026-09-02, so bloat regression was dying at dependency install (19-22 s) before it ever got to measuring. Now that #4141 has landed, the job runs to completion and reports the real number (3 m 11 s).

The decision this needs

Someone who owns the mp3 work has to pick one, and it is not obviously the first:

  1. Accept it — 198 B is the cost of fixed-point minimp3; update the baseline to 341250 with a comment saying why.
  2. Reclaim it — if the fixed-point path is going to be reworked anyway, the flash may come back on its own.
  3. Gate it — perf(mp3): add a fast fixed-point mode at Helix parity, keeping today's decoder as HQ #4139 proposes keeping today's decoder as HQ alongside a fast fixed-point mode; if the fixed-point tables end up behind a build flag, the default build may not pay the 198 B at all.

Option 1 should not be applied reflexively just to get CI green, because #4138 and #4139 are actively questioning whether this decoder stays in its current form.

Why file this separately

There are two independent red checks on master from the same merge, and they have different owners and different fixes:

Both need to clear before the next PR merges. Leaving master red on two checks trains reviewers to merge through red, which is the concern #4132 already raises about the transient code=113 failures.

Activity

  1. zackees commented on Sep 3, 2026

    @zackees
    MemberAuthor

    The attribution in this issue is wrong, and it matters for #4138/#4139.

    #4140 contributes 0 B to this. There is no minimp3 symbol in the Blink ELF the gate measures — the decoder is not linked in at all. I built and symbol-diffed both commits:

    commit total_flash
    f9909d5b7c — pre-TM1908 341,055 B
    8d2a841c66 — master 341,259 B
    +204 B
    +161  fl::PixelIterator::writeTM1908<vector_psram<u8>>       [fl.channels+.cpp.o]
     +28  fl::Channel::showPixels(PixelController<GRB,1,~0ul>&)  [fl.channels+.cpp.o]
     +15  alignment / codegen shift in the same object
    

    The cause is 3a61ded84c (TM1908, Closes #1441): a new case in the Channel::showPixels switch force-links the encoder into every clockless build. Identical mechanism to TM1812 in #3945, which bumped this same baseline by 277 B.

    It looked like #4140 because of ordering, not causation: TM1908's own bloat run was concurrency-cancelled after 19 s, and the following master run died in uv sync on running-process==4.10.10. The first run that got far enough to measure was the one after #4141 landed — by which time #4140 had merged in between.

    So the 198 B is not a cost of fixed-point minimp3, and #4138/#4139 should not carry it as one. The mp3 decoder's flash cost on this example is zero.

    Option 1 (accept), for the corrected reason — it is the price of a chipset that was deliberately added. #3947 tracks reclaiming it properly. PR: #4143.

    The audit failure noted at the bottom of this issue is unaffected and stays with #4138.

  2. moved this from Triage to Done in FastLED Trackeron Sep 3, 2026
  3. added a commit that references this issue on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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