Repository navigation
Description
Part of #930 (queue runs under 8 min). Measured on 2026-10-24 from the last 12 successful merge-queue runs of ci.yml, and in detail on the 06:13 UTC run (11.3 min).
Where the time goes
The critical path is one chain; everything else (Fast Gate 6.3 min, Format 1.7 min) finishes earlier in parallel.
| Stage | Time | Breakdown |
|---|---|---|
| Event Data / CI Mode | 0.4 min | |
| Rust Tier 2 Linux (build) | 4.4 min | 128 s compile; ~100 s Git install, checkout, Tier 2 packages (35 s), cache restore, soldr (21 s) |
| Rust Tier 2 Linux (tests ON / OFF) | 5.5 min | 75 s container setup (stock image); 238 s ctest |
| CI Gate | 0.2 min |
macOS and Windows Tier 2 take 15-20 min (plus up to 5 min runner queue on macOS) but only run on PRs that touch their platform files (3 of 12 runs).
Slowest tests in the ON run (876 s of test time in total): test_deinterlace_2x_field_order 146 s (RUN_SERIAL), test_async_delay_audio 59, test_portal_shortcuts 53, test_pipewire_screencast_resume 39, test_vlc_audio_pacing 35, test_inhibit_sleep_dbus 32, test_vlc_playlist_gap 30, test_stinger_media_duration 23. Most of these wait in real time.
Proposed work, largest saving first
- Serial deinterlace test on its own runner (perf(ci): run the serial deinterlace test on its own runner (146 of 238 s of Tier 2 ctest) #2071): 146 of the 238 s of ctest is that one RUN_SERIAL test running alone. About -1.5 min.
- Prepared Tier 2 image (perf(ci): validate prepared Tier 2 image transfer before rollout #1592): the 75 s container setup in each test job. About -1 min.
- Build-job setup: ~100 s before the compile starts (Git and package installs, soldr). Preinstall or cache them. About -0.5 to -1 min.
- Shorten the real-time tests: the other seven tests above use ~270 s of wall time that sleeps; after perf(ci): run the serial deinterlace test on its own runner (146 of 238 s of Tier 2 ctest) #2071 they bound the parallel part (~92 s). Check each for fixed sleeps that could wait on a condition instead, without loosening assertions.
Together the first three would bring a code PR's queue run to about 7.5-8 min. These are estimates from one run's timings; each item should measure before and after.
Also seen today
Four queue runs failed between 05:12 and 05:35 UTC in Linux Tier 2, and the reruns behind them cost about an hour of queue time. The likely cause, the intermittent test_context_names crash (#2049), was fixed by #2052; flaky tests are the largest throughput cost, more than run length.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsReady
Activity
zackees commentedon Oct 24, 2026
Claiming: the Build-job setup item only (~100 s before the Tier 2 Linux compile: Git, packages, soldr). Plan: measure the step times on recent queue runs, cut what can be preinstalled, cached or dropped, one PR with before/after numbers. The other items stay open (#2071 is claimed; the real-time tests are existing C tests, which can't be edited).
zackees commentedon Oct 24, 2026
Claiming: #2072 item "Build-job setup" only (the ~100 s before the Tier 2 Linux compile). Measuring per-step medians over recent queue runs first; the other items stay open.
zackees commentedon Oct 24, 2026
Build-job setup, measured (median, merge-queue runs that built Tier 2): Install Git 11 s, checkout 10 s, cache restores ~20 s, Install Tier 2 Packages 35 s (apt archive cache hits, so it's dpkg: 594 packages in 29 s), soldr 16 s. Total ~90 s, all serial.
PR for the safe part: dpkg force-unsafe-io plus no doc/man/info in the throwaway build container (-25% locally, about -7 s on CI). Remaining ideas, unclaimed: run the package install in the background while soldr and the cache restores run (~16 s), and
filter: blob:noneon the fetch-depth-0 checkout (part of 10 s). The largest setup cost left is the test jobs' runtime (#1592).ci: Tier 2 build job installs packages without dpkg fsync or docs (ob…
perf(ci): run the deinterlace test's five rates on two serial runners (…
zackees commentedon Oct 24, 2026
Landed: #2077 (RUN_SERIAL tests on their own runner), #2085 (prepared runtime plus a small package delta; setup 19-37 s instead of 75-79 s), #2091 (deinterlace rates on two serial runners: 88 s + 59 s instead of 147 s). The queue run that merged #2091 took about 8.5 min (08:49:55-08:58:22 UTC); a matched comparison needs more runs and follows here. Not done: build-job setup (about 30-40 s at most, needs the prepared image as the job container, not worth it now); the slow real-time tests (no longer on the critical path). Flake seen in a queue run meanwhile: #2099.
zackees commentedon Oct 24, 2026
Queue-run comparison (successful merge-group runs; 'Linux done' = run start to the last Linux Tier 2 test job finishing):
Next levers: runner queue time for the Tier 2 test jobs (check whether six jobs per run wait on ubuntu-26.04 capacity), and the macOS/Windows Tier 2 jobs for platform PRs.
zackees commentedon Oct 24, 2026
Runner wait for the six Tier 2 test jobs, per successful queue run since 08:57 UTC (seconds from the build job finishing to each test job starting):
The test jobs themselves are now 95-196 s, so the remaining Linux variance is runner capacity, not test time. Going back to four jobs (one serial job per mode, 147 s) would wait less under load but be about 1 min slower when idle. I'm not changing the layout on one afternoon's data; worth re-checking once there's a busy and a quiet day to compare.
Also seen: the build job took 4.4-5.4 min here (9.0 and 7.4 min at 09:20/09:30) against 3.7-4.4 min this morning; not yet explained (compiler cache hit rate is the first thing to check).
zackees commentedon Oct 24, 2026
Follow-up on the slower build job: not a regression. The compile step took 114-146 s in the afternoon runs against 129 s at 06:13, and zccache hit 938-1061 of about 1,070 compilations in every sampled run (09:20 had the most cold compiles, 127). Setup steps are unchanged (Install Git 10-13 s, packages 35-36 s, soldr 16-20 s). The longer start-to-build-done times (7.4 and 9.0 min at 09:30/09:20) were spent before the job started, waiting for a runner, the same capacity limit as the test jobs.
28 remaining items
zackees commentedon Oct 31, 2026
Worker tick (
obs-studio5), item 4 read against masterd13f71466. Items 1–3 are done and merged (#2077, #2085/#3012, #2094/#3023); here is what is left of item 4 and where its floor is.The remaining tests, as they are on master
test_async_delay_audio2*delay_ms + 1500before listening,4000listening, per casetest_portal_shortcutstest_pipewire_screencast_resumetest_vlc_audio_pacingtest_inhibit_sleep_dbusos_sleep_ms/os_sleepto_ns: 0 hits)test_vlc_playlist_gapSo five of the six are already polls or genuinely real-time; only
test_async_delay_audiostill holds a large fixed sleep.test_async_delay_audio: the whole test is two constantsstart_delayed()sleeps2*delay_ms + SETTLE_MS(1500) andlisten()then sleepsLISTEN_MS(4000), once per case. The six cases use delays 3000, 5000, 3000, 1000, 1000 and no filter:7.5 + 11.5 + 7.5 + 3.5 + 3.5 + 1.5= 35.0 s6 × 4.0= 24.0 sWhy #3117's trick does not transfer
#3117 replaced
CLIP_MS + 2000with a poll ofobs_transition_is_active()because the transition reports its own state.async_delay_filterreports nothing this test can see: the test never callsobs_source_video_render()orobs_source_video_tick()(the only hit for "tick" in the file is the comment at line 66), so there is no "first delayed frame shown" to wait on, and the audio side has no "delayed audio is now playing" signal either — program audio is only counted in aggregate by the raw-audio callback. The 4 s listen window is assertion coverage (a break anywhere in those 4 s must fail), so it cannot shrink without loosening the check.Removing the 35 s needs a new observable, not a shorter sleep. Two shapes, both structural:
Decided:on Flaky: real-time audio cmocka tests lose audio under machine load (test_vlc_playlist_gap, test_group_hide_transition_audio) #838 describes, sostart_delayed()can advance to "the audio is delayed" instead of waiting wall time; orobs_sourceproperty or a test-visible callback) for the test to poll.Neither belongs in a timed worker tick without an agreed design, so item 4 is at its floor as written: -8.6 s from #3117 (merged 01:09 UTC) and nothing further removable from the other five.
Recommendation: close #2072 (items 1–3 landed, item 4 exhausted) and, if the remaining ~35 s matters, file the deterministic-clock item as its own proposal rather than leaving this checklist open. I have ticked 1–3 and left 4 unticked with this note.
perf(test): wait for the stinger transition to stop instead of sleepi…
zackees commentedon Nov 7, 2026
Claiming: merge-queue runner-capacity investigation and compact Tier 2 execution, explicitly assigned by the maintainer. 1. Measure the last 24 hours of merge_group jobs (90 runs collected). 2. Preserve both complete OFF/ON suites while reducing PR/queue execution from six runners to two; retain partitioned main/nightly/release execution and the unchanged CI Gate. 3. Run RED/GREEN checks and the pinned local gate, then open an UNMERGED PR with evidence. First PR expected this session. This does not claim the separate real-time test shortening work.
test(ci): require complete Tier 2 suites on two queue runners (#2072)
ci: run complete Tier 2 backends on fewer queue runners (#2072)
test(ci): require complete Tier 2 suites on two queue runners (#2072)
ci: run complete Tier 2 backends on fewer queue runners (#2072)
ci: reduce queue runner demand while preserving complete Tier 2 cover…