Skip to content

perf(ci): rebalance Tier 2 Linux shards and trim the build checkout - #3023

Merged
zackees merged 4 commits into
masterfrom
infra/tier2-shard-balance-checkout
Oct 30, 2026
Merged

zackees merged 4 commits into
masterfrom
infra/tier2-shard-balance-checkout

Conversation

@zackees

@zackees zackees commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Refs #3021, Refs #3022 (part of #2072). CI/config only; no C tests or public headers touched. Documentation-free, not user-visible (no features.md line). No Rust tests added.

#3021 shard rebalance

Baseline (run 41006754325): suite ctest ON 127.8 s / OFF 123.2 s for ~1000 test-seconds at -j8; serial-1 71 s, serial-2 47 s. test_slideshow_mem_cap (102 s) floors the suite and stays there (on a serial runner it would run after the RUN_SERIAL tests: 47+102 s).
Change: rust/tools/linux-validate/serial-companions.json gives serial-2 test_pipewire_screencast_resume, test_vlc_audio_pacing, test_inhibit_sleep_dbus, test_vlc_playlist_gap (31-40 s) and serial-1 test_audio_clock_drift, test_stinger_media_duration (23-26 s). serial-tests.py --companions adds them to the shard's -R and to the suite's -E; ctest still runs RUN_SERIAL tests alone. Expected: suite ~105 s, serial-1 ~97 s, serial-2 ~87 s ctest, no new runners.

  • RED e9b3579: ci/test_tier2_serial_part.py 2 failures, 2 errors (no --companions, no companions file). GREEN 07292f5: 23 tests OK (with test_tier2_shard_plan.py). Pins: every test runs exactly once per mode, shard count matches the matrix, slideshow stays in the suite.

#3022 build checkout

Baseline: checkout 9-11 s (7 s full fetch of all branches, 3 s recursive submodules with history incl. Windows-only libdshowcapture). Change: filter: tree:0, no submodules (keeps fetch-depth: 0, so git describe and the version are unchanged; validate.sh already inits obs-browser/obs-websocket at --depth 1). Not cut: Install Git (git/curl/zstd are in apt-packages.txt anyway; local 5.6 s download + 13 s unpack, dpkg unsafe-io no change), soldr, apt/zccache overlap.

  • RED 7dacb01: ci/test_tier2_native.py 1 failure. GREEN 809fdb9: 16 tests OK.

./lint: only the known environment failure in ci/test_check_changes.py (git: command not found).

After numbers: to follow from this PR's run.

…ts (#3021)

serial-tests.py has no --companions and serial-companions.json does not
exist: 2 failures, 2 errors in ci/test_tier2_serial_part.py.

Refs #3021
… shards (#3021)

The suite ran ~1000 test-seconds at -j8 (ctest 123-128 s) while the
serial shards finished their RUN_SERIAL deinterlace entries in 47 and
71 s. serial-2 now also runs the four 31-40 s tests, serial-1 the two
23-26 s ones; the suite excludes them. test_slideshow_mem_cap (102 s)
stays in the suite, where it runs beside other tests.

Refs #3021
…odules (#3022)

Fails: the checkout has submodules: recursive and no filter.

Refs #3022
…d job (#3022)

The checkout fetched every branch's full history (7 s) and all
submodules recursively with history (3 s), including the Windows-only
libdshowcapture. Keep fetch-depth 0 for the version tags but fetch no
old trees (filter: tree:0); validate.sh initializes obs-browser and
obs-websocket at --depth 1.

Refs #3022

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM.

  • RED → GREEN for both parts (ci/test_tier2_serial_part.py, ci/test_tier2_native.py).
  • The partition is pinned: every test runs exactly once per mode, the shard count must match the matrix, companion names are unique, and test_slideshow_mem_cap stays in the suite. The regex is anchored and re.escaped, so a companion name cannot pull in a similarly named test.
  • A missing companion name is skipped instead of failing, which is right while tests get renamed or removed. A later check that warns on stale names would keep the file honest.
  • The treeless checkout keeps fetch-depth: 0, so git describe and the version string are unchanged; validate.sh already inits the two submodules configure needs.
  • Side benefit: three of the companions (test_vlc_playlist_gap, test_audio_clock_drift, test_vlc_audio_pacing) are among the real-time audio tests that flake under load (#838). Moving them off the -j8 suite onto the quieter serial runners should help. Please watch whether their flake rate changes.

Queue on green.

@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

PR run 41021230867 (rerun after my watcher cancelled attempt 1), vs merge-queue baseline 41006754325 / 41016256643:

before after
suite ctest ON / OFF 127.8 / 123.2 s 102.8 / 102.1 s
serial-1 ctest ON / OFF 71.3 / 71.6 s 95.6 / 94.8 s
serial-2 ctest ON / OFF 46.9 / 46.9 s 86.7 / 86.5 s
longest test job (wall) 170-185 s 152 s (OFF serial-1); suite 142-144 s
build checkout step 9-11 s 7 s

#3021: longest Tier 2 test job -18 to -33 s, no new runners. #3022: -2 to -4 s (Install Git 17 s, unchanged as expected).

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit ad178c3 Oct 30, 2026
65 of 76 checks passed
@zackees
zackees deleted the infra/tier2-shard-balance-checkout branch October 30, 2026 08:06
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