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

Align import statements in various files closer to the generated code #6054

Merged

Conversation

rileykarson
Copy link
Member

Probably the only notable bit is the inclusion of fake404 to hold the googleapi import- that code only appears in a deep conditional, and it seems like conditions in ERB don't short-circuit making it hard to write a condition for it.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 13 files changed, 25 insertions(+), 64 deletions(-))
Terraform Beta: Diff ( 13 files changed, 27 insertions(+), 66 deletions(-))
TF Validator: Diff ( 3 files changed, 11 insertions(+), 3 deletions(-))

@rileykarson rileykarson requested a review from slevenick May 20, 2022 00:42
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2022
Passed tests 1792
Skipped tests: 226
Failed tests: 4

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccFirebaserulesRelease_BasicRelease|TestAccCloudAssetFolderFeed_cloudAssetFolderFeedExample|TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic[view]
TestAccFirebaserulesRelease_BasicRelease[view]

Tests failed during RECORDING mode:
TestAccServiceNetworkingPeeredDNSDomain_basic[view]
TestAccCloudAssetFolderFeed_cloudAssetFolderFeedExample[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@rileykarson
Copy link
Member Author

rileykarson commented May 20, 2022

Hey, neat, this actually speeds up the Magician. Looking at base vs head in the original run:

Old New
TPG 7:13 5:03
TPGB 7:33 4:53
TFV 4:42 4:09

On my machine, a full TPGB run goes from 7m to 2m. Full removal of goimports only brings that to 1m!

@slevenick
Copy link
Contributor

Hey, neat, this actually speeds up the Magician. Looking at base vs head in the original run:

Old New
TPG 7:13 5:03
TPGB 7:33 4:53
TFV 4:42 4:09
On my machine, a full TPGB run goes from 7m to 2m. Full removal of goimports only brings that to 1m!

Amazing that a small change makes such a big difference in time!

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 13 files changed, 31 insertions(+), 70 deletions(-))
Terraform Beta: Diff ( 13 files changed, 29 insertions(+), 68 deletions(-))
TF Validator: Diff ( 3 files changed, 11 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2022
Passed tests 1793
Skipped tests: 226
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccFirebaserulesRelease_BasicRelease|TestAccCloudAssetFolderFeed_cloudAssetFolderFeedExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[view]

Tests failed during RECORDING mode:
TestAccCloudAssetFolderFeed_cloudAssetFolderFeedExample[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]

Please fix these to complete your PR
View the build log or the debug log for each test

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