Skip to content

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

Closed

Description

@zackees

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.

Options

  1. Fan out like Linux (ci: Tier 2 Linux builds once, then fans the tests out over parallel runners (target design for #930) #937, perf(ci): run Tier 2's RUN_SERIAL tests on their own runner (#2071) #2077): build once, upload the tree, and run the four suites as parallel jobs. Saves about 6 min (macOS) / 4 min (Windows) on the critical path, at the cost of three more macOS/Windows runners per platform run and an artifact upload/download (macOS runners are the scarcest; check queue times first).
  2. Run two suites at once on the same runner (OFF with ON, then the two Cargo suites): half the suite time without more runners, but the suites share the CPU, and the timing-sensitive tests may need the same isolation as on Linux (perf(test): remove nine serial barriers and fix output deactivation race #1643).
  3. Keep the Cargo suites only on master / scheduled runs if PR and queue runs do not need them to decide a merge (a policy question for build: replace CMake with Cargo and cc::Build, preserving the complete OBS application #1332's owners).

Not claimed: option 3 is a policy decision, and 1/2 need a check of macOS runner capacity first.

Activity

  1. added
    infra
    on Oct 24, 2026
  2. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    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.

  3. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    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.

  4. added
    claimed
    on Oct 24, 2026
  5. moved this from In progress to Triage in obs-rust Multiviewon Oct 25, 2026
  6. added
    ready
    and removed
    claimed
    on Oct 25, 2026
  7. moved this from Triage to In progress in obs-rust Multiviewon Oct 25, 2026
  8. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    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.

  9. moved this from In progress to Ready in obs-rust Multiviewon Oct 26, 2026
  10. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infraready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions