Try using --no-experimentap-webstorage for Jest#1195
Conversation
|
BundleMonUnchanged files (136)
No change in files bundle size Final result: ✅ View report in BundleMon website ➡️ |
|
Documentation Preview: https://kit-docs-rjnepej84-anza-tech.vercel.app |
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Solana Kit Docs' |
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
Problem
CI keeps failing with "database is locked" on seemingly random tests
I think this might be because of the
--localstorage-fileinNODE_OPTIONS.Localstorage/web storage is implemented as a SQL database in Node: nodejs/node#52435
And the error seems to come from multi-process access to sqlite (which makes sense): nodejs/node#57741
I think there's some race condition where Jest tries to access the database in multiple processes, and our user of a different file for localstorage in each package isn't sufficient.
Summary of Changes
Change the
NODE_OPTIONSto use--no-experimental-webstorageNo current tests use localstorage/web storage, and if this changes then we can add
--localstorage-fileto only those tests.I think this will fix the race by removing web storage completely from the test processes
Fixes: CI, my sanity 🤞