Skip to content

ESP32-S3 bloat gate: accept measured 283 B TM1812 encoder cost #3944

Closed

Description

@zackees

Summary

The ESP32-S3 Blink bloat-regression workflow has been red on every relevant master push since TM1812 RGBCCT encoder support merged in PR #3911. The feature added a new runtime Channels encoder case, but the PR did not update the pinned intentional-size ceiling as required by the gate policy.

Authoritative regression evidence

Revision Workflow total_flash Result
5375147 (immediately before #3911) run 32323257474 340,768 B PASS, 6 B below the 340,774 B ceiling
4c7c5df (#3911) run 32340038066 341,051 B FAIL, 277 B above the ceiling
ad40fd2 (current master at filing) run 32400979867 341,048 B FAIL, 274 B above the ceiling

The first bad revision therefore adds 283 B relative to the immediately preceding same-workflow build.

Root cause

PR #3911 adds CLOCKLESS_ENCODER_TM1812_RGBWW to the runtime ClocklessEncoder enum and adds an always-available branch in Channel::showPixels that calls PixelIterator::writeTM1812RGBWW. The Blink measurement links the Channels runtime dispatch, so support for the new public timing selector has an intentional non-zero flash cost even when Blink does not choose TM1812.

Relevant source:

  • src/fl/channels/channel.cpp.hpp: TM1812 case in Channel::showPixels
  • src/fl/chipsets/encoders/pixel_iterator.h: writeTM1812RGBWW
  • src/fl/chipsets/encoders/tm1812.h: frame encoder
  • src/fl/chipsets/led_timing.h: public TIMING_TM1812_RGBWW_800KHZ selector

Local diagnostic note

A local bash bloat esp32s3 --build comparison was attempted, but the Windows PlatformIO path waited without starting a compiler and hit the 10-minute wrapper timeout. No local size result is claimed. The consecutive GitHub Actions runs above are the authoritative same-workflow evidence.

Decision

Treat the 283 B as intentional capability growth under the gate's documented policy. Raise tests/data/esp32s3_bloat_baseline.txt from 340774 to 341051, the measured size of the first bad feature revision. Do not add extra slack and do not weaken/disable the workflow.

The larger <=280 KB optimization objective remains separately deferred in #2886; this issue only restores truthful regression enforcement after a measured feature addition.

Acceptance criteria

  • Pinned baseline is exactly 341051 B.
  • The current master-equivalent report (341048 B at filing) passes with 3 B headroom.
  • tests/test_esp32s3_bloat_regression.py continues to reject values above the new ceiling.
  • bloat regression esp32s3 is green on master after merge.

Links

Activity

  1. added
    status: in-progress
    on Aug 20, 2026
  2. added a commit that references this issue on Aug 20, 2026
    31167ea
  3. moved this from Triage to Done in FastLED Trackeron Aug 20, 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

    status: in-progress

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions