Skip to content

test(autoresearch): fail runs when on-device FastLED.show() latency regresses (#5356) #5369

Closed

Description

@zackees

Sub-issue of #5356, implementing its "Generalized AutoResearch latency gate" section.

#2994 shipped across many releases because nothing on the bench measured how long FastLED.show() blocks.

Scope (first step)

  • After a passing bash autoresearch <env> --<driver> run, AutoResearch runs timingDriftTest. That is the [Bug] Compounded timing inaccuracy on master compared to 3.10.3 (Follow-up to #2420) #2994 reproducer: 35 WS2812 on the legacy addLeds path, driven by the build's selected driver. One fade sequence gives about 250 timed show() calls.
  • The run fails when either condition holds:
  • Budgets live in tests/data/show_latency_budget.txt as <environment> <DRIVER> <max_mean_us>. Raising one needs the reason written in that file, like the bloat baselines. A board/driver pair with no budget skips the gate.
  • First budget: esp32c6 RMT 280. The measured mean is 205–245 µs across builds. Code layout alone moves it 10–20 µs between builds.

Later

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions