-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingnot a bugwaiting for feedbackWill autoclose in a while unless more data are providedWill autoclose in a while unless more data are provided
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
When running a yarn install inside of a docker container, it continually failed at different packages in my yarn install, but the exit code was 0, and no error was displayed.
After debugging for a while, I figured out it was due to low memory, but there is no Killed
message, or any message to point to what the issue was.
I would expect a non successful error code, pointing to a process being killed due to OOM
To reproduce
Start a docker container with a constrained amount of memory:
docker run -it -w /app -m 128m --rm node:16 sh
Switch to yarn berry, and init a repo, and then attempt to add webpack as dev dependency:
yarn set version berry
yarn init
yarn add --dev webpack
The output will stop in the middle of fetching packages, but the exit code will be 0:
echo $?
No updates will have been made to the package.json, as it errored silently
Environment
System:
OS: Linux 5.10 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (5) arm64 unknown
Binaries:
Node: 16.18.1 - /tmp/xfs-d6f3346f/node
Yarn: 3.2.4 - /tmp/xfs-d6f3346f/yarn
npm: 8.19.2 - /usr/local/bin/npm
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnot a bugwaiting for feedbackWill autoclose in a while unless more data are providedWill autoclose in a while unless more data are provided