Repository navigation
ci: per-job macOS sizes for Darkbloom routing, gated by DARKBLOOM_JOB_SHAPES - #1821
Merged
Merged
Conversation
…_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>
This comment has been minimized.
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 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>
This comment has been minimized.
This comment has been minimized.
This was referenced Nov 5, 2026
11 tasks
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 variableDARKBLOOM_JOB_SHAPESis exactlyon. This PR does not set the variable.While the variable is off (unset,
off,ON,true, ...):blacksmith-12vcpu-macos-27without asking.Size and lane table
The one place that names lanes and sizes is the
routejob in.github/workflows/provider-plan.yml. The table is in cap order.test-cluster-2test-cluster-3test-cluster-focusedtest-provider-2test-cluster-1test-provider-1build-clusterbuild-providercluster-release-checkstest-cluster-gpuWith 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_enableduntil the approval lists them.Before / After
Before:
{lane, profile, count}.[self-hosted, macOS, ARM64, darkbloom-macos-arm64].runs-on: blacksmith-12vcpu-macos-27.After, with sizes off:
fromJSON(inputs.routes)['<lane>'], which resolves toblacksmith-12vcpu-macos-27.fallback: needs its size, and job sizes are off (DARKBLOOM_JOB_SHAPES).After, with sizes on:
"shape":"4x24"or"shape":"12x32".[self-hosted, macOS, ARM64, darkbloom-macos-arm64-<size>]. The job then runs on thatruns_onas the plane sent it. Any other answer keeps the fallback.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:
^[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.Request: {...}).requiredwhile sizes are off) takes no place underDARKBLOOM_MACOS_LANES.build-cluster.The diagrams are plain text; this PR adds no Mermaid. The existing diagram in
docs/developer/build.mddoes not change.Hooked up
.github/workflows/darkbloom-route.yml: readsvars.DARKBLOOM_JOB_SHAPES(envJOB_SHAPES), parses[count [size [required]]], validates sizes, holdsrequiredlanes while off, addsshapeto the request only while on, matches sized grants, prints the request body and a Size column..github/workflows/provider-plan.yml: theroutejob's lane table gets sizes and 4 new lanes. Itsneedsis now[tested, components], because the build lanes' counts readneeds.tested.outputs.skip, as the build jobs'ifdoes..github/workflows/provider-tests.yml:build-cluster,build-provider,cluster-release-checksandtest-cluster-gpurun onfromJSON(inputs.routes)['<lane>'].scripts/test-darkbloom-route.pycovers 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'sif.scripts/test-provider-ci-workflow.py,scripts/test-cluster-test-plan.pyandscripts/test-ci-component-paths.pyare updated for the new lane lines and runs-on.docs/developer/build.md(new "Job sizes" section and the lane table),docs/developer/test.md,changelog.d/ci-macos-job-sizes.md.master.Validation
DARKBLOOM_JOB_SHAPESunset. 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