Skip to content

test(vision mixer): the tally guard checks lag, not lead - #1018

Merged
srperens merged 1 commit into
mainfrom
test/tally-allow-lead
Oct 6, 2026
Merged

srperens merged 1 commit into
mainfrom
test/tally-allow-lead

Conversation

@srperens

@srperens srperens commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Problem

tally_follows_a_cut_on_the_same_frame_with_late_inputs (#1009) asserted |lag| <= 2 frames. In the first macOS run with --no-fail-fast (#1016) it was the only failing test: late inputs: picture switched at 0:00:00.733333333, tally at 0:00:00.400000000: tally lag -10.0 frame(s). The tally switched before the picture because the picture switch itself arrived late on the slow runner. Locally it also measured exactly 2.0 frames once, which float noise pushed over the bound.

Change

Bound only the lag (the bug is the tally trailing the picture by the input delay, 5–6 frames with do-timestamp) and use < 3.5 frames. Test-only.

Evidence

Tests

Ran (macOS, GStreamer 1.28.6): vision_mixer_overlay_upload_test 2× (3 passed). This PR carries ci:macos.

🤖 Generated with Claude Code

tally_follows_a_cut_on_the_same_frame_with_late_inputs asserted |lag| <= 2
frames. On the macOS runner the tally switched 10 frames *before* the
picture (tally at 0.400 s, picture at 0.733 s): the picture switch itself
arrived late on the slow runner. That is not the bug the test guards (the
tally trailing the picture by the input delay, 5-6 frames with
do-timestamp), so only bound the lag. Locally it also measured exactly 2.0
frames once, which float noise pushed over the bound; use < 3.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@srperens srperens added the ci:macos Run Build (macOS) on this pull request label Oct 6, 2026
@srperens
srperens merged commit bfccbdb into main Oct 6, 2026
8 of 18 checks passed
@srperens
srperens deleted the test/tally-allow-lead branch October 8, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:macos Run Build (macOS) on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant