Skip to content

test: keep the motion journey's pause-alignment search from playing past the recording's end - #7606

Open
leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-7532-motion
Open

leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-7532-motion

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_motion_recordings_share_native_playback_and_a_sticky_transport failed on macOS at its pause-alignment assertion (test_motion.py:100). It failed in 2 of 12 copies at main (46168668757) and in 1 of 18 in an instrumented probe (46234649115). The step under test pauses and resumes the leading recording until it stops on a playback position whole microseconds can't hold. macOS's media clock steps by 100 µs (positions read 0.3011, 0.3086, …), so such a position turns up there only through float error, and rarely. The probe's media-event log shows the leader playing through its 8 s end before it found one. Every video then stood at 8 s and the study's playback had ended, so the press meant to pause replayed both recordings from 0. They read 0.0161 and 0.0015, and the assertion failed.

The search now seeks the leader back to just past the trailing recording once it passes half the recording, so it never reaches the end. Everything the step asserts is unchanged.

Evidence:

  • macOS, 36 copies on this branch: all pass (46236033303).
  • Linux: 3 of 3 runs pass. One more run with the threshold forced low passes after 4 seek-backs, which exercises the new branch.

The scheduled run's own failure, 4.155598 == 4.155599, isn't explained by this mechanism. That run left only its assertion message. If it recurs once this lands, the next scheduled run's report brings it back to triage.

Refs #7532 — automated triage

…ecording's end

The step pauses and resumes the leading recording until it stops on a position whole microseconds can't hold. macOS's media clock steps by 100 microseconds, so such a position is rare there, and a dispatch probe caught the leader playing through its 8 s end first: the study's playback ended with every video at 8 s, and the press meant to pause replayed from 0, so the two recordings read different times. The search now seeks the leader back just ahead of the trailing recording once it passes half the recording.

Refs #7532

This branch has not been deployed

No deployments
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