Skip to content

CI: shard the cluster suites by measured seconds, audit that every cluster test ran once - #1745

Closed
davidtai wants to merge 8 commits into
devfrom
ci/fast-cluster-suites
Closed

davidtai wants to merge 8 commits into
devfrom
ci/fast-cluster-suites

Conversation

@davidtai

@davidtai davidtai commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Do not merge: stacked on PR 1733 (ci/fast-provider-shards). When 1733 merges, this PR is retargeted to dev.

Why

Since #1737, the Provider Tests gate waits for the cluster suites. With warm builds, a provider shard takes 3.5 to 4.8 min, but Cluster Runtime Tests take 15.8 to 19.5 min and Cluster Focused Checks about 10 min (run 41676995442).

Measured seconds per process (median of runs 41666486236, 41669255532 and 41676995442):

Job (before) Processes Test seconds
Cluster Runtime Tests shard 1 base-batch-session (one suite on the CPU) 715
Cluster Runtime Tests shard 2 base 512, five GLM and TF32 opt-ins 143 655
Cluster Runtime Tests shard 3 seven Qwen TP and GLM opt-ins 845
Cluster Focused Checks 22 runner scripts 570

What changes

TESTBODY

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… audit every test ran once

- scripts/cluster-test-plan.py places the blocking selections in 12 shards and
  the focused runners in 3, longest first onto the least loaded shard, from
  scripts/cluster-test-weights.json (medians of runs 41666486236, 41669255532
  and 41676995442). A shard runs one process per selection it holds. Base units
  are top-level suites; QwenTensorParallelBatchSessionTests (707 s on the CPU)
  is placed test by test. The last blocking shard runs the base catch-all.
- Each blocking process reports its executed counts, and each shard its
  `swift test list`. The new Cluster Runtime Tests Summary job (ubuntu-24.04)
  fails unless every process ran exactly its selection and the blocking
  processes together ran every listed test once. The Provider Tests gate
  requires it.
- The summary uploads measured seconds per unit for the next rebalance.

No test, selector, switch, skip rule or gate condition is removed. The
nonblocking lane is unchanged.

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

vercel Bot commented Nov 3, 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 3, 2026 7:56pm UTC
d-inference-console-ui-dev Error Error Nov 3, 2026 7:56pm UTC
d-inference-landing Ready Ready Preview Nov 3, 2026 7:56pm UTC
darkbloom-status Ready Ready Preview Nov 3, 2026 7:56pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 3, 2026 7:56pm UTC

Request Review

… flushed output, stable test lists

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai and others added 2 commits November 3, 2026 12:19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rror)

A bad xUnit file or a failed upload no longer fails Cluster Runtime Tests
Summary, and with it Provider Tests. The audit step keeps its exit code.

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

The probe's timed rounds stop at a 1.5 s wall-clock budget that starts
before the session, the prefill and the warm-up rounds, so it includes the
first use of the Qwen TP Metal kernels on the Mac. On dev the probe ran in
shard 3 after the other Qwen TP GPU selections. Weight placement put it in
shard 2 after only the CPU base suites and the GLM census, and run
41692814231 failed with `skipped=budget` after 3.1 s. A selection may now
name `after`: it joins that selection's shard, as its last process. The
budget and the assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai and others added 3 commits November 3, 2026 13:45
Run 41700931534 failed GLM5NextStageFrameTransportTests
.bothNativeStagesCommitOnlyTheirAcknowledgedFrames: "[local-socket-test]
recv: no completion for 1000 ms" after 2.9 s. In shard 7 it was the first
GLM suite of its process; its sibling test passed right after it (2.3 s),
and on dev it passes in 0.25 s after the other GLM suites have run in the
same process. BASE_GROUPS places every GLM5Next base suite (49.6 s in all)
as one unit, so they share a process as on dev. The timeout and the
assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every base suite whose name starts with a family prefix (Bonsai, GLM,
GPTOSS, Gemma, MiMo, Nemotron, Qwen) runs in its family's one process, as on
dev, and a new suite of a family joins it through the prefix regex. Suites
with no family prefix run in the last shard's catch-all.
QwenTensorParallelBatchSessionTests stays split by test (707 s on the CPU;
on dev it already ran in a process of its own). Planned seconds per shard:
192 to 205. Timeouts and assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on dev pushes only

- Each blocking opt-in selection is one unit, in one process, as on dev:
  its GPU tests may assume what its earlier tests left warm (the share
  probe was one). qwen-tp-batch-gpu (about 314 s) now sets the slowest
  shard, so 8 runtime shards give the same wall time as 12. Planned
  seconds per shard: 332, 274, 275, 279, 281, 279, 274, 243.
- Cluster GPU Tests (non-blocking) runs on dev pushes only, not on pull
  requests.

Mac jobs per provider pull request run: 16 before this PR (8 provider +
summary + metadata + 3 runtime + 2 GPU + 1 focused), 21 after (8 + 1 + 1 +
8 runtime + 3 focused), plus the SDK lane when it runs.

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

davidtai commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #1749 (David's ruling: fewer Mac jobs per PR run). The order-dependence findings from this PR are pinned there by a plan test on dev's cluster plan.

This branch had an error being deployed

2 failed and 3 active deployments
Preview – d-inference-console-ui-dev — 4b2c0398 Deployed Nov 3, 2026 by vercel[bot]
Preview – darkbloom-status — 4b2c0398 Deployed Nov 3, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 4b2c0398 Deployed Nov 3, 2026 by vercel[bot]
Preview – d-inference — 4b2c0398 Deployed Nov 3, 2026 by vercel[bot]
Preview – d-inference-landing — 4b2c0398 Deployed Nov 3, 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