Repository navigation
Conversation
…ache On a Darkbloom Sandbox that the plane gave no Darkbloom cache, the guest sets no DARKBLOOM_CACHE_URL and actions/cache reads and writes GitHub's own Actions cache through the gateway. Job 127018716621 (master push, 2026-11-05) saved .git, a 1.69 GiB Swift build, the SwiftPM repositories and a Metal library to refs/heads/master; dev pushes on 11-07 and 11-09 saved .git to refs/heads/dev. Each routed job that uses a cache now first runs "Choose this job's Actions cache", which sets CI_ACTIONS_CACHE=off on a runner named darkbloom-* without DARKBLOOM_CACHE_URL. Every actions/cache step under .github starts its condition with env.CI_ACTIONS_CACHE != 'off', and the routed setup-node steps get cache ''. Blacksmith, GitHub-hosted and cache-enabled Darkbloom jobs, and the Blacksmith-only release workflows, keep their caches. The .git discard step now also refuses a restored .git that is not a directory, holds a symbolic link or a hook other than *.sample (also in .git/modules), or whose config sets core.fsmonitor, core.hooksPath or an include, before any git command reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…outed 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 (1 batches); openai/gpt-6.1-sol: selected depth completed (6 batches) No actionable findings in the reviewed text. This is not a security approval. 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: 61/61 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), 15 reused batch(es), 0 provider cache-hit tokens. Saved findings and earlier report · Historical findings are not confirmed resolved. Bedrock: 7 request(s), 258331 uncached + 0 cache-read + 54850 cache-write input / 5519 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. |
…ps the release build's cache steps Docs Impact maps .github/actions/provider-release-build and provider-release-cache.yml to docs/operations/provider-release.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Gajesh2007 please review this PR and #1960. |
…1981, #1986, #1987, #1988, #1990); supersedes #1960 (#2000) * ci: port #1951 to master (route the build lanes while job sizes are off) 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> * ci: port #1955 to master (GPU shards ask Darkbloom first) Cherry-pick of dev's merge 086dd06 (-m 1). (cherry picked from commit 086dd06) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1986 to master (route desktop-package) Cherry-pick of dev's merge 2588e7f (-m 1). (cherry picked from commit 2588e7f) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1981 to master (no GitHub Actions cache on a Darkbloom runner 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> * ci: port #1990 to master (gate desktop-package's npm cache) Cherry-pick of dev's merge 844b76d (-m 1). (cherry picked from commit 844b76d) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1987 to master (GPU shard 2 memory) 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> * ci: port #1988 to master (right-size jobs; BoundedBufferCache) Cherry-pick of dev's merge 420a512 (-m 1). (cherry picked from commit 420a512) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com>
|
Closing as superseded: master already carries this whole change through #2000 (merged 2026-11-11, which ported #1981), and it's still there after #2400 and #2415. The only remaining difference is changelog.d/ci-darkbloom-no-github-cache.md, whose entry is already released in CHANGELOG.md, so merging would duplicate it. |
Port of #1981 to
master: the same two commits, cherry-picked without conflicts. Onmaster, Cluster GPU Tests runs onblacksmith-12vcpu-macos-27without asking the plane. It still runs the step, which sets nothing there. The changelog fragment is new onmaster.What leaks
When the plane gives a Darkbloom Sandbox job no Darkbloom cache, the guest's job cache does not start (darkbloom-sandbox
crates/guest/src/cache/job.rs,JobCache::enablereturnsNone). The guest then adds none of its cache variables (NODE_OPTIONS=--require=<preload>,DARKBLOOM_CACHE_URL,DARKBLOOM_CACHE_UPSTREAM) to the runner's environment (runtime/mod.rs,workload_env).actions/cachethen reads and writes GitHub's own Actions cache through the gateway.Evidence:
.git, a 1.69 GiB Swift build, the SwiftPM repositories and a Metal library to GitHub'srefs/heads/masterscope..gittorefs/heads/dev..gitwas checked only withgit fsck --connectivity-only, so a hook in a cached.gitcould run at checkout.How a job detects Darkbloom without the cache
Each routed job that uses a cache now runs
Choose this job's Actions cachebefore its first cache step:darkbloom-*(Blacksmith, GitHub-hosted): nothing is set, and the job keeps its cache.darkbloom-*(the plane names every runnerdarkbloom-<id>,crates/core/src/runner/mod.rs) andDARKBLOOM_CACHE_URLset: the job keeps the plane's per-host cache. The step logs the URL.darkbloom-*and noDARKBLOOM_CACHE_URL: the step writesCI_ACTIONS_CACHE=offto$GITHUB_ENVand logs a notice.Every
actions/cache,actions/cache/restoreandactions/cache/savestep under.githubstarts its condition withenv.CI_ACTIONS_CACHE != 'off'. The routedactions/setup-nodesteps getcache: ${{ env.CI_ACTIONS_CACHE != 'off' && 'npm' || '' }}. When the flag is unset, the cache steps run, so the Blacksmith-only release workflows are unchanged and not edited.The .git restore
The discard step (renamed
Discard a damaged or unsafe cached .git) now deletes a restored.git, before any git command reads it, if:gitdir:file or a link);*.sample, in.git/hooksor in a submodule's.git/modules/*/hooks(names compared without case, as on macOS);.gitsetscore.fsmonitororcore.hooksPath, or has anincludeorincludeIf.It reads these with
findandgit config --file, which run nothing. The fsck check follows as before. This applies on every runner, Blacksmith too.Hooked up
provider-tests.yml: all 7 cached jobs (build-cluster, build-provider, test-provider, test-cluster, test-cluster-gpu, cluster-release-checks, test-cluster-focused) run the step first, and all 22 cache steps are gated..github/actions/provider-ci-build: 6 cache steps gated (the flag comes from the calling job).ci-master.yml: Release Integrity and Docs Lint (Linux routed lanes) run the step, and their 4 cache steps are gated.provider-release-cache.ymlwarm(Darkbloom on pull requests) runs the step..github/actions/provider-release-buildhas its 6 cache steps gated. The release workflows that also use this action never set the flag, so their caches do not change.desktop.ymlfrontendandlanding.ymlcheck(Linux routed lanes) run the step, and their npm cache is gated.desktop.ymlreview-packagestays on Blacksmith and is not changed.scripts/test-provider-ci-workflow.py: a new test checks that every cache step in every workflow and action is gated. It also checks that every routed job with a cache runs the step before its first cache step, and that a job with a literal label never runs on Darkbloom. It runs the step's script with each kind of runner. The.gitvalidation test adds a case for each unsafe kind of.gitand a kept*.samplehook. The tests that compare exact conditions and step positions were adapted. No test was deleted.docs/developer/build.md(CI Caching, and the routing paragraph) andchangelog.d/ci-darkbloom-no-github-cache.md.Notes
.gitchecks close the hook path. They do not make a poisoned cache entry safe:actions/cacheunpacks an archive it did not write. Only keeping untrusted hosts out of trusted scopes closes that, which this change does for Darkbloom without the cache..github/actions/provider-release-build/**is one ofrelease-swift.yml'smasterpush paths, so the merge push starts its staging lane (gated by theSTAGING_ENABLEDvariable).provider-tests.yml,build.md, both workflow tests), ci(models): Model Requant Upload: re-quantize a revision on a runner, verify byte for byte, upload with the repo's R2 secrets (no promotion) [dev twin of #1976] #1975/ci(models): Model Requant Upload: re-quantize a revision on a runner, verify byte for byte, upload with the repo's R2 secrets (no promotion) [master] #1976 (ci-master.yml,test-darkbloom-route.py), feat(cluster): 0.10.12 — pair-check compares each tensor-parallel lane's logprobs with its request alone #1940 and test, ci, docs: 0.10.12 — D6's review follow-up: the encrypted link, the worker tests in CI, the docs (on #1934) #1935 (provider-tests.yml,test-provider-ci-workflow.py), feat(provider): 0.10.13 — reuse scoped Gemma image features in bounded RAM, off by default (port of fork #13; ships with platform #609) #1947 (build.md), Sync master (#1735, #1752, provider 0.10.7) and #1771 into dev #1773 (sync), and the release candidates DO NOT MERGE: 0.10.12 candidate (b) #1958/perf(provider): Nemotron 3.5 Lightning serves plain decode under auto (0.10.12; stacked on #1970) #1969/Release preparation: provider 0.10.12 into dev #1970 (DO NOT MERGE).🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.