Skip to content

ci: Run Tier 2 Linux tests on one runner, at most 8 test binaries at once - #1150

Merged
zackees merged 1 commit into
masterfrom
ci/tier2-one-runner
Oct 17, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/tier2-one-runner

Conversation

@zackees

@zackees zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member

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, with OBS_CTEST_JOBS=8, so at most 8 test binaries run at once.

  • The build job stops planning shards (OBS_TIER2_SHARDS is removed). validate.sh still accepts OBS_CTEST_SHARD for local runs.
  • test_encoder_join_keyframe (an AV1 encode) and test_media_gif_last_frame failed under -j8 in 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's PROCESSORS 4. ci/test_tier2_schedule.py replaces its fixed four-jobs guard with a check that allows at most 8 jobs and, above 4, requires those reservations.
  • Test timings are uploaded as one tier2-cost artifact. rust-linux-tier2-done merges and caches it on master, as before.

Verified locally: ./lint, which includes the updated Tier 2 layout tests, and the cmake/cross build for macOS arm64 and Windows x64.

…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
zackees merged commit 08c5f4f into master Oct 17, 2026
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.
@zackees
zackees deleted the ci/tier2-one-runner branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant