Skip to content

perf(ci): cut runner wait on the merge-queue critical path #5740

Done

Description

@zackees

Context

Recent Forge CI cache work landed shared FSX leases for Linux Tier 2 (#5614) and workspace-local apt archives (#5557). Merge-group job timestamps still show long runner waits.

  • #5636 merge-group run took about 58 minutes from run creation to merge. Fast Gate waited 27 minutes for a hosted runner and ran for 4½ minutes. The macOS ARM64 Tier 2 link check waited 34 minutes for a hosted Linux runner and ran for 7½ minutes. These waits overlapped.
  • #5650 replacement run spent about 26 minutes waiting for the hosted CI Mode and Event Data jobs. They ran for 15 and 22 seconds, respectively, and blocked downstream build scheduling. Canceled and replaced groups add further elapsed time.

Proposal

Acceptance criteria

  • Capture RED evidence with a reproducible dispatch trace and a focused routing or workflow-graph check before changing behavior. Show the check passing after the fix and publish before/after timings from comparable merge groups.
  • Demonstrate that the setup jobs no longer block heavy-lane scheduling behind the observed 26-minute hosted wait in a representative loaded run. Exercise Forge routing and hosted fallback with the required CI Gate intact.
  • Report runner wait and execution separately for Fast Gate and the Tier 2 link lanes, with cache hit/miss evidence for affected Linux Tier 2 jobs and separate accounting for replaced groups.

Decisions

  • Prioritize measured dispatch delays because they precede cache restore and compilation. Keep platform-specific capacity work and the app-cache rollout in their existing trackers.
  • Keep merge-group validation and branch protections in force. The fix should reduce time to run required checks.

Open questions

  • Which quick runner capacity can safely run the setup jobs at burst load, and why did the measured groups fall back to hosted capacity for their Linux jobs?

Activity

  1. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Claiming: reduce merge-group critical-path runner wait. First PR will cover a focused routing regression and route CI Mode and Event Data through the existing quick-runner configuration where safe, keeping hosted fallback. I will verify subsequent queue timing and Tier 2 cache evidence separately.

    Decisions: reuse the existing quick-runner opt-in and keep PR runs hosted. Investigate actual placement and fallback from job records before broadening heavy-lane routing. First PR after local RED and GREEN validation.

  2. added
    ready
    on Nov 25, 2026
  3. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    /ready

    The initial fix is reproducible from run 45695486361. CI Mode has no merge-group verification step, so first check whether it can leave the merge-group graph entirely. Event Data checks out history and runs repository code, which needs a runner sized for that workload. Keep existing admission and gate behavior and cover both paths in the routing regression.

  4. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    #5743 is open with the setup routing change and passing local RED → GREEN checks. The required hosted PR gate is in progress.

    A second baseline, run 45703639786, explains two fallback paths. The pool signal showed 4 online, 4 busy, zero idle and zero dispatcher room. The separate Tier 2 reservation waited about 90 seconds for its listener, then fell back to hosted when it did not come online. The hosted Tier 2 build waited 7m18s, ran for 8m35s, and uploaded a 290 MB GitHub artifact.

    On that run Fast Gate waited 1m10s and ran for 5m21s. The macOS/Windows Tier 2 link jobs waited 7m29s/14m and ran for 6m30s/4m50s. These are job creation-to-start and start-to-completion measurements, and the waits overlap. Keep the issue open until live placement and cache reuse are verified.

  5. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Verified the shared artifact consumer on run 45585874357. The Linux Tier 2 OFF shard ran on dell-fsx3mn2-dyn-obs-rust-3, completed “Test Tier 2 From Shared Artifact” in 5m27s, and skipped the GitHub artifact download. The same run still published a 286 MB tier2-tree from its hosted build, so it demonstrates shared consumption and mixed placement, not an end-to-end FSX-only build. The hosted build bypassed its apt archive restore, so this run also cannot establish warm package reuse.

  6. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Found an all-Forge placement in run 45677182472. The build started three seconds after job creation on dell-fsx3mn2-dyn-obs-rust-8, and both test shards succeeded from shared artifacts on separate Dell runners. The persistent apt archive already held 621 downloaded .debs. A 291 MB GitHub artifact was also published, so the run proves Forge placement, a populated apt archive, and shared consumption, but not that the fallback upload disappeared or that every pinned package was served by the archive. The build still took about 21 minutes after dispatch, so routing gains and cache gains need separate measurement.

  7. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Additional baseline for the post-change comparison:

    Merge-group run CI Mode wait / run Event Data wait / run CI Gate wait / run
    45682579188 (merged #5636) 8m54s / 18s 9m15s / 19s 6m20s / 22s
    45695486361 (replacement for #5650) 26m12s / 15s 26m20s / 22s pending at sample
    45677182472 (canceled after gate executed) 4m43s / 16s 26s / 20s 7m19s / 20s
    45710318793 (merged #5607) 2s / 17s 2s / 15s 21s / 25s

    The setup waits overlap. The selector ran on Forge Quick and got a runner in 1–2 seconds in all four samples. The gate itself shows a smaller but separate hosted tail that #5743 leaves in place. The existing queue report already separates creation-to-start and cache-step durations; runner placement and fallback reason are still needed to interpret those measurements. #5607 has merged the macOS and Windows app fleet-cache wiring.

  8. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    GitHub's queue timeline for #5650 records enqueue at 18:43:11Z and merge at 21:21:41Z, or 2h38m30s. Its first two merge-group runs (45678042697 and 45682585528) were canceled. Replacement groups were created at 19:10:43Z and 20:29:43Z, spanning 1h46m32s from initial enqueue to creation of the final group. The Actions API still reports the final run as queued, so use the PR timeline as the authoritative merge timestamp. Canceled runs overlap their replacements; do not sum their lifetimes into queue wait.

  9. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Live routing verification on #5743 merge-group run 45714421129: CI Mode got a Forge Quick runner in 1s and ran for 11s. Event Data got dell-fsx3mn2-dyn-obs-rust-6 in 2m01s and ran for 1m35s. Fast Gate and both Tier 2 link jobs were created immediately when Event Data finished. The setup interval from job creation to downstream creation was 3m36s versus 26m42s in the slow #5650 baseline. The baseline and this run use different PR workloads and capacity conditions, so this verifies the new placement and observed setup times without attributing the full 23m06s difference to the patch. End-to-end gate and post-merge measurements are pending.

  10. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Verified warm hosted apt fallback on run 45703639786. The archive restore took 4s, then the pinned Tier 2 package installer reported “Need to get 0 B/374 MB of archives” and finished in 26s. The earlier Git/container bootstrap separately fetched 26.5 MB. This directly verifies the package cache served that pinned install. The Dell sample still establishes archive population only. A comparable cold run with the same package inputs remains to be measured.

  11. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Matched the warm hosted apt sample to a cold run using the identical apt-packages.txt blob (401796d5db209b7203f79460f87770a7f636b672), also reporting a 374 MB dependency closure. Cold job 137761048459 logged an explicit archive miss and timed out at 10 minutes during the package install. Warm job 139521255782 restored in 4s, fetched 0 B for that dependency closure, and installed in 26s. This confirms cold and warm behavior on hosted runners. The jobs used different mirror conditions, so the install time difference also includes mirror performance.

  12. 9 remaining items

  13. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    Found a same-slot cache invalidation, beyond cross-slot misses. #5743 macOS cross-lint saved the exact 111 MB cook-base archive on slot 9. The intervening successful #5745 Tier 2 link used setup-soldr #707 and marked the cache clean with a boot checkpoint. #5747 macOS cross-lint on slot 9 used the older #676 pin, reported that the intervening session never closed, removed cook-store and other cache directories, and rebuilt the same key. The #676 reader predates the boot-marker format. Align all Forge-eligible setup-soldr readers and writers on the same checkpoint-capable pin and mode.

  14. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    The queue-report PR #5747 merged, and its real CI Gate published runner names and requested labels beside waits. It recorded Event Data at 1,342s on Dell and release-target cross-lint setup at 802s. The output now distinguishes dispatch from setup in a single run summary. The bounded reservation and cache checkpoint fix are still separately in validation.

  15. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    The bounded-reservation PR #5748 merged after CI Gate passed. Enqueue to merge was 20m09s. The no-capacity hosted Event Data path completed in 22s including dispatch. This group also ran the required Linux, Windows, and macOS Tier 2 lanes. The selected-pool lease grant and listener-timeout paths still need live samples.

  16. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    The first merge group on master after #5748 (run 45728598558) exercised the ready Forge lease. The reservation got a Quick runner in 1s and ran 47s. It reported the reserved listener online, and Event Data then got its designated Dell runner in 2s. This verifies ready acquisition on the landed workflow. CI Gate and same-slot checkpoint evidence are pending.

  17. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    Ran all 55 upstream pool-selector tests at the exact pinned action commit 52f6ada3ed0cb8622e31f1a16d506fb853b731b0. The listener-timeout test verifies that the selector releases the reservation and returns hosted labels. This is a simulated timeout. The live OBS queue has separately passed the no-capacity hosted route and started Event Data on a ready lease.

  18. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    Live cache evidence on #5749: release-target cross-lint on Dell slot 10 restored the exact 178,351,479-byte cook-base archive saved on that slot by #5745. Setup-soldr logged a clean session and a local hit, restored 4,730 files in 11s, and marked the session clean. Total setup was 7m17s versus 13m30s in the compared #5745 cold run. The intervening writer was the older checkpoint format, so this proves the new reader can reuse the existing archive. A subsequent same-slot read after a new boot-checkpoint writer will verify that direction too.

  19. zackees commented on Nov 26, 2026

    @zackees
    MemberAuthor

    Completed by #5743, #5747, #5748, and #5749. The checkpoint-alignment PR merged with CI Gate green in 21m33s from enqueue. Its setup released downstream work in 2m59s, compared with 26m42s in the slow #5650 baseline. The no-capacity group #5748 merged in 20m09s. These were different workloads and runner conditions.

    In the #5749 group, hosted Fast Gate waited 2s and ran 4m05s. Dell Tier 2 link waited 47s and ran 10m54s for macOS ARM64, and waited 1m10s and ran 11m56s for Windows x64. The ready-lease and no-capacity hosted paths both passed required queue validation. The pinned selector timeout and release behavior passed simulation. The report shows runner labels and dispatch and execution timings, and this issue records the selector reasons, replaced groups, shared FSX artifact consumption, and warm and cold apt evidence.

    The exact release cross-lint cook archive reused 178 MB from slot 10 after the checkpoint alignment. Other slots can still miss the same key. A subsequent exact hit after a new boot-checkpoint writer and cross-slot reuse are follow-up cache measurements. Existing platform and app-cache trackers retain their scope.

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

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions