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: playing_seek_between_keyframes fails on slow runners (fixed 500 ms bound) #1765
test_media_seek_keyframe's playing_seek_between_keyframes fails on slow runners even though the seek is right.
Seen on macOS Tier 2 (run 39726924020, attempt 2, job 119704244848):
playing seek to 4500 ms: first frame 135, media time 5100 ms
playing seek: seek to 4500 ms reports a media time of 5100 ms
[ FAILED ] playing_seek_between_keyframes
Frame 135 is the target frame (4500 ms at 30 fps), so the seek itself worked. The second check reads the media time after the first frame shows, while the video keeps playing, and requires it to be at most 500 ms past the target. A runner that takes longer than that to deliver and report the first frame fails it. The test was added in #479.
Fix: bound the media time by the real time that passed between the seek and reading it (plus the existing two-frame slack) instead of a fixed 500 ms.
The failure is in [OFF] tests loading libobs-c-reference, before the Rust-backed suite:
playing seek to 4500 ms: first frame 135, media time 4666 ms, 20 ms after the seek
playing seek: seek to 4500 ms reports a media time of 4666 ms
test/cmocka/test_media_seek_keyframe.c:633: Failure!
The first frame is correct, but media time is 166 ms ahead after only 20 ms elapsed, beyond the new elapsed-time-plus-slack bound. This is different from the original fixed-500-ms slow-runner failure; the observation alone does not prove whether the implementation or expectation needs correction.
The seek test and media-playback source have no diff between this qualification branch and master d0f05829b. No C tests or public headers were edited by #1760, no assertions were weakened, and no unchanged retry was submitted. The Flatpak build and its actual installed capture/browser/debugger consumer passed; the overall manual workflow remains failed because of this C-reference result. Raw job logs are retained with the #1760 evidence.
A second, changed Flatpak qualification experiment reproduces the same C-reference seek assertion: job 119793187637 / run 39768771734, source 2b253bc0dace3c35478d3a46664edc49f0db023f.
playing_seek_between_keyframes: target 4500 ms, first frame 135, reported media time 4666 ms, 95 ms after seek; failure at unchanged test_media_seek_keyframe.c:633. This follows the earlier observation at 20 ms. The correct first frame is observed, but the elapsed-time bound still fails. No C test or media implementation change was made in this qualification branch, and no unchanged rerun was started. Raw log retained; the full workflow failure will remain in #1760's cost/outcome accounting.
This comment adds reproduction evidence, not a proposed assertion relaxation.
Both observations (4666 ms at 20 ms and at 95 ms after the seek, correct first frame) are the case #1774 describes: a playing source decodes ahead, so its reported time runs ahead of the shown frame, and #1766's elapsed + two-frame bound was too tight. #1775 (merged as b39a4e0) keeps the elapsed allowance and adds back the 500 ms decode-ahead allowance from before #1766. Neither qualification branch (7b1df78a1 on d0f05829b, or 2b253bc0d) contains b39a4e0, so a run on current master shouldn't hit this.
Activity
rdoupe commentedon Oct 22, 2026
Claiming: #1765. Fix is ready (test-only); PR follows.
test: Bound the playing-seek media time by the time that passed (obs-…
zackees commentedon Oct 22, 2026
New evidence after #1766, retained from full configuration qualification for #1760 (not a rerun): run 39764954474 / macOS Tier 2 job 119781024516, package source
7b1df78a1, based on masterd0f05829b.The failure is in [OFF] tests loading libobs-c-reference, before the Rust-backed suite:
The first frame is correct, but media time is 166 ms ahead after only 20 ms elapsed, beyond the new elapsed-time-plus-slack bound. This is different from the original fixed-500-ms slow-runner failure; the observation alone does not prove whether the implementation or expectation needs correction.
The seek test and media-playback source have no diff between this qualification branch and master
d0f05829b. No C tests or public headers were edited by #1760, no assertions were weakened, and no unchanged retry was submitted. The Flatpak build and its actual installed capture/browser/debugger consumer passed; the overall manual workflow remains failed because of this C-reference result. Raw job logs are retained with the #1760 evidence.zackees commentedon Oct 22, 2026
A second, changed Flatpak qualification experiment reproduces the same C-reference seek assertion: job 119793187637 / run 39768771734, source
2b253bc0dace3c35478d3a46664edc49f0db023f.playing_seek_between_keyframes: target 4500 ms, first frame 135, reported media time 4666 ms, 95 ms after seek; failure at unchangedtest_media_seek_keyframe.c:633. This follows the earlier observation at 20 ms. The correct first frame is observed, but the elapsed-time bound still fails. No C test or media implementation change was made in this qualification branch, and no unchanged rerun was started. Raw log retained; the full workflow failure will remain in #1760's cost/outcome accounting.This comment adds reproduction evidence, not a proposed assertion relaxation.
rdoupe commentedon Oct 22, 2026
Both observations (4666 ms at 20 ms and at 95 ms after the seek, correct first frame) are the case #1774 describes: a playing source decodes ahead, so its reported time runs ahead of the shown frame, and #1766's elapsed + two-frame bound was too tight. #1775 (merged as b39a4e0) keeps the elapsed allowance and adds back the 500 ms decode-ahead allowance from before #1766. Neither qualification branch (
7b1df78a1ond0f05829b, or2b253bc0d) contains b39a4e0, so a run on current master shouldn't hit this.