Repository navigation
ci: Run Tier 2 Linux tests on one runner, at most 8 test binaries at once - #1150
Merged
Merged
Conversation
…once rust-linux-tier2 was a mode x shard matrix of six runners, each repeating the checkout, the package install and the tree download for about a minute of ctest. One runner now tests both modes with OBS_CTEST_JOBS=8; the build job no longer plans shards (validate.sh keeps OBS_CTEST_SHARD for local use). The two CPU-heavy timing tests that failed under -j8 (#938) reserve half the slots (ctest PROCESSORS 4), which ci/test_tier2_schedule.py now requires above 4 jobs. The timings artifact is one tier2-cost upload that rust-linux-tier2-done caches as before.
zackees
added a commit
that referenced
this pull request
Oct 17, 2026
#1150 had test_encoder_join_keyframe and test_media_gif_last_frame reserve half the -j8 slots, from #938's report that they failed under -j8. #1001 already fixed both: the gif check judged a stale frame libobs hands a new raw video callback, and the join-keyframe cases reckoned the join frame from the wall clock instead of the frames the video thread delivered. Both passed 6 of 6 repeats together, unreserved, next to the other libobs C tests looping at -j6 on a host at load 12-17.
zackees
added a commit
that referenced
this pull request
Oct 17, 2026
Twelve display tests wrap themselves in `xvfb-run -a`, inside the
`xvfb-run -a ctest` validate.sh already runs. Started together under
ctest -j, two pick the same display number and the loser's obs_startup
fails ("Unable to open X display"): test_video_io and
test_video_io_hidden run in parallel failed 5 of 5 rounds, one of the two
each time. With Tier 2 on one runner at -j8 (#1150) they overlap often.
test/cmocka/CMakeLists.txt points XVFB_RUN, XVFB_RUN_PROGRAM and
XVFB_RUN_EXECUTABLE (the fragments' find_program keeps a set variable)
at xvfb-run-or-display.sh, which runs the test on the existing display
and starts a private Xvfb only when there is none. The same pair: 5 of 5
rounds pass; a test run with no DISPLAY still gets its own server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tier 2 Linux tests used to run on six runners (
mode [OFF, ON] × shard [1,2,3]). Each one repeated the checkout, the package install and the tree download for about a minute of ctest. They now run on one runner that tests both modes, withOBS_CTEST_JOBS=8, so at most 8 test binaries run at once.OBS_TIER2_SHARDSis removed).validate.shstill acceptsOBS_CTEST_SHARDfor local runs.test_encoder_join_keyframe(an AV1 encode) andtest_media_gif_last_framefailed under-j8in test: test_media_gif_last_frame fails under CPU load (last frame held 1 output frame, wants 2) #938. They now reserve half the slots with ctest'sPROCESSORS 4.ci/test_tier2_schedule.pyreplaces its fixed four-jobs guard with a check that allows at most 8 jobs and, above 4, requires those reservations.tier2-costartifact.rust-linux-tier2-donemerges and caches it on master, as before.Verified locally:
./lint, which includes the updated Tier 2 layout tests, and thecmake/crossbuild for macOS arm64 and Windows x64.