Skip to content

CI queue: det sweep uses 24 jobs per run (> the 20-job pool); 5-6 fatter shards instead of 20 #5135

Closed

Description

@squid-protocol

Measured 2026-10-13 00:30 to 10-14 16:00 UTC (3,840 runs, 9,817 jobs, 59 merged PRs; analysis scripts and cache in the owner's session scratch dir). The pool is pinned at 20 concurrent jobs for 43% of minutes, and 64% of job wall time is queue wait. Median time to green is 36 min (p75 72). det is the last required check in 29 of 59 PRs, full-suite in 18, ground-truth in 12.

Change: fewer, longer det shards. One det run is 24 jobs (20 shards + 4 db2), more than the whole 20-job pool. Shards run a median 3.6 min (about 35 s of it setup) but queue about 19 min: shards start at +27 min and det finishes at +27.9 min median. With 5-6 shards of about 10-11 min each (db2 shards already take 11.7), det should finish about 10 min sooner whenever it's the last check, and each run frees about 15 slots for other PRs.

det_sweep_plan.py:35 has MAX_SHARDS=20 (#4814 sized it for an idle pool). Try 6, measure for a day, then pick a number. Optionally make it adaptive: few shards when the queue is busy (as churn measures it), more when idle.

Interaction: #5114 (pin the split in the plan job) touches the same planner. Do this one after it or fold the two together.

Acceptance: median det wall time and det jobs per run, before/after, on at least 10 det PRs; missing_cases still 0.

Activity

  1. added
    github-actions
    ci-cd
    on Oct 14, 2026
  2. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Queued together with #5114 (owner-approved): pin the split in the plan job first, then reduce MAX_SHARDS.

  3. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Bundled (owner, 2026-10-14): one PR covers #5114, #5135 and #5084 (det planner / det-sweep.yml).

  4. squid-protocol commented on Oct 16, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance (after #5139, which also covers #5114): measured with tests/tools/det_sweep_measure.py (PR #5226), cut = 2026-10-14T21:52:10Z, Det Sweep pull_request runs since 2026-10-01, latest attempt each.

    runs jobs/run (median) det wall median / p75 worst shard queue (median)
    full sweeps (>=10 jobs), before 169 26 27.8 / 49.5 min 16.3 min
    full sweeps (>=10 jobs), after 41 12 23.4 / 33.8 min 7.2 min
    all runs, before 591 8 17.2 / 29.9 min 6.5 min
    all runs, after 114 4 10.7 / 21.5 min 3.9 min

    missing_cases is 0: none of the 13 post-cut failed det logs has a "no result (its shard did not report)" line. A full run is now 12 jobs, inside the 20-job pool. Wall time includes pool load at the time, so this is not a controlled comparison. The data does not argue for a different shard count, so MAX_SHARDS stays 6. Closing.

  5. added a commit that references this issue on Oct 16, 2026
  6. added
    scope:infra
    on Oct 16, 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

    ci-cdgithub-actionsperformancescope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions