-
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
Add the option to automatically unlock a repo after a plan has been run #1258
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1258 +/- ##
==========================================
- Coverage 70.01% 69.95% -0.06%
==========================================
Files 74 74
Lines 5556 5562 +6
==========================================
+ Hits 3890 3891 +1
- Misses 1307 1311 +4
- Partials 359 360 +1
Continue to review full report at Codecov.
|
What is the point of locking at all if you are just going to unlock afterwards? |
My thoughts were it prevents Atlantis running two plans on the same repo at the same time e.g, two pull requests come in around the same time so trigger an plans |
Terraform already has locking for this built in. By default the second plan will wait for the first. (You can configure the timeout). It seems that this just pessimizes the regular terraform locking. |
when multiple people work on the same repo on different PRs it is pretty annoying when you run a plan and atlantis is locking the whole repo indefinite instead of releasing the lock after plan, so I see how this could help on that case. not all the plans end up being applied so this could be useful and the only way I know to get around this is to close the PR so another PR can do plan, which is less than ideal and is not related to Terraform remote state locking directly. |
I have rebased to see if that fixes the website link test that had failed, I can't see how fixing a typo in the docs would have broken that otherwise |
Closing replaced by #1340 |
This new option is designed to be used when apply is disabled, there is no reason to hold a lock/plan in this configuration