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
perf(ci): macOS/Windows Tier 2 run the full suite four times in a row (8 / 5.7 min of a 13 min job) #2138
Part of #2072 / #930. For PRs that select them, the macOS and Windows Tier 2 jobs are the critical path of the queue run (12.5-13 min; Linux now finishes in about 8-10).
Measured (queue run 10:50 UTC 2026-10-24)
Both jobs build once, then run the whole unchanged ctest suite four times in a row:
Step
macOS (269 tests)
Windows (226 tests)
configure + build
2.6 min
3.5 min
[OFF] ctest (C reference)
121 s
88 s
[ON] ctest (hybrid libobs)
116 s
85 s
Cargo build of the native core
~1.2 min
~1.8 min
Cargo [obs-c-reference] ctest
126 s
86 s
Cargo [obs] ctest
121 s
84 s
About 8 min (macOS) / 5.7 min (Windows) of each job is the four suites one after another.
Runner capacity, from the last 120 ci.yml runs (all events): queue wait from job creation to start was median 4 s, p90 143 s, max 349 s for 102 macOS jobs, and median 4 s, p90 129 s, max 192 s for 70 Windows jobs. So most of the time there is spare macOS/Windows capacity; at busy moments a job waits 2-6 min. Option 1 (fan out) would save about 6 min (macOS) / 4 min (Windows) when idle, less at the p90, and adds three runners per platform run. Option 3 (Cargo suites only on master/scheduled) saves about 4 / 3 min with no extra runners and needs the policy decision.
Claiming: option 2 in a simpler form. Instead of running two suites at once, run each suite with ctest -j, as Linux already does (OBS_CTEST_JOBS): 3 on macOS (3 vCPU runners) and 4 on Windows. No extra runners and no policy change. Tests that must not overlap already carry RUN_SERIAL or RESOURCE_LOCK. The --repeat flake runs stay serial. Options 1 and 3 stay open.
Status: option 2 (each suite under ctest -j: 3 on macOS, 4 on Windows) is on master through #2145. In the most recent successful merge-queue run that ran them, Tier 2 took 10 min on both macOS and Windows, down from the 12.5-13 min measured above. I found only one sample in the last 6 successful queue runs, because most PRs don't select those lanes.
What's left is options 1 (fan out across runners) and 3 (the Cargo suites only on master and scheduled runs). Both need a decision: 1 costs three more macOS/Windows runners per run, and 3 is a policy change for #1332. Unless someone wants to take one of them, I suggest closing this as done with #2145.
Completed by #2145: macOS and Windows Tier 2 suites now use bounded CTest parallelism. The observed Tier 2 jobs were about 10 minutes in the cited queue sample, down from 12.5–13 minutes. Runner fan-out and moving Cargo suites to master remain separate policy/capacity decisions under #2072 and #1332.
Activity
zackees commentedon Oct 24, 2026
Runner capacity, from the last 120 ci.yml runs (all events): queue wait from job creation to start was median 4 s, p90 143 s, max 349 s for 102 macOS jobs, and median 4 s, p90 129 s, max 192 s for 70 Windows jobs. So most of the time there is spare macOS/Windows capacity; at busy moments a job waits 2-6 min. Option 1 (fan out) would save about 6 min (macOS) / 4 min (Windows) when idle, less at the p90, and adds three runners per platform run. Option 3 (Cargo suites only on master/scheduled) saves about 4 / 3 min with no extra runners and needs the policy decision.
zackees commentedon Oct 24, 2026
Claiming: option 2 in a simpler form. Instead of running two suites at once, run each suite with
ctest -j, as Linux already does (OBS_CTEST_JOBS): 3 on macOS (3 vCPU runners) and 4 on Windows. No extra runners and no policy change. Tests that must not overlap already carry RUN_SERIAL or RESOURCE_LOCK. The--repeatflake runs stay serial. Options 1 and 3 stay open.ci: run the macOS and Windows Tier 2 ctest suites in parallel (obs-ru…
zackees commentedon Oct 26, 2026
Status: option 2 (each suite under
ctest -j: 3 on macOS, 4 on Windows) is on master through #2145. In the most recent successful merge-queue run that ran them, Tier 2 took 10 min on both macOS and Windows, down from the 12.5-13 min measured above. I found only one sample in the last 6 successful queue runs, because most PRs don't select those lanes.What's left is options 1 (fan out across runners) and 3 (the Cargo suites only on master and scheduled runs). Both need a decision: 1 costs three more macOS/Windows runners per run, and 3 is a policy change for #1332. Unless someone wants to take one of them, I suggest closing this as done with #2145.
zackees commentedon Oct 27, 2026
Completed by #2145: macOS and Windows Tier 2 suites now use bounded CTest parallelism. The observed Tier 2 jobs were about 10 minutes in the cited queue sample, down from 12.5–13 minutes. Runner fan-out and moving Cargo suites to master remain separate policy/capacity decisions under #2072 and #1332.