Skip to content

fix(wasm): require a rendered frame for browser smoke-test success #4526

Closed

Description

@zackees

Context

The browser smoke-test poll declares success when frameCount > 0 || controllerRunning || workerActive. A worker/controller can be alive while rendering produces zero frames. The check then prints success and exits green, despite its stated aim to verify initialization and rendering.

Repro: page state with fastLEDFrameCount = 0 and fastLEDWorkerManager.isWorkerActive = true passes at the first poll.

Proposal

Treat worker/controller activity as diagnostics, but require an observed rendered frame for the render smoke-test contract (with an explicit exception only for intentionally frame-free modes).

Acceptance criteria

  • Add a focused RED→GREEN test for an active worker and zero frames; it times out/fails instead of passing.
  • A page producing at least one frame still succeeds, and browser errors still fail by default.

Decisions

  • Priority: medium; false-green browser tests hide rendering regressions.
  • Preserve worker/controller status in failure diagnostics rather than treating it as proof of rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions