Skip to content

ci: Darwin fixtures step is 530-600 s on the Dell against 344 s hosted, on the queue critical path #5199

Open

Description

@zackees

The macOS Rust Artifacts job is the merge-queue critical path whenever Dell runs overlap, and its biggest step runs slower on the Dell than on a hosted runner.

Measured over 7 merge-group runs, 2026-11-19 04:17-05:35Z (check 19; runs 44457708775, 44461970565, 44463439467, 44461971849):

Step (.github/workflows/build-project.yaml) Dell Hosted
Prepare workspace Darwin tests and fixtures (ci/macos_test_artifact.py build) 529-602 s 344 s
Prepare published Qt SDK contracts (ci/macos_qt_artifact.py build) 106-139 s 77 s
Upload Darwin bundle 100-129 s under 30 s

The whole job took 14.9-16.3 min on the Dell in the two overlapping runs, ending just before the macOS test job and the gate. With no overlap, the fixtures step took 443 s (check 18), so concurrent jobs on the same host are the likely cause, though that isn't proven. #5162's bounded fixture pool helped on an idle host but not under load.

Between 190 and 250 s per Dell queue run is at stake on the fixtures step alone, plus 100-150 s across the Qt contracts and upload steps.

Suggested work:

  1. Find out where the fixtures step spends its time on the Dell: compile, link, archive, or file copy. Check whether its parallelism adapts to the host's current load or assumes a fixed share. Compare the step logs of a hosted run and a Dell run.
  2. Give it a parallelism budget that accounts for concurrent jobs on the same host, or cache fixture outputs by content key so unchanged fixtures aren't rebuilt.
  3. The slow upload is host-side (clud-63969 is tracking it); leave it out of scope here.

Run times come from gh api repos/obs-rust/obs-studio/actions/runs/<id>/jobs. The full report is in the pool's e640 check 19.

Activity

  1. added
    ci
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: investigate and reduce Darwin artifact preparation time. 1. Compare timestamped Dell and hosted stage logs and inspect #5162 fixture scheduling. 2. Add a focused RED self-test and the smallest measured fix. 3. Run the relevant CI self-tests and lint, then publish subject to backpressure. First PR expected this session.

  3. added
    needs-investigation
    on Nov 19, 2026
  4. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    /ready

    Measured the three requested logs: Dell setup plus host Application build takes 210/300 s versus 43 s hosted; Darwin Rust build/link is faster on Dell (133/147 s versus 229 s). Native fixture execution with snapshots takes 159/164 s versus 68 s, and final verification about 1 s. The separate archive step takes 51/53 s versus 47 s. Cold Swift provisioning alone took 65.8 s locally and downloaded an 837 MiB pinned archive into the disposable checkout. Implementing persistent, checksum-keyed Swift toolchain reuse with atomic publication, plus setup/build timing markers; fixture assertions and the two-worker pool remain intact. The exact Dell setup/build split needs the new markers and is not established by the old captured logs.

  5. added
    ready
    and removed
    needs-investigation
    on Nov 19, 2026
  6. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    #5205 merged (f5a3921). It caches the pinned Swift distribution in the runner tool cache, keyed by the archive SHA256, which addresses the 155-164 s Swift install measured inside the Dell's 530-600 s fixtures step. I'm leaving this issue open until a Dell measurement confirms the warm-cache saving, and to cover the remaining gap: the native contract builds took 159-164 s on the Dell against 68 s hosted.

  7. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Correction after Dell check 20 (5 merge-group runs after #5205): the Swift cache works (a warm hit on one runner, a cold 57 s install on another), but it saves about 23 s, not the 155 s I estimated. On the Dell the Swift install itself was only 57 s. The Dell fixtures step is 442-445 s against 232-297 s hosted. What remains is about 100 s of 'toolchain ready' after the Swift step (soldr cc/ar/SDK resolution in ci/macos_native_fixtures.py; the cause isn't confirmed yet) and 143-154 s of contracts against 38-56 s hosted. This job is no longer the merge-group critical path; #5224 is. I'm keeping this open for the toolchain-ready gap at a lower priority.

  8. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: continuing the remaining toolchain-ready investigation in pool slot fix5159. 1. Compare recent Dell and hosted timestamped logs and time the exact soldr resolution calls locally. 2. If repository code causes avoidable repeated resolution, add RED/GREEN Python unit coverage and a measured fix; otherwise report the upstream/host finding. 3. Run lint once, publish subject to backpressure, and return the clone clean and detached. First result expected this session.

  9. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    #5251 merged (35b4830). It caches the verified Darwin dsymutil under RUNNER_TOOL_CACHE, so the 474 MB LLVM-tools archive isn't downloaded again on every run. That download was the measured cause of the Dell's toolchain-ready gap. Leaving this open until the next E640 check confirms the saving on Dell runs; the contracts-step gap remains.

  10. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    E640 check 23 on #5251: warm Dell slots now reach toolchain ready in 0.73-0.85 s, and the Darwin fixtures step takes 299-343 s (median 329 s), against 442-445 s before. Each Dell slot pays one cold run first: 94-127 s to toolchain ready, because the 474 MB dsymutil archive downloads in 104 s on the Dell (job 135726466043) against 6.5 s hosted (job 135781843456). dell-1 and dell-3 haven't warmed yet. The remaining Dell-specific items are slow egress for that download (a host network or proxy question) and the Qt contracts step.

  11. moved this from In progress to Ready in obs-rust Multiviewon Nov 20, 2026
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

    ciready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions