question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

During the CI process, the memory of my vitest will explode

See original GitHub issue

Describe 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexlafrosciacommented, Sep 19, 2022

We’re seeing this error sporadically in our own CI process, and setting the --max-old-space-size alone didn’t fix things for us

1reaction
frankwalliscommented, Jul 26, 2022

I’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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found