-
Notifications
You must be signed in to change notification settings - Fork 40
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
Incorrect exit code when failing to install npm dependencies #170
Comments
@christemple Can you please update to the latest CLI version v1.10.1? There was a bug in v1.9.0 where on some of the ci machines the report wasn't generating properly. |
@karanshah-browserstack I've updated to the latest version, it has fixed the previous --sync issue I experienced in v1.9.0, but I'm still experiencing an issue with v1.10.1... this may not have been introduced recently, it's possible I've just discovered it after investigating build issues. Whenever there is a |
@christemple Noted. |
@christemple We made some changes in recent CLI releases which handles the case if npm install fails on the build level (for all sessions) we exit with non zero exit code (with exception as well). |
This appears to be resolved with 1.18.0 for me. The proper error codes are being passed back on failed npm dependency installs. |
I noticed that when I've forgotten to update the
npm_dependencies
versions in thebrowserstack.js
, and Browserstack fails to run the build, runningbrowserstack-cypress run --sync --config-file browserstack.js
does not return a failure/error exit code on the commandline, it proceeds as if everything is fine.Here's an example of the output on one of these runs if it helps:
Running this in our Jenkins pipeline doesn't report any errors, however looking at the Browserstack build shows there was a
NPM_INSTALL_FAILED
issue. Can we get an exit code that reflects the failure in this scenario?The text was updated successfully, but these errors were encountered: