Skip to content

Only delete the plan that failed when automerge is enabled #3002

Open
@lattwood

Description

@lattwood

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

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

if p.autoMerger.automergeEnabled(projectCmds) && result.HasErrors() {
ctx.Log.Info("deleting plans because there were errors and automerge requires all plans succeed")
p.deletePlans(ctx)
result.PlansDeleted = true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't workingquick-winIs obviously something Atlantis should do and will take <4 hrs work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions