Repository navigation
ci(027): cache dependencies of the native bindings jobs per platform - #573
Conversation
AI review (no-findings)Looking at the two changed files:
The cache restore step (unconditional, all platforms) and the matching save step are consistent with each other and use a pinned action SHA The The unquoted The updated trigger condition -- adding The The The
The revision entry is explicitly marked "(CI only, no claim of this spec changes)" and is appended to the existing revision history section. No lifecycle fields ( No concrete defects found. {"head": "6f9c8717d1aec947d3296aa7a1545669e996c746", "verdict": "no-findings", "findings": []}Subject: 59cc7c3...6f9c871, diff digest 9cd29a51fde3f436c375356eca7501bb5d7e41eb8dd6a8a2a7a51661bef543f7, 1 call(s). An AI comment is not an approval. |
6f9c871 to
1d14740
Compare
AI review (findings)Reviewing the two changed files against governance context and for correctness and security issues.
The change adds a dependency cache restore/save cycle for darwin and win32 platform legs of the
One governance process point: AGENTS.md states that any change under
The revision note correctly labels itself "(CI only, no claim of this spec changes)" and adds a purely documentary entry. No lifecycle fields ( No other defects found. {"head": "1d147407371f1e41d585a5dc17225e7c6fc540b7", "verdict": "findings", "findings": [{"path": ".github/workflows/bindings.yml", "line": null, "severity": "low", "category": "authority", "summary": "AGENTS.md requires owner approval of the statecraft-review-exception Environment for any change under .github/workflows/; this review cannot verify that act was performed for this workflow change."}]}Subject: 59cc7c3...1d14740, diff digest e1445c7fd10d006c3b7b8eb87880e1ccce0855d64967d39c4f11066ac21521e7, 1 call(s). An AI comment is not an approval. |
Summary
Spec 027 (CI only, no claim of the spec changes). The darwin-arm64, darwin-x64 and win32-x64-msvc legs of
native ${{ matrix.platform }}inbindings.ymleach restore a dependency cache of their own; nothing built or tested changes, and the four Linux legs are unchanged frommain.~/.cargo/registry/index,~/.cargo/registry/cache,~/.cargo/gitandtarget/releasewith the workspace crates' artifacts dropped (Cargo rebuilds them after any checkout, as the wasm and node jobs already note).bindings-native-<platform>-<runner>-node-fp-corpus-local-embed-<hashFiles(Cargo.lock, rust-toolchain.toml)>. Norestore-keys, so an entry is used only by its own platform, runner, lockfile and toolchain; Cargo's fingerprints still judge every artifact.main(merge-queue and pull-request saves are readable by nothing else).scope's post-merge rule also runs the bindings jobs onmainwhenbindings.ymlitself changes, so a change to what the caches hold (including this one) seeds them. The wasm and node jobs then hit their existing entries and save nothing.Measurements (before)
Merge-queue runs of #567 (42511840610) and #565 (42452908883), native job seconds:
Cargo's three builds take 90 to 96 per cent of each job. The dependency phase (until the last dependency crate starts compiling) bounds the saving; the workspace crates compile one after another and still rebuild every run. The node jobs, which already restore dependencies, built
rustev-nodein 4 min 41 s against 4 min 13 s uncached on linux-x64-gnu, so on Linux the expected saving is small; on macOS and Windows up to about 5 to 7 minutes per job.Cache budget
Before this change: 12.1 GB active against GitHub's 10 GB repository limit, all on
refs/heads/main(largest: verify-cli-repeat 2.4 GB, semver 2.1 GB, verify-integrations-base 1.9 GB). The three new entries add an estimated 0.6 to 1.2 GB (the node job's single-feature entry is 197 MB); GitHub evicts the least recently used.How the change is exercised
A pull request's own run leaves out every
bindings.ymljob (spec 027's 2026-11-05 record), so this PR's run does not run the native jobs. The merge-queue entry runs all seven (the three cached legs miss, since no entry exists yet); the push tomainthen runs them again (the workflow changed), and the three cached legs drop workspace artifacts and save their entries; later queue entries restore them.Checks
actionlint .github/workflows/bindings.yml: clean.make refresh,make gate: pass.Review note
The AI review's one finding on 1d14740 (low, authority) says it cannot verify the owner's approval of the
statecraft-review-exceptionEnvironment for this workflow change. That approval is the run's ownreview-exceptionjob, which ci-gate requires; it is not a defect in the diff.