Skip to content

[CI] Proactive cache reset#3306

Merged
vicsn merged 2 commits into
stagingfrom
ci/proactive_cache_reset
Jun 16, 2026
Merged

[CI] Proactive cache reset#3306
vicsn merged 2 commits into
stagingfrom
ci/proactive_cache_reset

Conversation

@ljedrz

@ljedrz ljedrz commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

The intent of this PR is to wipe the cache whenever it gets corrupted, so that it doesn't get saved in that state. In addition, the current cache - apparently borked - is discarded due to its version bump.

Fixes #3304.

ljedrz added 2 commits June 15, 2026 10:26
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the CircleCI test pipeline against corrupted sccache state by detecting the specific “sccache ... (exit status: 2)” failure mode, wiping local cache artifacts to prevent re-saving a poisoned cache, and retrying once from a clean state. It also bumps the cache key version to proactively invalidate the currently failing cache (per issue #3304).

Changes:

  • Bump all CircleCI cache key prefixes from v4.7.2 to v4.7.3 to invalidate existing caches.
  • In the run_test “Run Tests” step: capture failures, detect the sccache exit-status-2 crash signature, wipe local cache/build state, and retry the test run cleanly.
  • Minor comment punctuation fix (“flags, they” → “flags, they”).

@ljedrz

ljedrz commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

The one CI failure is unrelated (powers download error).

@vicsn vicsn merged commit cb84da6 into staging Jun 16, 2026
6 of 7 checks passed
@vicsn vicsn deleted the ci/proactive_cache_reset branch June 16, 2026 06:27
@vicsn

vicsn commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Can you copy this approach to snarkOS as well?

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.

[Bug] ledger-with-valid-solutions CI job keeps failing

3 participants