-
Notifications
You must be signed in to change notification settings - Fork 105
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
destroy should exit with non-zero code if --force was not provided but is necessary #1156
Comments
Related: seems like errors during |
Strongly agree with this! Something tells me @ryanbethel would agree, too! |
Yes I do agree. It is one of many things that can fail silently in CI. I my case I was able to use the heavy handed --force --now with destroy so I don't hit that particular problem. In other cases I had to test the output and manually run |
K, I'm gonna tackle this, and feed any errors into exiting with a non-zero code so |
One additional point here: I think the current logic wrapping around CloudFormation The WDYT? |
… for testing. relates to architect/architect#1156
Well, adding an exit with a non-zero code on error was easy (architect/destroy@87fe6bf). I'd still like to expand the logic as mentioned in my last comment to explicitly handle a failed delete better; current logic is such that if a delete fails early for whatever reason, the polling loop at the end of |
… report this and the reason to user immediately; this fixes architect/architect#1156
… report this and the reason to user immediately; this fixes architect/architect#1156
This was fixed in destroy 1.2.4 and published in architect 8.6.1. |
Describe the issue
Currently, if you have static assets in your arc app, and you run
arc destroy
, you will get a warning like this in your terminal:So,
destroy
does not end up executing, however, the exit code is 0, so things like CI systems end up completing successfully.Expected behavior
destroy
exits with a non-zero code in this situation.The text was updated successfully, but these errors were encountered: