Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/provider-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ jobs:
# cold build is 5 to 10% slower. The sampled memory of each job is in
# docs/developer/build.md (Job sizes).
#
# While sizes are off, the 9 blocking test jobs ask without a size, as
# before. The build jobs and Cluster Release Build Checks are `required`:
# while sizes are off they keep Blacksmith without asking. The lanes are in
# While sizes are off, every lane asks without a size and gets the
# approval's pinned macOS size (12 vCPU / 32 GiB on 2026-11-05, the class of
# the Blacksmith fallback). If the approval pins a smaller size, the build
# jobs and Cluster Release Build Checks get that size too. The lanes are in
# the order the DARKBLOOM_MACOS_LANES cap keeps them: the critical-path test
# shards first, then the `required` jobs.
# shards first, then the build jobs and Cluster Release Build Checks.
route:
needs: [tested, components]
if: ${{ !cancelled() }}
Expand All @@ -179,6 +180,6 @@ jobs:
test-provider-2 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.provider == 'true' && 1 || 0 }} 4x24
test-cluster-1 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 4x16
test-provider-1 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.provider == 'true' && 1 || 0 }} 4x16
build-cluster macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.cluster == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_cluster == 'true')) && 1 || 0 }} 8x16 required
build-provider macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.provider == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_provider == 'true')) && 1 || 0 }} 12x32 required
cluster-release-checks macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 8x16 required
build-cluster macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.cluster == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_cluster == 'true')) && 1 || 0 }} 8x16
build-provider macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.provider == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_provider == 'true')) && 1 || 0 }} 12x32
cluster-release-checks macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 8x16
11 changes: 6 additions & 5 deletions .github/workflows/provider-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ jobs:
# soon as their products are up. A push whose tree a pull request run
# already tested runs no test job; the build job then builds only the
# components the push changed, to refresh the branch's caches. The build
# jobs need a large Mac: their lanes ask only with their size, while job
# sizes are on; otherwise they run on Blacksmith (provider-plan.yml).
# jobs need a large Mac: while job sizes are on, their lanes ask with
# their size; while sizes are off, they ask without one and get the
# approval's pinned macOS size (provider-plan.yml).
name: Build cluster test products
if: ${{ inputs.cluster == 'true' || (github.event_name == 'push' && inputs.skip == 'true' && inputs.changed_cluster == 'true') }}
runs-on: ${{ fromJSON(inputs.routes)['build-cluster'] }}
Expand Down Expand Up @@ -858,9 +859,9 @@ jobs:
# their own: no test job waits for them. The build is reused across runs:
# SwiftPM rebuilds what changed, and source timestamps are restored only
# for files whose contents match the cached build's
# (scripts/provider-release-cache.py). Its lane asks only with its size,
# while job sizes are on, as the build jobs' lanes do; otherwise it runs
# on Blacksmith (provider-plan.yml).
# (scripts/provider-release-cache.py). Its lane asks as the build jobs'
# lanes do: with its size while job sizes are on, without one otherwise
# (provider-plan.yml).
name: Cluster Release Build Checks
if: ${{ inputs.cluster == 'true' }}
runs-on: ${{ fromJSON(inputs.routes)['cluster-release-checks'] }}
Expand Down
5 changes: 5 additions & 0 deletions changelog.d/ci-build-lanes-routed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Provider CI: build lanes route to Darkbloom while job sizes are off

- Build cluster test products, Build provider test products and Cluster Release Build Checks no longer keep `blacksmith-12vcpu-macos-27` without asking while `DARKBLOOM_JOB_SHAPES` is off. Their lanes `build-cluster`, `build-provider` and `cluster-release-checks` now ask without a size, as the test lanes do, and get the approval's pinned macOS size (12 vCPU / 32 GiB on 2026-11-05). If the approval pins a smaller macOS size, they get that size.
- While sizes are on, they still ask for 8x16 (build-cluster, cluster-release-checks) and 12x32 (build-provider).
- A run that tests every component asks for 12 macOS jobs.
47 changes: 25 additions & 22 deletions docs/developer/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,25 +376,25 @@ one. It is the only CI job with `issues: write`. Cluster GPU Tests never fail
their jobs, so they never report there. Close the issue when `dev` passes
again; the next failure opens a new one.

A full run takes about 13 minutes and 110 macOS job-minutes: about 31 on
Blacksmith (the build jobs, Cluster Release Build Checks and Cluster GPU Tests)
and about 79 on routed Macs (the 9 blocking test shards, which fall back to
Blacksmith when the plane grants no Mac).
A full run takes about 13 minutes and 110 macOS job-minutes: about 31 for the
build jobs, Cluster Release Build Checks and Cluster GPU Tests, and about 79
for the 9 blocking test shards. Every macOS job but Cluster GPU Tests is
routed, and falls back to Blacksmith when the plane grants no Mac.

### Build Once

Each lane builds its debug test products once, on a large runner, and its
test jobs run them with `swift test --skip-build`. No test job compiles the
provider or the cluster packages. Every job below but `test-cluster-gpu` reads
its runner from the route ([CI Runner Routing](#ci-runner-routing)). Its
fallback is `blacksmith-12vcpu-macos-27`. While job sizes are off, a
`required` job keeps its fallback without asking ([Job sizes](#job-sizes)).
fallback is `blacksmith-12vcpu-macos-27`. While job sizes are off, every job
asks without a size ([Job sizes](#job-sizes)).

| Job | Runner | Needs | Does |
|---|---|---|---|
| `build-cluster` (Build cluster test products) | routed, `required` | - | Builds the cluster lane (`.github/actions/provider-ci-build`), uploads `cluster-test-products` |
| `build-provider` (Build provider test products) | routed, `required` | - | Builds the provider lane, uploads `provider-test-products` |
| `cluster-release-checks` (Cluster Release Build Checks) | routed, `required` | - | Compiles the release build of the worker capability and prefill schedule checks, and runs them |
| `build-cluster` (Build cluster test products) | routed | - | Builds the cluster lane (`.github/actions/provider-ci-build`), uploads `cluster-test-products` |
| `build-provider` (Build provider test products) | routed | - | Builds the provider lane, uploads `provider-test-products` |
| `cluster-release-checks` (Cluster Release Build Checks) | routed | - | Compiles the release build of the worker capability and prefill schedule checks, and runs them |
| `test-provider`, shards 1 and 2 | routed | `build-provider` | The provider selections, Prompt Parity, the native gates, the audit and coverage |
| `test-cluster`, shards 1 to 5 | routed | `build-cluster` | The blocking cluster selections |
| `test-cluster-gpu`, shards 1 to 3 | `blacksmith-12vcpu-macos-27`, not routed | `build-cluster` | The non-blocking cluster GPU selections |
Expand Down Expand Up @@ -566,9 +566,9 @@ gate run on `ubuntu-24.04`. Cluster GPU Tests run on `blacksmith-12vcpu-macos-27
not routed ([Job sizes](#job-sizes)). A lane without a size gets the
approval's pinned image size for its profile (one for macOS, one for Linux).
The macOS one measured 12 vCPU / 32 GiB on 2026-11-05 (run 42105290034,
attempt 1); it is not a fixed default. The build jobs and Cluster Release
Build Checks ran on Blacksmith before sizes, so they ask only with their size
([Job sizes](#job-sizes)).
attempt 1), the class of the Blacksmith 12-vCPU fallback; it is not a fixed
default. While sizes are off, the build jobs and Cluster Release Build Checks
get this size too ([Job sizes](#job-sizes)).

Jobs on Darkbloom Sandboxes use GitHub's Actions cache, not Blacksmith's
colocated cache, so their first runs start without cached build products.
Expand All @@ -586,14 +586,18 @@ repository variable `DARKBLOOM_JOB_SHAPES` is exactly `on`. While it is off:

- The request has no size. It is byte for byte the request of a lane table
without sizes.
- The 9 blocking test jobs ask without a size, as before sizes. Their runners
do not change.
- Every lane asks without a size and gets the approval's pinned macOS size
([CI Runner Routing](#ci-runner-routing)): the 9 blocking test jobs, the
build jobs and Cluster Release Build Checks.
- Risk: the build jobs need a large Mac. If the approval pins a smaller macOS
size, they get that smaller size, and a cold build takes longer.
- A lane marked `required` keeps its fallback without asking. It takes no
place under the `DARKBLOOM_MACOS_LANES` cap.
place under the `DARKBLOOM_MACOS_LANES` cap. No CI lane is marked
`required` now.

The lane table in the `route` job of `provider-plan.yml` is the one place that
names each job's lane and size. The lanes are in cap order: the critical-path
test shards first, then the `required` jobs.
test shards first, then the build jobs and Cluster Release Build Checks.

Each size is the smallest signed size (4x16, 4x24, 8x16, 12x32) that holds the
job's used memory times 1.25, on which the job takes at most 5% longer than on
Expand All @@ -616,13 +620,12 @@ and memory pressure stayed normal.
| `test-provider-2` | 1 | 4x24 | 16.17 in one sample, about 9 otherwise | asks without a size |
| `test-cluster-1` | 1 | 4x16 | 11.97 | asks without a size |
| `test-provider-1` | 1 | 4x16 | 11.03 | asks without a size |
| `build-cluster` | 1 | 8x16 | 10.91; a cold build takes 5 to 10% longer on 8 vCPUs | Blacksmith, not asked |
| `build-provider` | 1 | 12x32 | 17.50; 8x24 is not signed, and a cold build takes 20% longer on 8 vCPUs | Blacksmith, not asked |
| `cluster-release-checks` | 1 | 8x16 | 9.65 with a reused build; a cold release compile (run 42041608780: 11.33 GiB, 11.4 busy vCPUs at p95 of 12) takes 26% longer on 4 vCPUs and 5.5% on 8 | Blacksmith, not asked |
| `build-cluster` | 1 | 8x16 | 10.91; a cold build takes 5 to 10% longer on 8 vCPUs | asks without a size |
| `build-provider` | 1 | 12x32 | 17.50; 8x24 is not signed, and a cold build takes 20% longer on 8 vCPUs | asks without a size |
| `cluster-release-checks` | 1 | 8x16 | 9.65 with a reused build; a cold release compile (run 42041608780: 11.33 GiB, 11.4 busy vCPUs at p95 of 12) takes 26% longer on 4 vCPUs and 5.5% on 8 | asks without a size |

A run that tests every component asks for 12 macOS jobs while sizes are on,
and 9 while they are off. The three Cluster GPU Tests shards are not routed:
they run on `blacksmith-12vcpu-macos-27` (12 vCPU, 48 GiB). Shard 2 uses
A run that tests every component asks for 12 macOS jobs, while sizes are on
or off. The three Cluster GPU Tests shards are not routed: they run on `blacksmith-12vcpu-macos-27` (12 vCPU, 48 GiB). Shard 2 uses
41.99 GiB, which no signed size holds, and one lane carries one size for every
shard (shard 1 used 17.40 GiB when it ran the whole real-geometry rows check;
shards 1 and 3 each run half of it now).
Expand Down
3 changes: 2 additions & 1 deletion docs/developer/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,8 @@ grants, HTTP errors, the single retry, timeouts, untrusted or plain-HTTP planes
and hostile reply text. It covers [job sizes](build.md#job-sizes) both ways:
while `DARKBLOOM_JOB_SHAPES` is not exactly `on`, CI's request is byte for byte
the request without sizes; while it is on, each lane sends its size and takes
only the labels of that size. It also covers bad sizes and the macOS cap order.
only the labels of that size. It also covers bad sizes, the macOS cap order and
a `required` lane, which keeps its fallback without asking while sizes are off.
It also pins each routed job's lanes (one per provider or cluster shard,
matching the job's matrix), size, fallback, timeout and read-only permissions,
and keeps release workflows and Cluster GPU Tests on literal Blacksmith
Expand Down
Loading
Loading