Repository navigation
ci: Cluster GPU Tests shards 1 and 3 ask Darkbloom first - #1955
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| # 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' }} |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| | `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` | |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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>
…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>
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>
…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>
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
devwhile this was open, so the branch now mergesdevand adds only the GPU lanes on top of it.blacksmith-12vcpu-macos-27test-cluster-gpu-1test-cluster-gpu-3The 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 answerslane_not_enabledand stays on Blacksmith until the approval namestest-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:#1f2328After
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:#1f2328Green asks the plane first. Red keeps a literal Blacksmith label.
What changed
.github/workflows/provider-plan.yml: two lanes,test-cluster-gpu-1andtest-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-gpuruns onmatrix.shard == 2 && 'blacksmith-12vcpu-macos-27' || fromJSON(inputs.routes)[format('test-cluster-gpu-{0}', matrix.shard)].scripts/test-darkbloom-route.py(the two lanes, the literal shard, cap order with 14 jobs),scripts/test-cluster-test-plan.py.docs/developer/build.md,docs/developer/test.md,changelog.d/ci-gpu-shards-darkbloom.md.darkbloom-route.ymlanddarkbloom-watchdog.ymlare untouched.Risk and rollback
Provider Testsgate does not need them.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.DARKBLOOM_MACOS_LANESto12. The cap keeps lanes in table order, so the two GPU lanes keep Blacksmith (scripts/test-darkbloom-route.pypins this).Needed outside this PR
The d-inference approval on the sandbox plane must add
test-cluster-gpu-3for shard 3 to move.Not in this PR
paged-verify-benchholds 34 GiB. It needs a signed size of 48 GiB or more, or that selection in a shard of its own.Validation
test-darkbloom-route.py(31 tests),test-provider-ci-workflow.py(34),test-cluster-test-plan.py(11),test-release-dev-branch.py(10) andtest-provider-release-pipeline.py(33) pass;make changelog-checkandmake docs-impact-check BASE=origin/devpass.test-cluster-gpu-1was granted and shard 1 passed on a Darkbloom Sandbox; shard 2 ran on Blacksmith by its literal label and shard 3 bylane_not_enabled.actionlint(not installed here),test-ci-component-paths.pyon this head,make docs-checkon this head (earlier it reported only broken links intolibs/submodules that this worktree does not check out).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