New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm exits with code 0 when child node process OOMs #5525
Comments
I have the same error on my ci runner. Runner's memory is limited to 500Mo, too short for
But PNPM command exits with a |
The exit code of out-of-memory child process will be It seems that
|
close pnpm/pnpm#5525 Co-authored-by: Zoltan Kochan <z@kochan.io>
pnpm version: 7.13.5
Code to reproduce the issue:
./repro.sh
(in my experience, whether you run thepnpm
command directly in your shell, or whether you run./repro.sh
, the result should be the same) and observe that theexit code is
0
.Expected behavior:
I expected the exit code to be non-zero, given:
node
process OOMed; and(
NODE_OPTIONS=--max-old-space-size=32 node ./oom.js
) or npm (npm run bash -- -c 'NODE_OPTIONS=--max-old-space-size=32 node ./oom.js'
).Actual behavior:
pnpm exits with code
0
.this 'false positive' exit code can cause problems in automation, for example,
by allowing a process to continue when it should have been aborted by the OOM.
Additional information:
node -v
prints:v18.11.0
The text was updated successfully, but these errors were encountered: