Skip to content

Merge queue wall time is now ~100% real work; the remaining lever is a larger queue runner (infrastructure) #4005

Open

Description

@zackees

Measured (2026-11-08, dependency-aware method)

Method note: for a needs: job, the jobs API created_at equals its dependencies' completion, so started_at - created_at is genuine runner wait — not started_at - run.created_at, which falsely blames the Cache Janitor.

Critical path: ci-mode → rust-linux-tier2-build → rust-linux-tier2 ×2 → ci-gate. The merge fires at CI Gate, not at run end.

run (total) runner wait (a) serial-hop overhead (b) real work (c)
42459458728 (19.2) 5.9 3.6 9.3
42457595277 (15.1) 0.4 3.4 10.4
42457007243 (13.5) 0.2 3.1 10.1

Wider sample, 31 successful merge_group runs: critical-path runner wait median 0.2 min, mean ≈1.6, ≥2.4 min in 7/31 — and every large wait landed on a first-wave job (CI Mode / Event Data), i.e. ordinary runner supply, not the queue.

Fast Gate ends 4–7 min before the shards, so it is never on the critical path.

What this means

  • Uncontended, a Tier 2 batch is ≈13–14 min to CI Gate: ≈10 min of real work (build 4–5 + tests 5.1–5.2), ≈3–3.5 min serial setup overhead, ≈0.2 min runner wait.
  • No repository change removes ≥2 min. One build already fans out to two shards via artifact; shard overhead is only ≈0.4–0.5 min; more shards are CPU-packed (1131 CPU-s ≈ 283 s of work on 4 cores vs 273 s wall) and were deliberately cut 6→2 in ci: reduce queue runner demand while preserving complete Tier 2 coverage #3917; building inside each shard would add a ≈4–5 min compile to each.
  • Tighter concurrency would only cancel PR runs (GitHub-hosted runners have no inter-workflow priority), throwing away PR evidence.

The remaining lever: infrastructure

A larger or dedicated runner group for queue jobs. At 8 cores the test step would be ≈1131/8 ≈ 2.4 min (if linear — unverified), i.e. ≈2.7 min saved per batch; a dedicated group would also remove the mean ≈1.6 min/batch of first-wave contention.

If a group is provisioned, the change is small: point runs-on for ci-mode, check-event, rust-linux-tier2-build, rust-linux-tier2 at it for merge_group only.

Acceptance criteria for that follow-up:

  • ci.yml/build-project.yaml runs-on: selects the group only for merge_group (PR runs unchanged).
  • Before/after: median CI-Gate-end time over ≥15 queue runs, quoted with the method above.
  • No lane's coverage changes; no proof/attestation behaviour changes.

Also worth fixing separately

Activity

  1. zackees commented on Nov 12, 2026

    @zackees
    MemberAuthor

    Claiming: maintainer-requested dynamic merge-queue runner fallback only (not the infrastructure provisioning or timing study). 1. Commit failing selector and workflow regression tests. 2. Add a hosted online-runner probe, pass its selection through existing workflows, and document the status-token/PowerEdge setup. 3. Run focused tests and the final lint, push the RED/GREEN pair and arm auto-merge. First PR expected this session; no runner registration or settings changes.

  2. added
    ready
    on Nov 12, 2026
  3. moved this from Triage to In progress in obs-rust Multiviewon Nov 13, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 14, 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

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions