Skip to content

ci: protect Rust test caches from release target churn - #2262

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/rust-cache-recovery/protect-rust-test-caches-release-target-churn--39b2469c
Oct 27, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/rust-cache-recovery/protect-rust-test-caches-release-target-churn--39b2469c

Conversation

@tignear

@tignear tignear commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Rust Tests lost its 2 GB cache while multi-target NAPI release caches occupied about 6.2 GiB of repository cache storage. The same restore key hit at 07:47 UTC and missed at 08:46 UTC; compilation grew from 12m35s to 31m20s while test execution remained roughly 14 minutes.

Keep only downloaded Cargo dependencies for NAPI publication, share the cache across targets, and save only on the default branch to avoid develop duplicates. Use a new prefix so old compiled-target caches cannot be restored under the download-only policy. Release builds trade compiled-dependency reuse for preserving pull-request CI capacity.

Run the existing dependency warmer hourly as well as on dependency changes and manual dispatch. Eviction alone changes no Cargo files, so the previous path-filtered trigger could not recover the missing cache. Exact hits still skip all compilation; warming never executes the test suite. Preserve trusted default-branch checks and existing Rust Tests cache keys.

Validation: 38 CI workflow/classifier tests pass, both workflow YAML files parse successfully, and diff checks pass. Regression coverage enforces download-only release caching, default-branch-only writes, scheduled recovery and hit-gated builds.

Rust Tests lost its 2 GB cache while multi-target NAPI release caches occupied about 6.2 GiB of repository cache storage. The same restore key hit at 07:47 UTC and missed at 08:46 UTC; compilation grew from 12m35s to 31m20s while test execution remained roughly 14 minutes.

Keep only downloaded Cargo dependencies for NAPI publication, share the cache across targets, and save only on the default branch to avoid develop duplicates. Use a new prefix so old compiled-target caches cannot be restored under the download-only policy. Release builds trade compiled-dependency reuse for preserving pull-request CI capacity.

Run the existing dependency warmer hourly as well as on dependency changes and manual dispatch. Eviction alone changes no Cargo files, so the previous path-filtered trigger could not recover the missing cache. Exact hits still skip all compilation; warming never executes the test suite. Preserve trusted default-branch checks and existing Rust Tests cache keys.

Validation: 38 CI workflow/classifier tests pass, both workflow YAML files parse successfully, and diff checks pass. Regression coverage enforces download-only release caching, default-branch-only writes, scheduled recovery and hit-gated builds.
Change-Id: I39b2469c2fece08abdd5cfc4d2738411605b98f7
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T09:57:26.783248Z 37e28d6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-priority Prioritize queue admission and waiting order without interrupting running checks label Oct 27, 2026
@mergify mergify Bot added merge-ready Request merging through Mergify after required checks queued Mergify queue entry labels Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 89b46b1 at 11:36 UTC

1 h 13 min in the queue, 38 min of it CI.

So far

Merge conditions: 9 of 9 met

The batch, tested on draft #2266

Condition Required by
✅ check-success = Conventional Commit title —
✅ check-success = Queue validation —
✅ any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/NAPI Build (Linux ARM64 GNU), check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU), check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/NAPI Build (Windows), check-neutral = @github-actions/NAPI Build (Windows), check-skipped = @github-actions/NAPI Build (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Windows), check-neutral = @github-actions/JS Test (Windows), check-skipped = @github-actions/JS Test (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title GitHub repository ruleset rule master

Times in UTC · dashboard · how the merge queue works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-priority Prioritize queue admission and waiting order without interrupting running checks merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant