Skip to content

ci: Cluster GPU Tests shards 1 and 3 ask Darkbloom first - #1955

Merged
Gajesh2007 merged 4 commits into
devfrom
ci/ask-darkbloom-first
Nov 10, 2026
Merged

Gajesh2007 merged 4 commits into
devfrom
ci/ask-darkbloom-first

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Cluster GPU Tests shards 1 and 3 now ask the Darkbloom plane for a sandbox, each on a lane of its own. Shard 2 keeps its literal Blacksmith label: it uses 42 GiB, more than any signed size (32 GiB).

This PR first also routed the build jobs. #1951 landed that on dev while this was open, so the branch now merges dev and adds only the GPU lanes on top of it.

Jobs Before After Blacksmith jobs / min, 48 h to 2026-11-10 02:12Z
Cluster GPU Tests shard 1 literal blacksmith-12vcpu-macos-27 lane test-cluster-gpu-1 198 / 1,835
Cluster GPU Tests shard 3 literal Blacksmith lane test-cluster-gpu-3 193 / 1,841
Cluster GPU Tests shard 2 literal Blacksmith unchanged 198 / 1,677

The GPU tests are the largest block of d-inference minutes still on Blacksmith: 5,353 of 12,923 in that window.

What moves on merge: shard 1. The plane's approval already names test-cluster-gpu-1; two runs of this branch were granted it and ran shard 1 on a Darkbloom Sandbox (9.4 min; Blacksmith's median is 8.0). Shard 3 answers lane_not_enabled and stays on Blacksmith until the approval names test-cluster-gpu-3.

Before / After

Before

flowchart LR
  T["9 blocking test shards,<br/>2 build jobs, release build checks"]:::ask
  G["Cluster GPU Tests<br/>shards 1, 2, 3"]:::lit
  T -->|"asks"| P{"Darkbloom plane"}
  P -->|"granted"| D["Darkbloom Sandbox"]:::dark
  P -->|"refused: that lane alone"| BS["Blacksmith"]:::bs
  G -->|"literal label"| BS
  classDef ask fill:#d4f7dc,stroke:#1a7f37,color:#0b2e13
  classDef lit fill:#ffe1e1,stroke:#cf222e,color:#3d0a0a
  classDef dark fill:#d4f7dc,stroke:#1a7f37,color:#0b2e13
  classDef bs fill:#e7ecf3,stroke:#57606a,color:#1f2328
Loading

After

flowchart LR
  T["9 blocking test shards,<br/>2 build jobs, release build checks"]:::ask
  G13["Cluster GPU Tests<br/>shards 1 and 3"]:::ask
  G2["Cluster GPU Tests shard 2<br/>(42 GiB)"]:::lit
  T -->|"asks"| P{"Darkbloom plane"}
  G13 -->|"asks, last in cap order"| P
  P -->|"granted"| D["Darkbloom Sandbox"]:::dark
  P -->|"refused: that lane alone"| BS["Blacksmith"]:::bs
  G2 -->|"literal label"| BS
  classDef ask fill:#d4f7dc,stroke:#1a7f37,color:#0b2e13
  classDef lit fill:#ffe1e1,stroke:#cf222e,color:#3d0a0a
  classDef dark fill:#d4f7dc,stroke:#1a7f37,color:#0b2e13
  classDef bs fill:#e7ecf3,stroke:#57606a,color:#1f2328
Loading

Green asks the plane first. Red keeps a literal Blacksmith label.

What changed

  • .github/workflows/provider-plan.yml: two lanes, test-cluster-gpu-1 and test-cluster-gpu-3, last in the lane table. Their size, used only while sizes are on, is 4x24: 14.33 and 14.72 GiB used and at most 2.6 busy vCPUs in run 42737118357.
  • .github/workflows/provider-tests.yml: test-cluster-gpu runs on matrix.shard == 2 && 'blacksmith-12vcpu-macos-27' || fromJSON(inputs.routes)[format('test-cluster-gpu-{0}', matrix.shard)].
  • Tests: scripts/test-darkbloom-route.py (the two lanes, the literal shard, cap order with 14 jobs), scripts/test-cluster-test-plan.py.
  • Docs: docs/developer/build.md, docs/developer/test.md, changelog.d/ci-gpu-shards-darkbloom.md.
  • Release workflows, darkbloom-route.yml and darkbloom-watchdog.yml are untouched.

Risk and rollback

  • The GPU tests are non-blocking: their failure does not fail the workflow, and the Provider Tests gate does not need them.
  • A full run asks for 14 macOS jobs instead of 12. The plane reserves a unit for each granted GPU shard while it waits for build-cluster, so under contention another run's lanes can fall back to Blacksmith sooner. The GPU lanes are last in the table, so within one run they are the first to fall back.
  • A routed job cannot fall back after the grant. The payer's concurrency limit on the plane was not checked against 14 jobs a run.
  • Rollback without a revert: set the repository variable DARKBLOOM_MACOS_LANES to 12. The cap keeps lanes in table order, so the two GPU lanes keep Blacksmith (scripts/test-darkbloom-route.py pins this).

Needed outside this PR

The d-inference approval on the sandbox plane must add test-cluster-gpu-3 for shard 3 to move.

Not in this PR

  • Shard 2. One process of paged-verify-bench holds 34 GiB. It needs a signed size of 48 GiB or more, or that selection in a shard of its own.
  • Release jobs. An earlier head routed the dev-branch release's SDK qualification shards. An independent review found that unsafe and it was removed: the signing job fetches the unsigned build by artifact name, which any job of the run can overwrite, and the plane refuses a routable job inside a call that passes secrets.

Validation

  • Local, on head 7586314: test-darkbloom-route.py (31 tests), test-provider-ci-workflow.py (34), test-cluster-test-plan.py (11), test-release-dev-branch.py (10) and test-provider-release-pipeline.py (33) pass; make changelog-check and make docs-impact-check BASE=origin/dev pass.
  • Earlier heads of this branch, same GPU change: runs 42762525117 and 42787775628 passed every check. In both, test-cluster-gpu-1 was granted and shard 1 passed on a Darkbloom Sandbox; shard 2 ran on Blacksmith by its literal label and shard 3 by lane_not_enabled.
  • Not run: actionlint (not installed here), test-ci-component-paths.py on this head, make docs-check on this head (earlier it reported only broken links into libs/ submodules that this worktree does not check out).
  • Shard 3 has not run on a Darkbloom Sandbox.

Review

An independent review of the first head approved the CI half with nits and required the release half to change; the release half is removed. Its nits that still apply are taken: the merge statement above and the cap rollback. Codex's two findings on the first head concerned the release routing (removed) and docs/developer/test.md (updated).

🤖 Generated with Claude Code

…s 1 and 3, dev release qualification)

The build jobs and Cluster Release Build Checks drop `required`, so they ask
the Darkbloom route on every run instead of waiting for DARKBLOOM_JOB_SHAPES.
Cluster GPU Tests shards 1 and 3 get a lane each; shard 2 (42 GiB, more than
any signed size) keeps Blacksmith. The dev-branch release asks for a sandbox
for each SDK 27 qualification shard; the source gate, the build whose bytes
are signed, signing, staging and publication keep Blacksmith, as do staging
and prod. Every lane still falls back alone to its Blacksmith runner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 10, 2026 9:09pm UTC
darkbloom-status Ready Ready Preview Nov 10, 2026 9:09pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 10, 2026 9:09pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T21:09:59.385970Z 7586314 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac5ed71b7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release-provider.yml Outdated
# shard on a lane of its own; staging, prod and a run without routes keep
# Blacksmith. The source gate, the build whose bytes are signed, and every
# job after it keep literal Blacksmith runners.
runs-on: ${{ inputs.environment == 'dev' && fromJSON(inputs.routes || '{}')[format('qualify-sdk-{0}', matrix.shard)] || 'blacksmith-12vcpu-macos-27' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Prevent sandbox-produced caches from entering signed releases

When a qualification shard is granted a community runner, it can still produce bytes consumed by signing through the shared Metal cache. .github/actions/provider-release-build/action.yml restores and saves metallib-helper-v3-... entries without a lane or runner-trust boundary, so qualification on a dev push can populate the same branch-scoped cache that subsequent Blacksmith release builds restore. scripts/fetch-metallib.sh accepts cached libraries by checking required symbol strings, not by authenticating their provenance or comparing against a trusted build. A compromised sandbox can therefore supply modified GPU kernels that a later release packages and signs, despite keeping build-provider on Blacksmith. Ensure the signing path rebuilds Metal on trusted infrastructure or authenticates cached outputs against trusted provenance before enabling these routes.

AGENTS.md reference: AGENTS.md:L76-L77

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disposition: not reachable as described, and not new with this PR. Leaving the thread open for a maintainer.

The two runner fleets do not share a cache store. A Blacksmith runner redirects actions/cache to Blacksmith's own store (its job log prints Setting BLACKSMITH_ACTIONS_RESULTS_URL ...), and a Darkbloom Sandbox uses its host's store (Cache directory: .../darkbloom/kv3). Evidence from run 42737118357: job 129572883189 (Darkbloom) and job 129570186472 (Blacksmith) both restored the key git-v1-macOS-2026-11-09, with different bytes (54,697,692 B and 55,503,358 B). docs/developer/build.md (CI Caching) states the same: an entry saved on one never reaches the other. The optimized build whose bytes are signed always runs on Blacksmith, so it cannot restore a Metal library that a shard saved on a sandbox.

The exposure the finding describes would already exist without this PR. CI jobs of dev and master pushes run on Darkbloom Sandboxes today and save caches under those refs (SAVE_CACHES), a Metal library among them. This PR adds no cache writer that the release build can read.

What is true: the metallib-helper-v3-... key names no lane and no runner, and scripts/fetch-metallib.sh accepts a cached library by its contents. So the guarantee rests on the separate stores, not on the workflow. Whether the release lane should rebuild the Metal library instead of restoring it is a maintainer's call and outside this PR.

The qualify-sdk-* lanes stay on Blacksmith until the plane's approval names them. Commit e68574f states the cache boundary in docs/developer/test.md.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: the release routing is removed from this PR in 7e41c3a, so no release job leaves Blacksmith and this finding no longer applies here. An independent review found two stronger reasons than the cache: the signing job fetches the unsigned build by artifact name, which any job of the run can overwrite, and the plane refuses a routable job inside a call that passes secrets. The observation that the metallib-helper-v3-... key names no lane still stands for a maintainer.

Comment thread docs/developer/build.md Outdated
| `docs-impact.yml` | `commit-signatures`, `docs-impact` | `blacksmith-4vcpu-ubuntu-2404` |
| `landing.yml`, `desktop.yml`, `nightly-linear-package.yml` | `check`, `frontend`, `test` | `blacksmith-4vcpu-ubuntu-2404` |
| `provider-release-cache.yml` | `warm`, pull requests only | `blacksmith-12vcpu-macos-27` |
| `release-dev-branch.yml` (routes read by `release-provider.yml`, environment dev only) | `qualify-sdk-shard` (lanes `qualify-sdk-1` to `qualify-sdk-5`, one per shard) | `blacksmith-12vcpu-macos-27` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the required test guide alongside the routing changes

This change moves GPU test shards and dev-release SDK qualification onto a different runner trust boundary, but updates only the build guide and release runbook; docs/developer/test.md is unchanged. Section 7 of docs/AGENTS.md explicitly requires both developer/build.md and developer/test.md to move with build, test, CI, or script changes. Update the test guide with the new qualification execution boundary and relevant routing regression checks so the required testing documentation accompanies this behavior change.

AGENTS.md reference: docs/AGENTS.md:L190-L192

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disposition: valid, fixed in e68574f. docs/developer/test.md now says that every Mac job but GPU shard 2 is routed, describes what scripts/test-darkbloom-route.py pins for the lane table, the required lane and the dev release's one routed job, and states where the release SDK qualification shards run and which cache store they use. make docs-impact-check BASE=origin/dev passes.

…nners after the Darkbloom-first lanes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…m route

An independent review of this branch found the release routing unsafe: the
signing job fetches the unsigned build by artifact name, which any job of
the run can overwrite, and the plane refuses a routable job inside a call
that passes secrets. Release workflows are as on dev again. The CI lanes
(builds, release build checks, GPU shards 1 and 3) stay. The route self-test
gains the sizes-on case of a required lane.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Gajesh2007 Gajesh2007 changed the title ci: every job without secrets asks Darkbloom first (builds, GPU shards 1 and 3, dev release qualification) ci: the build jobs and GPU shards 1 and 3 ask Darkbloom first Nov 10, 2026
…and 3 lanes

dev now routes build-provider, build-cluster and cluster-release-checks while
sizes are off (#1951), which was the first half of this branch. This merge
takes dev's workflows, self-tests and docs as they are and adds only the
lanes test-cluster-gpu-1 and test-cluster-gpu-3 on top; Cluster GPU Tests
shard 2 keeps its literal Blacksmith label.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Gajesh2007 Gajesh2007 changed the title ci: the build jobs and GPU shards 1 and 3 ask Darkbloom first ci: Cluster GPU Tests shards 1 and 3 ask Darkbloom first Nov 10, 2026
@Gajesh2007
Gajesh2007 merged commit 086dd06 into dev Nov 10, 2026
26 checks passed
@Gajesh2007
Gajesh2007 deleted the ci/ask-darkbloom-first branch November 10, 2026 21:36
davidtai added a commit that referenced this pull request Nov 10, 2026
Revert the routing of qualify-sdk-shard. The plane refuses a routable job
inside a reusable workflow call that passes secrets, and every caller of
release-provider.yml passes `secrets: inherit` (release-dev-branch.yml:116,
release-swift.yml:141,166,187); this is the reason #1955 removed the same
routing. The signer's fetch by artifact name (the other reason) is left
unchanged here; pinning it by ID and digest is a separate change. The
metallib cache gate and the unsigned_artifact output removal served only the
routing and are reverted with it.

Kept, standing alone: the route checks refuse a routed workflow that a caller
calls with secrets, Check the CI plans also runs the release pipeline pins
(test-provider-release-pipeline.py ran only in master's Release Integrity),
and the build guide says why the release shards are not routed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 11, 2026
davidtai added a commit that referenced this pull request Nov 11, 2026
…1981, #1986, #1987, #1988, #1990); supersedes #1960 (#2000)

* ci: port #1951 to master (route the build lanes while job sizes are off)

Cherry-pick of dev's merge 2474f3d (-m 1). changelog.d/ci-macos-job-sizes.md
was consumed into CHANGELOG.md on master by #1938, so this commit adds
changelog.d/ci-build-lanes-routed.md instead, as #1960 did. The tree of this
commit equals #1960's head 429d1bf; this PR supersedes #1960.

(cherry picked from commit 2474f3d)

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

* ci: port #1955 to master (GPU shards ask Darkbloom first)

Cherry-pick of dev's merge 086dd06 (-m 1).

(cherry picked from commit 086dd06)

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

* ci: port #1986 to master (route desktop-package)

Cherry-pick of dev's merge 2588e7f (-m 1).

(cherry picked from commit 2588e7f)

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

* ci: port #1981 to master (no GitHub Actions cache on a Darkbloom runner without the Darkbloom cache)

Cherry-pick of dev's merge 723ce1d (-m 1). docs/operations/provider-release.md
conflicted only on its "Last updated" line; it takes 2026-11-10. This PR
supersedes #1982.

(cherry picked from commit 723ce1d)

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

* ci: port #1990 to master (gate desktop-package's npm cache)

Cherry-pick of dev's merge 844b76d (-m 1).

(cherry picked from commit 844b76d)

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

* ci: port #1987 to master (GPU shard 2 memory)

Cherry-pick of dev's merge 732904f (-m 1). docs/developer/test.md
conflicted only on its "Last updated" line; it takes 2026-11-10.

(cherry picked from commit 732904f)

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

* ci: port #1988 to master (right-size jobs; BoundedBufferCache)

Cherry-pick of dev's merge 420a512 (-m 1).

(cherry picked from commit 420a512)

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com>

This branch was successfully deployed

3 active deployments
Preview – eigen-homepages-darkbloom — 7586314e Deployed Nov 10, 2026 by vercel[bot]
Preview – d-inference-landing — 7586314e Deployed Nov 10, 2026 by vercel[bot]
Preview – darkbloom-status — 7586314e Deployed Nov 10, 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