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
Exit code 0 even though deployment fails #1377
Comments
I'm running into the same issue. Came in this morning to find my lambda functions hadn't been executing overnight, because deploying their scheduled event failed silently in travis. As a side note, an event name longer than 64 chars seems like a common-ish use case with the way serverless builds them up.
|
I'm getting the same with failed deployment of endpoints:
|
@johnsgp this is resolved in Serverless V1. The system exits properly with 1 if the deployment fails so I'll close this issue. Thanks for reporting. |
Looks like this is still happening, did I miss anything?
Amazon CodeBuild still marks the output as Any suggestions? |
I'm seeing the same problem. |
Actually, nevermind. Serverless does seem to be using the correct exit code. I think I was getting a @RickvdP , I would bet your problem is caused by piping into |
@traviswimer - thanks for the update. I encountered the same problem |
I'm encountering the same problem |
I'm using serverless 0.5.5.
When I run serverless event deploy before deploying the lambda function, I get something like this:
The process returns exit code 0 which I then cannot detect as an error with a continuous integration tool.
There are similar problems with deployment of functions and endpoints, e.g., when the _meta/_tmp folder is not writeable. The common feature is the last line, prompting to run again with --debug.
Is there an option to make such failures into return exit code 1?
The text was updated successfully, but these errors were encountered: