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

Report a non-zero exit code if build fails #83

Open
tzmanics opened this issue Jan 25, 2016 · 4 comments
Open

Report a non-zero exit code if build fails #83

tzmanics opened this issue Jan 25, 2016 · 4 comments

Comments

@tzmanics
Copy link
Contributor

If any part of a build fails, the CLI should exit with a non-zero code.

@tzmanics tzmanics added the bug label Jan 25, 2016
@mlocher
Copy link

mlocher commented Mar 21, 2016

So much in favor of this. I'm working for a CI company and just looked at the build of one of our users, which is all green even though all steps involving the Modulus CLI actually failed :(

Is there a way we could work around this at the moment?

@musgravejw
Copy link

@tzmanics We actually have error handling in place in the CLI that will return a nonzero exit code on process error. Is this an issue of an error not being thrown during a specific use case?

@jackboberg
Copy link
Contributor

@musgravejw This is not a local process error, but an error in a remote process. The CLI at this point in the deploy is a dumb pipe for the log, so we will probably need to add some string parsing. Maybe looking for something like npm does:

it worked if it ends with ok

@larsthorup
Copy link

I saw an example that looks like this issue today:

31.3 MB written
Uploading project...

Deploying project into Node.js runtime...
Starting build.
Creating directories for build environment.
Build attempt failed, attempting again.
Starting build.
Creating directories for build environment.
Build attempt failed, attempting again.
Starting build.
Creating directories for build environment.
Build failed, reverting project.
 
[✓] ${projectName} running at ${domain}.onmodulus.net

at which point the deploy command ended with a zero exit code. Since the deploy actually failed ("Build failed") I would have expected a non-zero exit code in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants