Repository navigation
CI and tests: port dev's CI and test changes to master (#1951, #1955, #1981, #1986, #1987, #1988, #1990); supersedes #1960 - #2000
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Threat model review — advisoryReviewed head 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. 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. |
Ports
dev's CI and test changes since master's last sync, and nothing else, ontomaster(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)
devmasterprovider-swift/Package.swift?? "dev"(plain builds talk to DevNet; from52079c011)?? "prod"provider-swift/Tests/ProviderCoreTests/Config/BuildEnvironmentTests.swiftdevBranchBuildsDefaultToDevNet,?? "dev"plainBuildsTakeTheBranchDefault,?? "prod"docs/developer/test.mdprovider-swift/Sources/ProviderCore/ProviderCore.swiftalso differs (dev0.10.10,master0.10.11). It is release identity, not CI, and is not touched. No line in this diff is DevNet- or dev-coordinator-specific. The onedevmention is a fact in #1981's changelog fragment (dev pushes saved.gitto therefs/heads/devcache scope).Sync point
master's lastdev→mastersquash is #1859 (49e9a4c1de), which tookdevat12c88dfa7b(#1930). #1837 was the sync before it. On every CI and test path (.github,scripts,docs,Tests/),masterequals12c88dfa7b, except the release preparation'sdocs/operations/provider-release.mdtext and the prod-defaultBuildEnvironmentTests.swift.#1885, #1886, #1917, #1919, #1924 and #1925 are ancestors of
12c88dfa7b, so they are already onmasterthrough #1859.Dev merges since the sync point
devmerge0f11fbe01alibs/darkbloom-cluster/Sources,libs/darkbloom-cluster-worker/Sourcesandprovider-swift/Sources). Its tests need that code. Itstest.mdsection documents a dev-only fault file.2474f3dcce086dd0615d2588e7f237723ce1da31.git.844b76dcdd0f847c6718): gate desktop-package's npm cache.732904f208CBv2PagedVerifyBench.swiftbounds MLX's buffer cache).420a5123c4BoundedBufferCachetest trait.#1983 is open (not merged) and is not included.
How
Each in-scope merge is cherry-picked with
-m 1as one signed commit, indev's order. Conflicts were resolved as follows:changelog.d/ci-macos-job-sizes.mdwas consumed intoCHANGELOG.mdonmasterby Prepare provider 0.10.11 #1938. The commit adds CI (master): route the build lanes and Cluster Release Build Checks to Darkbloom while job sizes are off (port of #1951) #1960's new fragmentchangelog.d/ci-build-lanes-routed.mdinstead.docs/operations/provider-release.mdanddocs/developer/test.mdconflicted; both take 2026-11-10.Files that differ from
devon purposeEvery other file this PR touches is byte-identical to
origin/dev(420a5123c4).changelog.d/ci-build-lanes-routed.mdmaster: it replaces #1951's edit of a fragment thatmasteralready rendered intoCHANGELOG.md(same text as #1960).docs/developer/test.mddocs/operations/provider-release.mdmaster'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
masterwithout 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
.githubfiles now equaldev's. Before this PR they equalled12c88dfa7b's, so the only changes toci-master.yml, the release workflows,provider-release-cache.ymland the watchdog are those of the ported PRs.ci-dev-hourly.ymlis unchanged..github/actions/provider-release-build/**is one ofrelease-swift.yml'smasterpush paths, so the merge push starts its staging lane (gated by theSTAGING_ENABLEDvariable), 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.ymlscripts/:test-darkbloom-route.py,test-provider-ci-workflow.py,test-cluster-test-plan.pylibs/darkbloom-cluster/Tests/DarkbloomClusterRuntimeTests/:BoundedBufferCache.swift(used by 7 suites),CBv2PagedVerifyBench.swiftdocs/developer/build.md,test.md,desktop-app.md;docs/operations/provider-release.mdchangelog.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.mdCI
Pending: the first run on this head.
The refactor review (a separate subagent, by reading only) passed. It found no product source, no
Package.swiftor version change and no dev-only line, and each ported test's symbols exist onmaster. One shared nit is left byte-identical todev:changelog.d/ci-gpu-shards-darkbloom.mdsays "15 macOS jobs instead of 14", whilemaster's previous note says 12.Do not merge without David's order for this PR and a teammate's approval.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.