You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: test_media_gif_last_frame fails under CPU load (last frame held 1 output frame, wants 2) #938
test_media_gif_last_frame (video_once_shows_every_frame, from #306) is timing-sensitive and fails under host load:
the last frame was shown for only 1 output frame(s)
test/cmocka/test_media_gif_last_frame.c:455: error: Failure!
It failed 2 of 2 local Tier 2 runs (OFF build, OBS_CTEST_JOBS 8 and 4) on a 16-core host that was also running other builds.
It passed 5 of 5 when run alone in the same build (ctest -R test_media_gif_last_frame --repeat until-fail:5), and it passes in CI at -j4 on 4 vCPUs.
test_encoder_join_keyframe (real_aom_av1, frames within ±JOIN_FRAMES) behaves the same way at -j8.
This blocks raising Tier 2's parallelism (#931, #930 A3), and can flake on a busy runner. Options: make the hold check tolerant of a late frame under load; mark the test RUN_SERIAL (or give it ctest PROCESSORS) in its tests.d fragment; or drive playback from a test clock instead of wall time. The C test itself can't be edited to make a port pass, but the timing tolerance is a test-design question for #306's owner.
Both tests are ours (#306 and #598). The playback and encoder behaviour is fine in both; the tests measure the wrong thing:
test_media_gif_last_frame: the failing "last frame" was not the clip's. libobs hands a new raw video callback one frame it rendered before the callback was added, so video_once_shows_every_frame can start with the last picture of the looping case before it. When that picture is frame 9, check_last_frame_held judges that one stale output frame instead of the clip's own last frame, which was held for 4-5 output frames. RED: a case that replays the video right after a run that ended on its last frame (fails every run). GREEN: the check judges the run that check_order found after the clip's first frame.
test_encoder_join_keyframe (real_aom_av1): the join frame is reckoned from the wall clock, but the encoder's pts counts the frames the video thread gave it, which falls behind when that thread is slow. RED: a case that slows the video thread before the recording joins x264 (fails every run). GREEN: reckon the join from video_output_get_total_frames() around the start.
Show that both still fail with the fixes they guard undone, then run Tier 2 at -j8 in both lanes. PR today. No RUN_SERIAL needed.
Activity
ci: Tier 2 Linux starts the slowest tests first (#950)
rdoupe commentedon Oct 16, 2026
Claiming: this issue.
Both tests are ours (#306 and #598). The playback and encoder behaviour is fine in both; the tests measure the wrong thing:
test_media_gif_last_frame: the failing "last frame" was not the clip's. libobs hands a new raw video callback one frame it rendered before the callback was added, sovideo_once_shows_every_framecan start with the last picture of the looping case before it. When that picture is frame 9,check_last_frame_heldjudges that one stale output frame instead of the clip's own last frame, which was held for 4-5 output frames. RED: a case that replays the video right after a run that ended on its last frame (fails every run). GREEN: the check judges the run thatcheck_orderfound after the clip's first frame.test_encoder_join_keyframe(real_aom_av1): the join frame is reckoned from the wall clock, but the encoder's pts counts the frames the video thread gave it, which falls behind when that thread is slow. RED: a case that slows the video thread before the recording joins x264 (fails every run). GREEN: reckon the join fromvideo_output_get_total_frames()around the start.-j8in both lanes. PR today. NoRUN_SERIALneeded.test: The gif and join-keyframe tests judge playback, not the timing (o…
ci: Run Tier 2 Linux tests on one runner, at most 8 test binaries at …
test: Drop the processor reservations for the #938 timing tests