Skip to content

test-recorder: fix flaky frame assertions#999

Merged
simonklee merged 1 commit intomainfrom
changing-conent
Apr 30, 2026
Merged

test-recorder: fix flaky frame assertions#999
simonklee merged 1 commit intomainfrom
changing-conent

Conversation

@simonklee
Copy link
Copy Markdown
Member

Bun.sleep(10) raced the renderer's maxFps throttle. At 60 FPS the
next render can be delayed up to ~16.7ms, so on slower CI the test
could call recorder.stop() before the changed-content frame was
captured.

Wait for renderer.idle() instead of sleeping a fixed duration, and
locate the "Initial" and "Changed" frames by content rather than
assuming they sit at fixed indices.

Bun.sleep(10) raced the renderer's maxFps throttle. At 60 FPS the
next render can be delayed up to ~16.7ms, so on slower CI the test
could call recorder.stop() before the changed-content frame was
captured.

Wait for renderer.idle() instead of sleeping a fixed duration, and
locate the "Initial" and "Changed" frames by content rather than
assuming they sit at fixed indices.
@simonklee simonklee self-assigned this Apr 30, 2026
@simonklee simonklee merged commit 9d708dd into main Apr 30, 2026
31 checks passed
@simonklee simonklee deleted the changing-conent branch April 30, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant