Skip to content
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

Zero exit value when npm dependency installation fails #1189

Closed
mitar opened this issue Jun 28, 2013 · 3 comments
Closed

Zero exit value when npm dependency installation fails #1189

mitar opened this issue Jun 28, 2013 · 3 comments

Comments

@mitar
Copy link
Contributor

mitar commented Jun 28, 2013

I am using Travis CI to do tests and I noticed that if there is a failure when installing npm dependencies, meteor still exists with zero exit value so tests are seen as successful.

npm http 200 https://github.com/peerlibrary/pdf.js/tarball/d48097845fa4fb4e00fe895d0412872535ad0730

npm ERR! cb() never called!
npm ERR! not ok code 0

at ChildProcess.exithandler (child_process.js:540:15)
at ChildProcess.EventEmitter.emit (events.js:99:17)
at maybeClose (child_process.js:638:16)
at Process._handle.onexit (child_process.js:680:5)

Please fix the problem and restart.
The command "make test" exited with 0.
Done. Your build exited with 0.

(The issue why it fails is because tarball is 7.9 MB. But I will open another ticket for that. To increase the timeline.)

@glasser
Copy link
Contributor

glasser commented Aug 19, 2013

This code has been rewritten in 0.6.5, but the issue might still exist. If you see it again, can you report including the actual meteor command that is run (by Travis)?

@mitar
Copy link
Contributor Author

mitar commented Aug 23, 2013

It happened again on Travis with 0.6.5. Here is complete log with all commands being run, which is simply doing tests with this code.

I think the issue is simply that this npm tar is huge and there is some timeout issue.

@glasser
Copy link
Contributor

glasser commented Sep 25, 2013

OK, so the underlying npm error occurred in that log, but that's something we're tracking separately in #1190.

This bug is about failing to exit 0 when npm fails, and your log doesn't show that: it shows meteor noticing the issue and getting stuck in a "Waiting for file change". (I suggest that Arunoda change his test driver scripts to pass --once to meteor test-packages...)

So I will close this for now.

@glasser glasser closed this as completed Sep 25, 2013
mitar added a commit to peerlibrary/travis-ci-meteor-packages that referenced this issue Jul 31, 2014
So that meteor fails if there is an error and not waits for file change: meteor/meteor#1189 (comment)
marcodejongh pushed a commit to marcodejongh/travis-ci-meteor-packages that referenced this issue Aug 26, 2014
So that meteor fails if there is an error and not waits for file change: meteor/meteor#1189 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants