During the CI process, the memory of my vitest will explode
See original GitHub issueDescribe the bug
During the CI process, the memory of my vitest will explode
Reproduction
- cd apps/promotion
- rushx test Found configuration in /home/code/rush.json Rush Multi-Project Build Tool 5.71.0 - Node.js 14.18.1 (LTS)
“vitest run” RUN v0.18.0 /home/code/apps/promotion events.js:377 throw er; // Unhandled ‘error’ event ^ RangeError [Error]: WebAssembly.instantiate(): Out of memory: wasm memory at internal/deps/cjs-module-lexer/dist/lexer.js:1:33593 Emitted ‘error’ event on process instance at: at emitUnhandledRejectionOrErr (internal/event_target.js:579:11) at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:403:9) at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26) The script failed with exit code 1
System Info
System:
OS: Linux 5.4 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (104) x64 Intel(R) Xeon(R) Platinum 8269CA CPU @ 2.50GHz
Memory: 29.09 GB / 32.00 GB
Container: Yes
Shell: 5.0.3
Binaries:
Node: 14.18.1
Yarn: 1.22.15
npm: 6.14.15
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Github CI blowing up memory - Stack Overflow
I have a CI setup in Github which runs all the tests I currently have (200 approx) which are e2e tests using jest...
Read more >CICD - How To Resolve Failing Tests - Undo.io
CI /CD - What To Do About Failing Tests ... The explosion of Agile development and DevOps practices has resulted in more frequent...
Read more >Owner's Manual - pdf.lowes.com
To obtain service, see the Consumer Services page in the back of this manual. We're proud of our service and want you to...
Read more >Muddy Cellular Instruction Manual
Tap on your camera within the app and select “Camera Setup” to begin ... Camera will automatically detect new software and begin the...
Read more >RBx - River Thames Conditions - Environment Agency - GOV.UK
Jeg er ulykkelig i forholdet, Dibujos para imprimir de my little pony, Zagumennova, ... Green party views on minimum wage, Dare to dance...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’re seeing this error sporadically in our own CI process, and setting the
--max-old-space-size
alone didn’t fix things for usI’m seeing the same thing. It’s interesting that it only happens in CI - I wonder if vitest is trying to utilise all the available cores on the physical node when calculating the number of threads to allocate.