-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Only delete the plan that failed when automerge is enabled #3002
Comments
@lattwood what i don't fully understand is why does automerge require all plans to succeed? If a single plan fails, it will show one of the plans as failed and if a subsequent apply is performed, it ahould fail to apply because of the plans had failed... @lattwood please try to change the logic in your fork and try your new version. See if it doesn't return any mixed results. The new fork works fairly well. If you fork and then add updates to |
I see it referenced here.
Personally I'd say this is not a great solution. I agree that having 1/30 plans or so fail due to network gnomes and having to do it all over again isn't very pleasing.
|
I am facing the exact same issue that @lattwood is having, wondering if its intended by design? @nitrocode |
Same issue. Is it possible to maybe not discard the plan for individual projects ? |
Looks like we have exactly the same problem ;-/ Especially when you have 3 modules in one PR with dependencies for example : you have to create GCP storage to be able to add permissions to GCP storage .. always 1x plan will failed in PR as storage have to be created before permissions which is obvious |
Community Note
Overview of the Issue
Having automerge enabled causes Atlantis to delete all plans in a batch if even a single plan fails.
They shouldn't be deleted, because a user can retry just the failed plans.
Currently, you have to re-plan specifically the ones that succeeded originally, and then retry the failed ones.
Additional Context
atlantis/server/events/plan_command_runner.go
Lines 135 to 139 in 7ca6b01
The text was updated successfully, but these errors were encountered: