Skip to content

CI and tests: port dev's CI and test changes to master (#1951, #1955, #1981, #1986, #1987, #1988, #1990); supersedes #1960 - #2000

Merged
davidtai merged 7 commits into
masterfrom
ci/port-dev-tests-master
Nov 11, 2026
Merged

davidtai merged 7 commits into
masterfrom
ci/port-dev-tests-master

Conversation

@davidtai

@davidtai davidtai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Ports dev's CI and test changes since master's last sync, and nothing else, onto master (David, 2026-11-11: "pr all the test changes into main").

Supersedes #1960 (master port of #1951): its commit is folded in here unchanged, and this PR's first commit has the same tree as #1960's head 429d1bf912. It also supersedes #1982 (master port of #1981). Neither is closed by this PR.

Dev-only lines found (none ported)

File Line on dev On master
provider-swift/Package.swift ?? "dev" (plain builds talk to DevNet; from 52079c011) keeps ?? "prod"
provider-swift/Tests/ProviderCoreTests/Config/BuildEnvironmentTests.swift devBranchBuildsDefaultToDevNet, ?? "dev" keeps plainBuildsTakeTheBranchDefault, ?? "prod"
docs/developer/test.md #1932's section "A memory refusal on a real pair (dev memory fault)", a fault file that only dev and DevNet installs read not ported

provider-swift/Sources/ProviderCore/ProviderCore.swift also differs (dev 0.10.10, master 0.10.11). It is release identity, not CI, and is not touched. No line in this diff is DevNet- or dev-coordinator-specific. The one dev mention is a fact in #1981's changelog fragment (dev pushes saved .git to the refs/heads/dev cache scope).

Sync point

master's last dev → master squash is #1859 (49e9a4c1de), which took dev at 12c88dfa7b (#1930). #1837 was the sync before it. On every CI and test path (.github, scripts, docs, Tests/), master equals 12c88dfa7b, except the release preparation's docs/operations/provider-release.md text and the prod-default BuildEnvironmentTests.swift.

#1885, #1886, #1917, #1919, #1924 and #1925 are ancestors of 12c88dfa7b, so they are already on master through #1859.

Dev merges since the sync point

PR dev merge Class Reason
#1932 0f11fbe01a out Runtime change (pipeline-stage request abort across libs/darkbloom-cluster/Sources, libs/darkbloom-cluster-worker/Sources and provider-swift/Sources). Its tests need that code. Its test.md section documents a dev-only fault file.
#1951 2474f3dcce in CI only: build lanes route while job sizes are off.
#1955 086dd0615d in CI only: GPU shards 1 and 3 ask Darkbloom first.
#1986 2588e7f237 in CI only: route desktop-package.
#1981 723ce1da31 in CI only: no GitHub Actions cache on a Darkbloom runner without the Darkbloom cache; refuse an unsafe cached .git.
#1990 844b76dcdd in CI only (0f847c6718): gate desktop-package's npm cache.
#1987 732904f208 in CI and a test-only benchmark: GPU shard 2 memory (CBv2PagedVerifyBench.swift bounds MLX's buffer cache).
#1988 420a5123c4 in CI and test-only helpers: right-size jobs, BoundedBufferCache test trait.

#1983 is open (not merged) and is not included.

How

Each in-scope merge is cherry-picked with -m 1 as one signed commit, in dev's order. Conflicts were resolved as follows:

Files that differ from dev on purpose

Every other file this PR touches is byte-identical to origin/dev (420a5123c4).

File Why
changelog.d/ci-build-lanes-routed.md Only on master: it replaces #1951's edit of a fragment that master already rendered into CHANGELOG.md (same text as #1960).
docs/developer/test.md Has no #1932 section (runtime change, dev-only fault file).
docs/operations/provider-release.md Keeps master's 0.10.11 release-preparation text, plus #1981's hunk.

Tests left out

All are from #1932. They test its runtime changes and do not compile or pass on master without them:

  • libs/darkbloom-cluster/Tests/DarkbloomClusterRuntimeTests/PipelineStageAbortTests.swift, TensorParallelMemoryAbortTests.swift (new);
  • GLM5NextPipelineGenerationTests.swift, GLM5NextTensorParallelLaneTests.swift, IndependentHistoryBatchDriverTestSupport.swift, MiMoBatchDriverTests.swift, QwenBatchCancellationTests.swift, QwenTensorParallelBatchDriverTests.swift;
  • libs/darkbloom-cluster/Tests/DarkbloomClusterRemoteTests/ClusterOwnerLeaseStateTests.swift;
  • libs/darkbloom-cluster/Tests/ProcessChecks/FakeClusterWorker.swift, PartialAdmissionTests.swift, ProviderPipeContractTests.swift; Tests/ProtocolChecks/ClusterWorkerProtocolTests.swift;
  • libs/darkbloom-cluster-worker/Tests/DarkbloomClusterWorkerTests/WorkerLaneTestSupport.swift, WorkerLaneTests.swift, WorkerTests.swift;
  • provider-swift/Tests/ProviderCoreTests/Inference/Engine/InferenceFailurePrivacyTests.swift, Server/Distributed/DistributedHTTPCompletionTests.swift.

Also left out: BuildEnvironmentTests.swift (dev-only default, above).

Master's workflows

All .github files now equal dev's. Before this PR they equalled 12c88dfa7b's, so the only changes to ci-master.yml, the release workflows, provider-release-cache.yml and the watchdog are those of the ported PRs. ci-dev-hourly.yml is unchanged.

