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

Use tf dev override in integration test #1588

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

iyabchen
Copy link
Contributor

No description provided.

@iyabchen iyabchen requested a review from melinath October 13, 2023 16:26
@iyabchen iyabchen marked this pull request as ready for review October 13, 2023 16:26
@iyabchen iyabchen requested a review from a team as a code owner October 13, 2023 16:26
Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

.ci/cloudbuild-tests-integration.yaml overrides the current version of Terraform to either 0.12.31 or 0.13.7 - but dev overrides require 0.14 or higher. I think we should probably just switch to running these tests on the default Terraform version for go-plus (1.2.5) and remove everything related to the older versions from this repo & from magic-modules (such as https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.ci/containers/go-plus/Dockerfile and https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.ci/gcb-generate-diffs-new.yml)

Attn @ScottSuarez FYI

@ScottSuarez
Copy link
Contributor

I agree. Supporting multiple terraform versions has been a bit of a pain. If we can eliminate those binaries from the containers I'm all for it.

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

It looks like upgrading the terraform version may require some additional changes to the test files... hopefully it's just the provider statement and it can be done in a way that's backwards-compatible with 0.12/0.13 (so that we wouldn't cause test failures for MM)

@iyabchen
Copy link
Contributor Author

hopefully it's just the provider statement and it can be done in a way that's backwards-compatible with 0.12/0.13 (so that we wouldn't cause test failures for MM)

Since those tests are removed from integration tests, so it won't break in a rerun.

@iyabchen iyabchen requested a review from melinath October 26, 2023 15:02
Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

looks like this is passing through the dev override

EOF
fi

cp $TF_CONFIG_FILE /tmp/$TF_CONFIG_FILE
Copy link
Member

Choose a reason for hiding this comment

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

could we reference the file directly instead of copying it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@iyabchen iyabchen merged commit fb06388 into GoogleCloudPlatform:main Nov 3, 2023
melinath added a commit that referenced this pull request Nov 6, 2023
iyabchen pushed a commit that referenced this pull request Nov 6, 2023
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.

3 participants