-
Notifications
You must be signed in to change notification settings - Fork 3k
Broken Lifecycle Signal Tests #12220
Comments
@deckar01 @othiym23 @iarna Was a decision reached about making npm use bash instead of sh (ref: #12221 (comment)) ? Is it just a question of changing the shebang in bin/npm#L1 from It'd be nice to get these tests passing in order to run |
Yes, although the CLI team has been focused on high-priority crashers, and as such hasn't worked in this yet.
Not exactly, because it's not uncommon for bash to be in |
Bah :( Wasted time on this, I mistakenly thought I'd broken this test with my code, and didn't first test the rev before mine since I wrongly assumed all tests would normally pass. I see there was quite a lot of activity on this, but then it all stopped. I think @gibfahn's suggestion sounds like a good quick fix. It'd be good to even just disable this test. Having broken tests is anti pattern :) |
We're closing this issue as it has gone thirty days without activity. In our experience if an issue has gone thirty days without any activity then it's unlikely to be addressed. In the case of bug reports, often the underlying issue will be addressed but finding related issues is quite difficult and often incomplete. If this was a bug report and it is still relevant then we encourage you to open it again as a new issue. If this was a feature request then you should feel free to open it again, or even better open a PR. For more information about our new issue aging policies and why we've instituted them please see our blog post. |
As far as I know, this is still an issue. The travis exclusion is still in those tests, and the I'm not using Ubuntu or contributing to npm anymore, so I will leave it up to someone else to create a new issue. |
The tests in
test/tap/lifecycle-signal.js
are skipped on Windows and Travis, but are failing on Linux.lifecycle signal abort
This test fails because regardless of the signal used to kill the process in
preinstall
the child's exit code is1
and exit signal isnull
. There seems to be an error handler stripping the signal and changing the code to 1. I tested thatnode -e
wasn't eating the error, so it must be somewhere around the install action or the lifecycle.test/tap/lifecycle-signal.js#L45
Originally added by @TooTallNate in d885f81
lifecycle propagate signal term to child
This test fails, because the test assumes killing a child process kills its subprocess, but that is incorrect.
http://stackoverflow.com/questions/33325301/killing-a-bash-script-does-not-kill-child-processes
test/tap/lifecycle-signal.js#L67
Originally added by @daniel-pedersen in 5454347.
The text was updated successfully, but these errors were encountered: