You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It actually doesn't. Although, in my opinion, it should. Because a application that runs out of memory obviously failed and so should nyc. This caused some trouble in our CD pipeline, so it can be dangerous.
Suggestion
Using spawn instead of fork seems not to share the memory and kill nyc as well. As you can see, the output seems to be pretty different for a crashed process, I guess it's distinguishable, so there could be a detection for that.
@eseliger interesting, I wonder if the module signal-exit module we use to write reports when the application exits might be the culprit.
It might be worth disabling the handling of SIGARBT and seeing whether the issue continues (you could do this by temporarily modifying the signal-exit module in the node-modules folder). I would love some help digging into this if you're so inclined.
Expected Behavior
nyc should exit with return code different from 0
Observed Behavior
It actually doesn't. Although, in my opinion, it should. Because a application that runs out of memory obviously failed and so should nyc. This caused some trouble in our CD pipeline, so it can be dangerous.
Suggestion
Using spawn instead of fork seems not to share the memory and kill nyc as well. As you can see, the output seems to be pretty different for a crashed process, I guess it's distinguishable, so there could be a detection for that.
test.js:
Output for out of memory run application is:
Output for a normal process:
Operating System: MacOS 10.12.6
node: 8.2.1
npm: 5.3
The text was updated successfully, but these errors were encountered: