Skip to content

CI (dev): split the slow cluster runtime groups over 5 shards - #1868

Merged
davidtai merged 6 commits into
devfrom
ci/split-slow-cluster-groups
Nov 7, 2026
Merged

davidtai merged 6 commits into
devfrom
ci/split-slow-cluster-groups

Conversation

@davidtai

@davidtai davidtai commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Cluster Runtime Tests shard 2 was the slowest blocking job: 15.7 min median (18.6 max) over the 14 full CI (dev) runs of 2026-11-06. One process, the batch-session suite (QwenTensorParallelBatchSessionTests, 672 s on the CPU), ran beside the whole Qwen GPU chain (687 s). Shard 3 ran the Gemma 4 base suites in one process (610 s). Runtime shard 2 ended at 19.1 min of the run, and the Provider Tests gate then spent 1.3 min running the CI plan checks.

Measured seconds per selection (median of 5 runs, sampler marks, resource-samples-test-cluster-*):

Shard (before) Group or order Selections (s) Critical path (s)
1 alone base 493, share probe 9 502
2 group 1 base-batch-session 721, GLM paged-KV 45, row 11, depth 8, census 7, TF32 8, Gemma diag 16 816
2 group 2 Qwen batch GPU 265, batch paged 65, MTP 191, AQV 146, MoE 7, GLM prefix SSD 13 687
3 alone base-gemma 618 618
focused 1 alone 22 runner scripts 555

What changes

  1. Cluster Runtime Tests: 5 shards (scripts/cluster-test-plan.py).
    • The batch-session suite runs in 2 processes. base-batch-session-prefix-tiers runs its warm and SSD prefix tier tests (warmAttention…, ssdAttention…, ssdBalanced…, 325 s). base-batch-session runs the suite and skips those 3, so a new test of the suite runs there. The new functions field of a base selection names the tests.
    • Shard 2: Qwen batch GPU and batch paged, then the GLM paged-KV, invariance, census, TF32 and Gemma diag selections (group 1), beside base-batch-session (group 2).
    • Shard 3: Qwen MTP, AQV, MoE and GLM prefix SSD (group 1), beside base-batch-session-prefix-tiers (group 2).
    • Shards 4 and 5: base-gemma-tensor-parallel (Gemma4TensorParallelTests) and base-gemma (the other 8 Gemma suites), each alone on its Mac.
    • Shard 1 and the focused and GPU lanes do not change.
  2. No new lane. The matrix names each shard's lane (matrix.lane). Shards 2 and 3 share test-cluster-2 and shards 4 and 5 share test-cluster-3. Each of these lanes is requested for 2 jobs, as test-cluster-focused is. The plane granted both counts in this PR's runs, so the approval needs no change. Requested macOS jobs: 9 of the cap of 16 (7 before).
  3. CI plan checks in their own job. The new ci-plan-checks job (Check the CI plans) runs the plan checks from the start of the run, beside the test jobs. The gate requires its success in a step of its own. The gate checks out only scripts/ci-tested-tree.py for the record. It now takes 0.1 min (1.3 min before).
  4. Audit. cluster-test-plan.py audit now also checks two things:
    • Each Gemma suite runs whole in exactly one base selection, and that selection holds only Gemma suites.
    • Each named suite function is an ungated test of its suite, is named once, and has one base selection that runs the rest of the suite.
  5. Sizes (DARKBLOOM_JOB_SHAPES, off). Both lanes keep their sizes, from the memory sampled in run 42297089088 (rule: used × 1.25 ≤ RAM):
    • test-cluster-2 stays 12x32. Shard 2 used 24.72 GiB (30.9 ≤ 32) and shard 3 used 12.96 GiB.
    • test-cluster-3 stays 4x24. Shard 4 used 9.27 GiB and shard 5 used 14.39 GiB (18.0 ≤ 24).
    • On 4 vCPUs every new shard is less than 2% slower (scaled time).
    • docs/developer/build.md (Job sizes) has the numbers.

Every guard stays: the lock-retry guard, the 15 s group stagger, the share probe alone after base on shard 1, the Gemma-suite audit and the provider parity counts. No test, selector or gate condition is removed.

Executed counts (run 42297089088)

Selection Before After
Batch-session suite 13 tests in base-batch-session 10 in base-batch-session + 3 in base-batch-session-prefix-tiers
Gemma 4 base suites 67 tests, 9 suites in base-gemma 14 tests, 1 suite in base-gemma-tensor-parallel + 53 tests, 8 suites in base-gemma
base 807 tests, 173 suites 807, 173
Opt-in selections (tests) batch GPU 11, batch paged 5, MTP 36, AQV 9, MoE 2, GLM prefix SSD 2, paged-KV 2, row 1, depth 2, census 2, TF32 1, Gemma diag 1, share probe 2 the same

Before and after

Before: the 14 full CI (dev) runs of 2026-11-06 (42201769655 … 42281198827). After: this PR's runs: 42297089088 attempts 1 and 2, and 42303581994 (head 9796f02). Medians; each run's own value follows in brackets. vCPU-min counts the macOS jobs only, at 12 vCPUs each: sizes are off, so every Darkbloom and Blacksmith Mac here has 12 vCPUs.

Before After
Wall time (run start to last job) 22.2 min 22.6 min (22.6, 22.9, 21.3)
Gate (Provider Tests) done 20.4 min 18.7 min (20.6, 18.7, 16.8)
Slowest blocking test job 15.7 min (Cluster Runtime Tests shard 2) 14.4 min (16.6 and 14.4 Provider Unit Tests shard 2 with the MiMo audio gate; 13.0 Cluster Runtime Tests shard 1)
Slowest Cluster Runtime Tests shard 15.7 min 10.7 min (10.1, 10.7, 13.0; shard 1, base)
Last cluster blocking job done 19.1 min 14.1 min (13.9, 14.1, 16.7)
macOS jobs per run (Darkbloom) 12 (7) 14 (9)
macOS vCPU-min per run 1383 1450 (1450, 1477, 1393)

Three things limit the after figures:

  • Wall time comes from a non-blocking job. Cluster GPU Tests shard 1 is one test, rowsEqualTheirSoloStepsAndWindowPositionsAtRealWidths (QWEN_TP_REAL_GEOMETRY_GPU). It takes 18 to 19 min and ends at 22 to 23 min in every run, before and after. Its time is spent in QwenTensorParallelRowsCheck.run. To shorten it, the test or that check must be split. That is a test change, not a CI plan change, so this PR leaves it. Until then the run stays at about 22.5 min even though the gate finishes sooner.
  • This PR selects the MiMo audio gate. It changes provider-tests.yml, which is a mimo_audio input. Provider shard 2 therefore also prepared the audio fixture and ran the audio gate. The fixture took 264 and 254 s in the two attempts of 42297089088, which made that shard the slowest blocking job (16.6 and 14.4 min), and 68 s in 42303581994. Only 2 of the 14 before runs selected audio: there provider shard 2 took 11.0 and 11.7 min, and the gate ended at 22.5 and 24.9 min. In a run without audio, the provider shards end at about 15.5 min (before median), so the gate ends at about 15.6 min.
  • base varies with the Mac. Shard 1 (base, then the share probe, unchanged) is now the longest cluster shard. base took 441 s in run 42297089088 and 628 s in run 42303581994, against 493 s median (522 max) before. Splitting base is the next cluster step.
  • Provider downloads are slow. The provider shards download 1065 MiB of test products to the Darkbloom Macs at 5 to 10 MB/s: 116 to 401 s, median 120 s. That download is the largest fixed cost on the provider path.

I did not change the provider shard weights. The two shards end within about 1.5 min of each other, and download variance is larger than that. The measured job extras, about 93 s for parity and about 138 s for the last shard, would move about 25 s of work, and the release qualification lane would get a different plan.

Validation

No builds or tests ran on the laptop. CI ran the changed plan self-tests in Check the CI plans: test-cluster-test-plan.py, test-provider-test-shards.py, test-darkbloom-route.py, test-provider-ci-workflow.py and test-ci-component-paths.py, plus the plan audit. That job passed in every run.

Non-green checks, none caused by this change:

  • 42297089088 attempt 1, Cluster Focused Checks shard 1: ObservabilityChecks E12, the heartbeat timing flake that PR 1864 fixes.
  • 42297089088 attempt 1, Provider Unit Tests shard 1: ProductionModelCalibrationTests, Qwen3.8-27B contiguous, isolatedPrefill.sampleCount was 1, not 2. This plan does not touch it, and it passed in attempt 2.
  • 42297089088 attempt 2, Cluster Focused Checks shard 1: the Darkbloom runner lost communication with GitHub after 10 min ("The self-hosted runner lost communication with the server").
  • 42303581994 (head): every job passed.

