Skip to content

ci: prepare verified native cache archive transport - #1764

Merged
zackees merged 34 commits into
masterfrom
infra/1269-native-cache-transport
Oct 22, 2026
Merged

zackees merged 34 commits into
masterfrom
infra/1269-native-cache-transport

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Refs #1269 under #1667. Default-off experiment. Native archive qualification passed; hosted transport and production backend adoption remain pending.

Implementation

  • Deterministic bounded archives with compiler/SDK/configuration identity, digest checks, complete validation before remote mutation, exclusive restoration and cleanup.
  • Immutable archive-then-manifest publication, two complete generations, bounded abandoned uploads and read-only fallback. External ceiling: 6 GiB per native axis, 24 GiB overall; this is separate from Actions cache capacity.
  • GitHub cache-only prereleases, explicit job-token writers, never-latest publication and bounded credential-free public downloads.
  • Native environment identity capture plus publisher, read-only consumer and local verification commands with timing reports.
  • Manual, default-off qualification in existing workflows. Successful native builds verify real archives locally. Separate serialized publishers require a successful master dispatch, matching runner identity and exact same-SHA Actions seeds. The read-only round trip must consume that SHA; ordinary consumers retain older/cold fallback.

App-build tokens remain read-only. CI Gate includes the optional publisher, skipped on PRs, merge groups and branch dispatches. Existing coverage, cache correctness and save policies remain. No new workflow files or costly ordinary PR lanes. No actual cache release/tag/asset or production backend switch has occurred.

Validation

Separate RED/GREEN regressions cover archive boundaries, failed promotion, retries/orphans, malformed manifests, command trust, local verification and workflow scope. Sixty focused policy/transport checks passed after rebase. Full lint passed in 76.2 seconds before the documentation-only batch. One primary reviewer: clean.

Native qualification run 39752689352 completed successfully at 121236fc3: 22 successful jobs and eight explicit skips. All four native app/identity/archive checks passed, together with full validation.

  • Linux Tier 2 OFF/ON: 356 executed and four Pulse skips per mode.
  • Windows Tier 2: four CMake/Cargo C/Rust suites, 178 tests each, passed.
  • macOS Tier 2: four suites, 203 registered and 202 executed with one SVT skip each.
Axis Gzip archive Packing Total local verification
Windows x64 1057.1 MB 44.4 s 51.4 s
Windows ARM64 895.5 MB 25.6 s 31.75 s
macOS x86_64 737.4 MB 29.4 s 37.1 s
macOS ARM64 845.1 MB 36.1 s 44.2 s

Both Windows builds and macOS x86_64 started without an Actions seed. macOS ARM64 restored an Actions seed and reported 464/660 cacheable tasks hitting. These describe builds before archive verification, not reuse through release transport. Publication was skipped by the branch guard.

Evidence: docs/ci-evidence/2026-10-22-native-cache-transport.md and the compressed qualification bundle, preserving exact artifact bytes, hashes, final job metadata and numbered log provenance. The branch is now rebased onto master c0647383d; the full run remains evidence for its recorded source.

Remaining under #1269

Land this integrated default-off experiment through normal PR CI/merge queue, then qualify trusted master publication and read-only consumption. Measure actual transfer, producer cost, native hits/misses/build time and invalidation before backend adoption or allocation changes. Keep Actions writers/fallbacks until qualified.

#1723 remains held; #1715 merged independently; #1760 retains its owner. #1269 and #1667 remain open.

@zackees
zackees force-pushed the infra/1269-native-cache-transport branch from 121236f to 724a7ff Compare October 22, 2026 09:39
@zackees
zackees marked this pull request as ready for review October 22, 2026 09:39
@zackees
zackees enabled auto-merge October 22, 2026 09:41
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit d0f0582 Oct 22, 2026
25 checks passed
@zackees
zackees deleted the infra/1269-native-cache-transport branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant