Copy pnpm store to tmpfs for test fixtures (#99960)
pnpm does not use the cache from the homedir if it's installing to a different mountpoint, because hardlinking/reflinking wouldn't work. This behavior is not new, but I only discovered this now because a warning was recently added to pnpm (https://github.com/pnpm/pnpm/pull/15575). This PR manually copies the cache to the `tmpfs` we use in CI. If we switch to use pnpm's GVS for all of our tests, this should also let us work around this problem, as symlinks can cross mountpoints. The cost of copying the cache is pretty small (2-3 seconds, depending on how you count the 1s that is run in parallel with downloading test timings), and almost certainly pays for itself if it means we don't have to download as much stuff from npm: <img width="698" height="381" alt="Screenshot 2026-10-09 at 4 42 11 PM" src="https://github.com/user-attachments/assets/34a2ece8-35c2-4efb-a989-cefa24020cf9" />
Showing
Please
register
or
sign in
to comment