.github/actions/provider-release-build/** is one of release-swift.yml's master push paths, so the merge push starts its staging lane (gated by the STAGING_ENABLED variable), as #1982 noted.

Hooked up

  • .github/workflows/: ci-master.yml, desktop.yml, landing.yml, provider-plan.yml, provider-release-cache.yml, provider-tests.yml
  • .github/actions/: provider-ci-build/action.yml, provider-release-build/action.yml
  • scripts/: test-darkbloom-route.py, test-provider-ci-workflow.py, test-cluster-test-plan.py
  • libs/darkbloom-cluster/Tests/DarkbloomClusterRuntimeTests/: BoundedBufferCache.swift (used by 7 suites), CBv2PagedVerifyBench.swift
  • docs/developer/build.md, test.md, desktop-app.md; docs/operations/provider-release.md
  • changelog.d/: ci-build-lanes-routed.md, ci-darkbloom-no-github-cache.md, ci-gpu-shards-darkbloom.md, ci-right-size-jobs.md, ci-route-desktop-package.md

CI

Pending: the first run on this head.

The refactor review (a separate subagent, by reading only) passed. It found no product source, no Package.swift or version change and no dev-only line, and each ported test's symbols exist on master. One shared nit is left byte-identical to dev: changelog.d/ci-gpu-shards-darkbloom.md says "15 macOS jobs instead of 14", while master's previous note says 12.

Do not merge without David's order for this PR and a teammate's approval.

🤖 Generated with Claude Code


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

davidtai and others added 7 commits November 10, 2026 21:24
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>
Cherry-pick of dev's merge 086dd06 (-m 1).

(cherry picked from commit 086dd06)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cherry-pick of dev's merge 2588e7f (-m 1).

(cherry picked from commit 2588e7f)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er 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>
Cherry-pick of dev's merge 844b76d (-m 1).

(cherry picked from commit 844b76d)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Cherry-pick of dev's merge 420a512 (-m 1).

(cherry picked from commit 420a512)

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

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

Request Review

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head 63663d1e2ecc against base 34c4a10d86aa.

Reviewers: anthropic/claude-sonnet-5.5: first pass completed; anthropic/claude-opus-5.5: selected depth completed (2 batches); openai/gpt-6.1-sol: selected depth completed (6 batches)

LOW: Restored-.git sanitizer is a denylist; other config keys can still execute code during checkout

.github/workflows/provider-tests.yml:1079 · new attack surface

The new step discards a cached .git only if it has a symlink, a non-sample hook, or a config setting core.fsmonitor, core.hooksPath, include.* or includeIf.*. It says the restored .git "runs nothing", but the check is incomplete. Config keys such as filter.<name>.smudge/clean/process (paired with a .git/info/attributes file, which is not inspected), core.sshCommand, core.pager, core.askpass, credential.helper, diff.external, gpg.program, alias.* and uploadpack.packObjectsHook can still run commands or redirect git. The following actions/checkout and git operations read that config. A poisoned cache entry, for example one from a compromised push to master or dev, which are the only refs that save .git, could still get code execution on the runner. Fix: validate .git against an allowlist of expected config keys, or delete everything in .git/config except a minimal set (remote and core basics), and reject .git/info/attributes. Alternatively, restore only the objects and packs and regenerate config and hooks.

Raised by: anthropic/claude-sonnet-5.5

LOW: Restored-.git sanitizer is a denylist; other config keys can still run code during checkout

.github/workflows/provider-tests.yml:1079 · new attack surface

The new 'Discard a damaged or unsafe cached .git' step (also replayed in ci-master.yml) rejects a restored .git only if it has a symlink, a non-sample hook, or a config setting core.fsmonitor, core.hooksPath or include/includeIf. The comment claims the restored .git 'runs nothing', but the check is incomplete. Keys such as filter.<name>.smudge/clean/process (paired with an uninspected .git/info/attributes), core.sshCommand, core.pager, core.askpass, credential.helper, diff.external, gpg.program, alias.* and uploadpack.packObjectsHook can still execute commands or redirect git when the following checkout and git steps read that config. A poisoned cache entry, for example one saved from a compromised push to master or dev, could then run code on the runner. This is residual hardening incompleteness, not a regression versus base, which only ran fsck. Fix: allowlist expected config keys, or rewrite .git/config to a minimal set, reject .git/info/attributes, or restore only objects and packs.

Raised by: anthropic/claude-sonnet-5.5

Models: budgeted Sonnet / selective Opus / selective Sol 6.1. Findings require human validation; this review never requests changes or blocks merging.

Scan completed; human review required.
Cross-file reviewer requests further review; independent human review required; Final reviewer requests further review; independent human review required

Coverage: 148/148 source units; cross-file integration complete. 0 selected depth batch(es) pending. All threat definitions indexed; relevant full definitions selected. Unchanged callers are not scanned.

Cost this run: $0.0000 reported, $0.0000 reserved with unknown cost; 0 paid request(s), 3 reused batch(es), 0 provider cache-hit tokens.

Saved findings and earlier report · Historical findings are not confirmed resolved.

Bedrock: 38 request(s), 1671268 uncached + 0 cache-read + 193841 cache-write input / 30958 output tokens; 0 request(s) with unknown usage. OpenRouter backup used 0 time(s). Dollar amounts above cover OpenRouter only; AWS billing is reconciled separately.
Workload allowance: 42 native request(s), including one shared response repair; 500 emergency ceiling. Selected depth and integration rounds are admitted as their scope becomes known.

This branch was successfully deployed

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

3 participants