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

Disable refresh on CI plan #306

Merged
merged 1 commit into from
May 25, 2021
Merged

Disable refresh on CI plan #306

merged 1 commit into from
May 25, 2021

Conversation

bilbof
Copy link
Contributor

@bilbof bilbof commented May 24, 2021

This disables the default behavior of synchronizing the
local Terraform state with remote objects before checking
for configuration changes.

This will make the CI planner test faster, since it reduces
the number of API requests from refreshing the state.

However, it makes the test less reliable since it ignores
changes that have been made outside of Terraform, therefore
risks the plan not being complete or correct.

This disables the default behavior of synchronizing the
local Terraform state with remote objects before checking
for configuration changes.

This will make the CI planner test faster, since it reduces
the number of API requests from refreshing the state.

However, it makes the test less reliable since it ignores
changes that have been made outside of Terraform, therefore
risks the plan not being complete or correct.
Copy link
Contributor

@sengi sengi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a sensible compromise since we're mostly just trying to check that the config is internally consistent. Might also make the test less flaky :)

@bilbof bilbof merged commit bccda93 into main May 25, 2021
@bilbof bilbof deleted the bilbof/refresh-plan branch May 25, 2021 08:58
fredericfran-gds added a commit that referenced this pull request Aug 18, 2021
Since we switch to EKS from ECS, this PR adds the terraform plans for
the EKS modules and removes the ECS ones.

**Testing**

Tested by setting the CI pipeline to the one defined here and
checking that the 2 terraform plans are done and reported to
GitHub

**Notes**
We use plan with `-lock=false` and `-refresh=false` as done
previously in ECS with justifications in #297 and #306 respectively.

Ref:
1. [EKS cluster](#372)
2. [EKS cluster addons](#377)
3. [Concourse EKS pipeline](#378)
4. [add CI user to k8s](#391)
fredericfran-gds added a commit that referenced this pull request Aug 18, 2021
Since we switch to EKS from ECS, this PR adds the terraform plans for
the EKS modules and removes the ECS ones.

**Testing**

Tested by setting the CI pipeline to the one defined here and
checking that the 2 terraform plans are done and reported to
GitHub

**Notes**
We use plan with `-lock=false` and `-refresh=false` as done
previously in ECS with justifications in #297 and #306 respectively.

Ref:
1. [EKS cluster](#372)
2. [EKS cluster addons](#377)
3. [Concourse EKS pipeline](#378)
4. [add CI user to k8s](#391)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants