Skip to content

fix(cache): recover from corrupt persistent cache module graph - #14945

Open
lazerg wants to merge 1 commit into
web-infra-dev:mainfrom
lazerg:fix/issue-14858-persistent-cache-recovery
Open

fix(cache): recover from corrupt persistent cache module graph#14945
lazerg wants to merge 1 commit into
web-infra-dev:mainfrom
lazerg:fix/issue-14858-persistent-cache-recovery

Conversation

@lazerg

@lazerg lazerg commented Jul 25, 2026

Copy link
Copy Markdown

Summary

A corrupt module graph entry in the persistent cache made recovery call .expect() on the decode result, which aborted the whole process. It now returns the decode error instead, so load_occasion resets the make scope and the next build recomputes it, the same way snapshot and build-dependency load failures are already handled.

The devtool and minimize occasions can skip a bad entry, but this one can't: dropping a single node would leave the module graph inconsistent, so the whole scope is reset.

Related links

Closes #14858

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@lazerg
lazerg force-pushed the fix/issue-14858-persistent-cache-recovery branch from 13b5dea to cb82d67 Compare July 25, 2026 17:21
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]: corrupt persistent-cache module graph recovery panics

1 participant