-
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 ability to skip cloning if no Terraform is modified #973
Conversation
Fix test case comments go fmt Clean up code
Codecov Report
@@ Coverage Diff @@
## master #973 +/- ##
==========================================
+ Coverage 72.12% 72.16% +0.04%
==========================================
Files 65 65
Lines 5316 5325 +9
==========================================
+ Hits 3834 3843 +9
Misses 1186 1186
Partials 296 296
Continue to review full report at Codecov.
|
Hey Christopher, thanks for the PR but I'm not sure this is the best approach that will solve the whole problem for all atlantis users. Many Atlantis users use the I looked into doing a clone into a temp directory and then performing the detection there before moving into the working directory but we can't simply move the cloned directory and clobber the existing working directory because we actually expect it to persist through atlantis commands run on the same pull request so that the .tfplan files aren't deleted. Thus we'd need to clone it first into the temp dir, run our checks and then re-clone it into the proper working dir. This seems like a smell that this also isn't the right approach. I think we either need to support queuing or go the route that @timoguin talked about in the ticket where we make an api call to get the contents of |
Got it. I think a call to view |
For those VCS's we can just keep the existing logic and always clone. |
Closing in favour of #1040 which supports downloading the |
Related to #967. Adds
skip-clone-no-tf
flag to control this behavior. I'm not sure if this will exactly satisfy the requirements in the ticket since it does not inspect atlantis.yaml but should be a step in the right directionA couple benefits to this addition:
workspace is currently locked by another command that is running for this pull request
)Let me know if I'm missing anything or if this is helpful