Skip to content

ci(release): make release SDK builds hermetic (skip cross-run caches) - #1267

Open
Nathan Lu (NathanL15) wants to merge 1 commit into
qualcomm:mainfrom
NathanL15:ci/hermetic-release-builds
Open

ci(release): make release SDK builds hermetic (skip cross-run caches)#1267
Nathan Lu (NathanL15) wants to merge 1 commit into
qualcomm:mainfrom
NathanL15:ci/hermetic-release-builds

Conversation

@NathanL15

@NathanL15 Nathan Lu (NathanL15) commented Jul 31, 2026

Copy link
Copy Markdown

Adds a hermetic input to _build-sdk.yml that skips the three cross-run cache restores (ccache, cargo target, CMake build tree), and sets it for the build-sdk call in release.yml. Defaults to false, so PR/branch builds and every other caller keep their caches; only release artifacts pay the clean-build cost (one ~30–60 min build per release, inside the job's 120-minute timeout).

Rationale: shipped artifacts shouldn't depend on cross-run mutable state. The cargo-target cache comment in this file already records one stale-artifact incident in this pipeline; a hermetic release build removes that entire class for the binaries users install, whatever the mechanism of any individual incident.

Scope note, to be upfront: I verified that actions/cache extracts with archived mtimes (no -m), so ninja's staleness detection should normally be sound — this is defense-in-depth for releases, not a fix for a demonstrated bug, and it is independent of #1266 (which it came out of investigating). If you consider the current caches sufficient, closing this is a reasonable call.

Release artifacts should not depend on cross-run mutable caches
(ccache, cargo target, restored ninja tree); the cargo cache comment in
this file records one stale-artifact incident already. hermetic
defaults to false, so only the release build pays the clean-build cost.

Signed-off-by: Nathan Lu <lunathan2005@gmail.com>
@NathanL15
Nathan Lu (NathanL15) force-pushed the ci/hermetic-release-builds branch from c7a9ea8 to f7a5e14 Compare July 31, 2026 22:59
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.

1 participant