Skip to content

tgc build on tpg-beta#7797

Merged
melinath merged 9 commits into
GoogleCloudPlatform:mainfrom
iyabchen:tgc-beta-tpg
Jul 20, 2023
Merged

tgc build on tpg-beta#7797
melinath merged 9 commits into
GoogleCloudPlatform:mainfrom
iyabchen:tgc-beta-tpg

Conversation

@iyabchen

@iyabchen iyabchen commented Apr 21, 2023

Copy link
Copy Markdown
Contributor

terraform-google-conversion switch to tpg beta

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).
  • 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).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (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)


@iyabchen iyabchen marked this pull request as ready for review April 24, 2023 20:35
@iyabchen iyabchen requested a review from melinath April 24, 2023 20:35

@melinath melinath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could you pull the formatting changes into a separate PR?

@melinath

melinath commented Jun 15, 2023

Copy link
Copy Markdown
Member

allowed ci changes /gcbrun

@melinath melinath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you might need to make additional changes as described in b/275715832

@melinath melinath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could you split the downstream-builder changes into a separate PR & also make changes to https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.ci/gcb-push-downstream.yml to use beta for TGC

@melinath

Copy link
Copy Markdown
Member

/gcbrun

@iyabchen

Copy link
Copy Markdown
Contributor Author

tgc-base fails because HEAD~ is still ga, not beta. Not sure how to make this work? @melinath

@melinath

Copy link
Copy Markdown
Member

testing this will be tricky since it modifies so many files. We'll need to test thoroughly to make sure everything works in the downstream code. I'm seeing some errors when I generate based on this (and switch over to beta) - is everything working fine for you?

Comment thread .ci/gcb-generate-diffs-new.yml
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

TF Conversion: Diff ( 209 files changed, 19437 insertions(+), 284 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2854
Passed tests 2555
Skipped tests: 297
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@melinath melinath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good - my one concern is that it will break older PRs, since the generation will happen with GA set as the version (but downstream uses beta). However, the code that's used for the generation will all be based on the head of the main branch.

In terms of how to work around this - my initial thought is that we could alter the downstream image to always use beta and then deal with any fallout in the ten minutes it takes the image to rebuild manually.

What do you think?

Comment thread GNUmakefile Outdated
cd mmv1;\
bundle;\
bundle exec compiler -e terraform -f validator -o $(OUTPUT_PATH) $(mmv1_compile);\
bundle exec compiler -e terraform -f validator -v $(VERSION) -o $(OUTPUT_PATH) $(mmv1_compile);\

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It turns out that adding this means that users have to provide a VERSION when running the command (which wasn't the case previously, and which isn't used) so we should probably revert this change. Sorry!

Suggested change
bundle exec compiler -e terraform -f validator -v $(VERSION) -o $(OUTPUT_PATH) $(mmv1_compile);\
bundle exec compiler -e terraform -f validator -o $(OUTPUT_PATH) $(mmv1_compile);\

@melinath

Copy link
Copy Markdown
Member

@iyabchen could you resolve the conflicts

@melinath melinath merged commit 9faed08 into GoogleCloudPlatform:main Jul 20, 2023
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
* tgc build on tpg-beta

* gcb-push-downstream.yml change ga to beta for tgc

* fix forward rule test file

* Address comment

* compute forwarding rule test file set to beta

* switch tgc-base to use beta

* tgc make always use beta

* generate downstream always use beta for tgc

---------

Co-authored-by: Stephen Lewis (Burrows) <stephenrlewis@google.com>
NickElliot pushed a commit to NickElliot/magic-modules that referenced this pull request Jul 31, 2023
* tgc build on tpg-beta

* gcb-push-downstream.yml change ga to beta for tgc

* fix forward rule test file

* Address comment

* compute forwarding rule test file set to beta

* switch tgc-base to use beta

* tgc make always use beta

* generate downstream always use beta for tgc

---------

Co-authored-by: Stephen Lewis (Burrows) <stephenrlewis@google.com>
DanielRieske pushed a commit to bschaatsbergen/magic-modules that referenced this pull request Aug 2, 2023
* tgc build on tpg-beta

* gcb-push-downstream.yml change ga to beta for tgc

* fix forward rule test file

* Address comment

* compute forwarding rule test file set to beta

* switch tgc-base to use beta

* tgc make always use beta

* generate downstream always use beta for tgc

---------

Co-authored-by: Stephen Lewis (Burrows) <stephenrlewis@google.com>
@shuyama1 shuyama1 mentioned this pull request Aug 3, 2023
5 tasks
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Aug 9, 2023
* tgc build on tpg-beta

* gcb-push-downstream.yml change ga to beta for tgc

* fix forward rule test file

* Address comment

* compute forwarding rule test file set to beta

* switch tgc-base to use beta

* tgc make always use beta

* generate downstream always use beta for tgc

---------

Co-authored-by: Stephen Lewis (Burrows) <stephenrlewis@google.com>
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