Skip to content

ci (master): every macOS route lane names a signed size (twin of #2409) - #2415

Merged
davidtai merged 2 commits into
masterfrom
ci/explicit-lane-sizes-master
Nov 20, 2026
Merged

davidtai merged 2 commits into
masterfrom
ci/explicit-lane-sizes-master

Conversation

@davidtai

Copy link
Copy Markdown
Collaborator

Master twin of #2409 (merged into dev as 024ad84). The same five files, cherry-picked cleanly onto master. Reason: d-inference's macOS approval default is now 4x16 (2026-11-20 07:08Z). On master, warm (SDK 27 release prep, which needs 12x32) and desktop-package named no size, so a PR into master would run warm at 4x16. The lane sizes the tests need (test-cluster-1 4x24, test-provider-1 8x16) are in #2407, which is separate.

Done on David's direct order (2026-11-20) from the CI-routing session; the d-inference session (layr-labs-2d) owns this repo's other work.


Summary

David, 2026-11-20: "make sure everything has an assigned size so they don't default to the largest". A Darkbloom route lane is <lane> <profile> <fallback> [count [size [required]]] (.github/workflows/darkbloom-route.yml, unchanged here). A macOS lane without a size gets the approval's pinned macOS size, whatever that is (the 12x32 Mac today). Sizes are sent only while DARKBLOOM_JOB_SHAPES is on. This PR gives every macOS lane in every workflow a signed size, and adds a test that fails on any lane that has none.

Workflow Lane Profile Old size New size Basis
provider-plan.yml 12 test, build, release-check and GPU lanes macOS 4x16 / 4x24 / 8x16 / 12x32 unchanged already sized from sampled memory (build.md, Job sizes). #2398 moves test-cluster-1 and test-provider-1 to 4x24 and is not merged yet; this PR does not touch those lines
desktop.yml desktop-package (dispatch only) macOS none (pinned size) 4x16 60, 86, 87, 92 and 241 s on 12-vCPU Macs (runs 42924473533, 42936208348, 42957727184, 43421451493, 43422901730)
provider-release-cache.yml warm (pull requests only) macOS none (pinned size) 12x32 SDK 27 release p90 1,363 s and qualification p90 2,180 s on 12x32. Both are already over 10 minutes there, so a smaller Mac only makes them longer
ci-master.yml release-integrity, docs Linux none none the route job refuses a size on a Linux lane
desktop.yml frontend Linux none none same
docs-impact.yml commit-signatures, docs-impact Linux none none same
landing.yml check Linux none none same
nightly-linear-package.yml test Linux none none same

Linux lanes cannot take a size. The router's lane parser exits with lane <lane> has a size, but sizes are macOS only. darkbloom-route.yml must stay a copy of the sandbox's route.yml, so a Linux size needs a change in darkbloom-sandbox first. The Linux lanes get the approval's Linux size.

Master. The master-only workflows (ci-master.yml, docs-impact.yml) have Linux lanes only, so they need no change and this PR opens no master twin. The two changed macOS lanes are in desktop.yml and provider-release-cache.yml:

  • provider-release-cache.yml is identical on dev and master. On master its warm lane asks for no Mac (count 0 except on pull requests), so its size matters only on pull requests, which run the PR's own copy of the file.
  • desktop.yml differs between dev and master. Its desktop-package lane runs on a manual dispatch only, and reaches master with the next release PR.

Before

flowchart LR
  A["macOS lane without a size"] --> P["plane: approval's pinned macOS size"]
  B["macOS lane with a size"] --> Q["plane: that size"]
  T["test-darkbloom-route.py"] -.->|"checks provider-plan.yml sizes only"| B
  classDef bad fill:#f8d7da,stroke:#c00,color:#000;
  class A,P bad;
Loading

After

flowchart LR
  B["every macOS lane, every workflow, has a signed size"] --> Q["plane: that size"]
  L["Linux lane, no size (router refuses one)"] --> R["plane: approval's Linux size"]
  T["test-darkbloom-route.py"] -->|"scans every workflow: macOS needs 4x16/4x24/8x16/12x32, Linux none"| B
  classDef good fill:#d4edda,stroke:#080,color:#000;
  class B,Q,T good;
Loading

What changed, per file

  • .github/workflows/desktop.yml: desktop-package ... 4x16.
  • .github/workflows/provider-release-cache.yml: warm ... 12x32.
  • scripts/test-darkbloom-route.py:
    • ROUTED names each lane's size, and the caller check compares it.
    • The new test_every_macos_lane_in_every_workflow_names_a_signed_size reads every workflow's route lanes: blocks and CI (master)'s linux_lanes: input. A macOS lane without a size, or with one outside 4x16, 4x24, 8x16 and 12x32, fails. So does a Linux lane with a size. The test requires exactly 21 lanes, so a lane it cannot parse also fails.
  • docs/developer/build.md (Job sizes): the sizes of the two lanes and why Linux lanes have none.

Cost

While DARKBLOOM_JOB_SHAPES is off, the route sends no size and nothing changes. While it is on, desktop-package uses a 4-vCPU Mac instead of a 12-vCPU one, saving about 8 vCPU-minutes per dispatch. warm still asks for the 12x32 the approval gives today.

Validation

PENDING

Limitations

  • The desktop package time on 4 vCPUs is not measured; the job is dispatch-only. If it slows past 10 minutes, raise the lane to 4x24 or 8x16.
  • The provider plan sizes are kept as measured in build.md. This PR does not re-tune them.

Refactor pass

A refactor reviewer subagent confirmed the router accepts both lines, that the ROUTED and requested_lanes tuples line up with route_lanes, and that the new scan checks exactly 21 lanes. It rewrote the docs and test comments to say "pinned macOS size" (an unsized lane gets the approval's pinned size, not a fixed largest) and to mention that sizes are sent only while DARKBLOOM_JOB_SHAPES is on.

Documentation impact

docs/developer/build.md (Job sizes) is updated. Tests run the same way. This is a CI-only change, so it needs no changelog fragment.

Done on David's direct order (2026-11-20, 'high prioritize the test optimization') from the CI-routing session; the d-inference session (layr-labs-2d) owns this repo's other dev work.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The macOS approval default is now 4x16. On master, SDK 27 release prep's
`warm` lane (two release builds, measured on 12x32) and Desktop App's
`desktop-package` lane named no size, so they would get 4x16. They now
ask for 12x32 and 4x16 as dev does since #2409 (024ad84), and the route
test fails on any macOS lane without a signed size.

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

vercel Bot commented Nov 20, 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 20, 2026 7:41am UTC
darkbloom-status Ready Ready Preview Nov 20, 2026 7:41am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 20, 2026 7:41am UTC

Request Review

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

@jonathan308 jonathan308 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Test approval

@davidtai

Copy link
Copy Markdown
Collaborator Author

@jonathan308 @0xkydo could one of you approve this? It's part of the CI test-optimization work and needs one approval from someone other than the author. CI is green; it's CI/test-only, with no product code.

@davidtai
davidtai merged commit 528fa22 into master Nov 20, 2026
27 checks passed
@davidtai
davidtai deleted the ci/explicit-lane-sizes-master branch November 20, 2026 23:04

This branch was successfully deployed

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

2 participants