Skip to content

ci: per-job macOS sizes for Darkbloom routing, gated by DARKBLOOM_JOB_SHAPES - #1821

Merged
davidtai merged 4 commits into
devfrom
ci/macos-job-shapes
Nov 5, 2026
Merged

davidtai merged 4 commits into
devfrom
ci/macos-job-shapes

Conversation

@davidtai

@davidtai davidtai commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Per-job macOS sizes for the Darkbloom route (approved 2026-11-05, small version). Each macOS lane in CI's one route request can now name a size, <vCPUs>x<GiB>. The route job sends sizes only when the repository variable DARKBLOOM_JOB_SHAPES is exactly on. This PR does not set the variable.

While the variable is off (unset, off, ON, true, ...):

  • the request is byte for byte the request without sizes, and the self-test checks the exact bytes;
  • every job keeps the runner it has today. The 7 test jobs ask as before. The build jobs, Cluster Release Build Checks and Cluster GPU Tests use blacksmith-12vcpu-macos-27 without asking.

Size and lane table

The one place that names lanes and sizes is the route job in .github/workflows/provider-plan.yml. The table is in cap order.

Lane Jobs Size While sizes are off
test-cluster-2 1 4x24 asks without a size
test-cluster-3 1 4x24 asks without a size
test-cluster-focused 2 4x24 asks without a size
test-provider-2 1 4x24 asks without a size
test-cluster-1 1 4x24 asks without a size
test-provider-1 1 4x24 asks without a size
build-cluster 1 12x32 Blacksmith, not asked
build-provider 1 12x32 Blacksmith, not asked
cluster-release-checks 1 12x32 Blacksmith, not asked
test-cluster-gpu 2 12x32 Blacksmith, not asked

With sizes on, a full run asks for 12 macOS jobs; with sizes off, it asks for 7. The 4 new lane names fall back with lane_not_enabled until the approval lists them.

Before / After

Before:

  • The request held only the 7 test jobs, as {lane, profile, count}.
  • A grant had to be exactly [self-hosted, macOS, ARM64, darkbloom-macos-arm64].
  • The build, release-check and GPU jobs had literal runs-on: blacksmith-12vcpu-macos-27.

After, with sizes off:

  • The request bytes do not change.
  • The 4 large jobs read fromJSON(inputs.routes)['<lane>'], which resolves to blacksmith-12vcpu-macos-27.
  • The summary marks each of them fallback: needs its size, and job sizes are off (DARKBLOOM_JOB_SHAPES).

After, with sizes on:

  • Each lane sends "shape":"4x24" or "shape":"12x32".
  • A sized lane takes a grant only when its labels are exactly [self-hosted, macOS, ARM64, darkbloom-macos-arm64-<size>]. The job then runs on that runs_on as the plane sent it. Any other answer keeps the fallback.
  • The plane's reasons (shape_not_signed, unavailable (the plane cannot read its image catalog), unsupported_runner_class, image_not_available, lane_not_enabled, profile_degraded) appear per lane, with the size asked, in the log and the summary.

Route script details:

  • It checks each size against ^[1-9][0-9]*x[1-9][0-9]*$ before it sends a request. A bad size, a size on a Linux lane, or an unknown sixth field is a configuration error.
  • The log prints the exact request body (Request: {...}).
  • A held lane (required while sizes are off) takes no place under DARKBLOOM_MACOS_LANES.
  • With a cap of 8 and sizes on, the cap keeps the 7 test lanes, then build-cluster.

The diagrams are plain text; this PR adds no Mermaid. The existing diagram in docs/developer/build.md does not change.

Hooked up

  • .github/workflows/darkbloom-route.yml: reads vars.DARKBLOOM_JOB_SHAPES (env JOB_SHAPES), parses [count [size [required]]], validates sizes, holds required lanes while off, adds shape to the request only while on, matches sized grants, prints the request body and a Size column.
  • .github/workflows/provider-plan.yml: the route job's lane table gets sizes and 4 new lanes. Its needs is now [tested, components], because the build lanes' counts read needs.tested.outputs.skip, as the build jobs' if does.
  • .github/workflows/provider-tests.yml: build-cluster, build-provider, cluster-release-checks and test-cluster-gpu run on fromJSON(inputs.routes)['<lane>'].
  • Tests:
    • scripts/test-darkbloom-route.py covers both switch states against a loopback plane. Off is pinned to exact request bytes. It also covers sized-label matching, bad sizes, the cap order with sizes on and off, and plan counts derived from each job's if.
    • scripts/test-provider-ci-workflow.py, scripts/test-cluster-test-plan.py and scripts/test-ci-component-paths.py are updated for the new lane lines and runs-on.
  • Docs: docs/developer/build.md (new "Job sizes" section and the lane table), docs/developer/test.md, changelog.d/ci-macos-job-sizes.md.
  • Not touched: the repository variables, darkbloom-sandbox, master.

Validation

  • No local runs (laptop rule). The PR's CI runs with DARKBLOOM_JOB_SHAPES unset. Its gate job runs the self-tests (Check the CI plans), and the route job's log shows the request body.

Refactor pass

Pending: the coordinator runs the required refactor pass after this PR is opened.

🤖 Generated with Claude Code

davidtai and others added 2 commits November 5, 2026 12:03
…_SHAPES

Each macOS lane of CI's one route request can name a size, <vCPUs>x<GiB>.
The route job checks every size against the plane's grammar and fails on a
bad value before it sends anything. Sizes are sent only when the repository
variable DARKBLOOM_JOB_SHAPES is exactly `on`. While it is off, the request is
byte for byte the request without sizes and every job keeps its runner.

The lane table in provider-plan.yml is the one place that names each job's
lane and size. While sizes are on, the 7 blocking test jobs ask for 4x24, and
build-cluster, build-provider, cluster-release-checks and test-cluster-gpu
(count 2) ask for 12x32. These four are `required`: while sizes are off they
keep blacksmith-12vcpu-macos-27 without asking and take no place under the
DARKBLOOM_MACOS_LANES cap. The test lanes stay first in cap order.

A sized lane uses a grant only when its labels end in the qualified label
(darkbloom-macos-arm64-4x24); the job runs on that runs_on as sent. The route
log and summary show the size asked and each decision with its reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The log now shows the exact request the route job sends, so a run proves
what it asked for: no size while DARKBLOOM_JOB_SHAPES is off, each lane's
size while it is on. The self-test pins the line to the request bytes.

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

This comment has been minimized.

The plane falls back with `unavailable` when it cannot read its image
catalog. The route job already logs any plane reason per lane with the size
asked; the self-test now covers `unavailable` beside the other reasons, and
the docs and changelog name it.

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

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

Request Review

- darkbloom-route.yml: give every lane record an explicit `held: false`,
  so the record's fields are named in one place; call the held lane a
  `required` lane in the header, as the `lanes` input does.
- test-darkbloom-route.py: lane_jobs reads a count through evaluate_counts
  instead of a second copy of the count pattern.
- build.md: say that a 12x32 job keeps its fallback without asking while
  job sizes are off; reflow a short line.

No change to the request bytes, the routes or the summary.

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

This comment has been minimized.

This branch had an error being deployed

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