Refactor pass: done (commit 7fe7a39). No plan logic changed: it corrected the Build Once table (test-cluster shards 1–5), split a run-on lock-retry sentence in test.md, reflowed a route comment, and fixed a stale Gemma timing comment. Signed dev merges cea674c, 23d9d40 and f863023 kept #1865's image-fixture self-test in ci-plan-checks. CI run 42315882632 on f863023 passed every job.

🤖 Generated with Claude Code

Cluster Runtime Tests shard 2 was the slowest blocking job (16.6 min
median): the batch-session suite runs 672 s in one process beside the
Qwen GPU chain (687 s). Shard 3 ran the Gemma 4 base suites, 610 s.

- The batch-session suite runs in two processes: its warm and SSD prefix
  tier tests in base-batch-session-prefix-tiers (a new `functions` field
  of a base selection), the rest in base-batch-session, which skips them.
  Each runs beside one half of the Qwen GPU chain, on shards 2 and 3.
- The Gemma 4 base suites run in two processes, each alone on a shard:
  Gemma4TensorParallelTests on shard 4, the other Gemma suites on shard 5.
- The new shards use approved lanes with a count: shards 2 and 3 read
  test-cluster-2, shards 4 and 5 test-cluster-3 (matrix.lane).
- The audit checks that each Gemma suite runs whole in exactly one base
  selection of Gemma suites, and that each named suite function is an
  ungated test of its suite, named once, with one base selection for the
  rest of the suite.
- The CI plan checks run in their own job beside the test jobs; the
  Provider Tests gate requires it instead of running them last.

No test, selection guard, lock-retry, stagger, share-probe placement,
parity count or gate condition is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 7, 2026 12:05am UTC
d-inference-console-ui-dev Error Error Nov 7, 2026 12:05am UTC
d-inference-landing Ready Ready Preview Nov 7, 2026 12:05am UTC
darkbloom-status Ready Ready Preview Nov 7, 2026 12:05am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 7, 2026 12:05am UTC

Request Review

Run 42297089088 sampled the 5 runtime shards on Darkbloom (12 vCPU,
32 GiB): shard 2 24.72 GiB, shard 3 12.96 (lane test-cluster-2, 12x32),
shard 4 9.27, shard 5 14.39 (lane test-cluster-3, 4x24). A shared lane
asks for the size that holds the larger shard; both sizes stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- build.md (Build Once table): test-cluster has shards 1 to 5, not 1 to 3.
- test.md: the lock-retry sentence starts its own line again.
- provider-plan.yml: reflow the route comment.
- cluster-test-plan.py: the Gemma timing comment names the old base-gemma
  process, not a shard number that now means another shard.

No behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1865 adds test-prepare-mimo-image-http-fixtures.py to the prompt fixture
downloader checks. Those checks moved from the Provider Tests gate to the
ci-plan-checks job on this branch, so the new script runs there; build.md
names it in that job's list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #1866 (the pairing and console focused-check steps) and #1874.
No conflicts: their steps are in Cluster Focused Checks, beside this
branch's runtime shard and ci-plan-checks changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidtai
davidtai merged commit ebbbdd5 into dev Nov 7, 2026
24 of 26 checks passed
@davidtai
davidtai deleted the ci/split-slow-cluster-groups branch November 7, 2026 00:29
davidtai added a commit that referenced this pull request Nov 7, 2026
Keeps dev's 5 Cluster Runtime Tests shards, their shared lanes and the
Check the CI plans job (#1868), and this branch's Cluster GPU Tests
shard 3 (the segments half of the real-geometry rows check) with the
rows half alone on shard 1. A cluster change now runs 12 Macs; the
routed asks stay 12 with sizes on and 9 with them off, since the GPU
shards are not routed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

2 failed and 3 active deployments
Preview – eigen-homepages-darkbloom — f8630236 Deployed Nov 7, 2026 by vercel[bot]
Preview – d-inference-landing — f8630236 Deployed Nov 7, 2026 by vercel[bot]
Preview – d-inference — f8630236 Deployed Nov 7, 2026 by vercel[bot]
Preview – darkbloom-status — f8630236 Deployed Nov 7, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — f8630236 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant