Skip to content

fix: cache miss on repeated pack builds#1096

Draft
fengmk2 wants to merge 8 commits intomainfrom
fix-1095
Draft

fix: cache miss on repeated pack builds#1096
fengmk2 wants to merge 8 commits intomainfrom
fix-1095

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 22, 2026

Summary

  • Bump vite-task to ffd0eed3 which skips node_modules/.vite-temp/ from fspy tracking
  • Update snap tests to verify cache hits on repeated vp pack builds
  • Use grep 'cache hit' in snap test steps for stable output

Vite writes transient compiled config files to node_modules/.vite-temp/ during builds. These files were tracked by fspy as both read and written, causing a read-write overlap that prevented caching with "not cached because it modified its input".

vite-task changelog: voidzero-dev/vite-task@69cc6eb...ffd0eed#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed

Test plan

  • cargo check passes
  • cargo test passes for all vite-plus crates
  • Snap test command-pack-monorepo verifies cache hits
  • Snap test command-pack verifies cache hits
  • CI passes on all platforms

Closes #1095

🤖 Generated with Claude Code

@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 4225f02
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c0d990120fa4000895eaf3

@fengmk2 fengmk2 marked this pull request as draft March 22, 2026 11:31
Copy link
Member Author

fengmk2 commented Mar 23, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

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.

Cache miss on repeated pack builds: task modifies its own input

1 participant