-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix for handling -no-color and -var options #933
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! This looks like a good fix. I had two tiny NITs to consider, and then I can kick off tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you! I'll kick off tests now.
hi @brikis98 seems like there are some flaky tests failing in the CI, which I can reproduce locally as well. shall we merge this PR now and address those flaky ones separately? |
turns out that not all the tests are flaky, just realised some of the terraform validation tests have been fixed in the master. I've rebased mine from the latest master, it should pass the tests now, Could you run tests again @brikis98, thx. |
`terraform apply` expects `plan file` to be presented as the last argument, currently -no-color option comes after the plan file. this commit fixes that. when `terraform apply` is provided with a plan file, we should not pass `-var` and `-var-file` options anymore. it is a violation. this commit fixes that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll kick tests off again.
@brikis98 only this test is failing |
local:
|
Yea, you're right, that looks like a flaky test. Must be a timing thing with concurrency in CircleCi. I've filed #936 to track it. That needs to be fixed separately, but it shouldn't block this PR, so I'm going to merge. Thanks! |
This PR fixes a few things:
terraform apply
expectsplan file
to be presented as the lastargument, currently
-no-color
option is added after the plan file in the argument/options order.terraform apply
is provided with a plan file, we should not pass-var
and-var-file
options anymore. it is a violation.