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

Autocancel plans running on PR after new push #4829

Open
1 task
paymog opened this issue Aug 9, 2024 · 0 comments
Open
1 task

Autocancel plans running on PR after new push #4829

paymog opened this issue Aug 9, 2024 · 0 comments
Labels
feature New functionality/enhancement

Comments

@paymog
Copy link

paymog commented Aug 9, 2024

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.

Describe the user story

I push a commit to a branch. This invokes atlantis plan. I realize I made a mistake and push a second commit to the same branch. This invokes atlantis plan again, but the second invcation fails with

the default workspace at path . is currently locked by another command that is running for this pull request.\nWait until the previous command is complete and try again

Describe the solution you'd like

Atlantis should detect when the lock is held by the same PR that got the new commit. If that's the case, Atlantis should cancel the prior plan and start a new plan on the latest commit.

Describe the drawbacks of your solution

More complexity in the codebase.

Describe alternatives you've considered

Wait and invoke plan again once the old plan has finished.

@paymog paymog added the feature New functionality/enhancement label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

No branches or pull requests

1 participant