Skip to content

Migrated compute metadata to use transport_tpg#17154

Merged
BBBmau merged 1 commit into
GoogleCloudPlatform:mainfrom
jcromanu:google_compute_metadata
Apr 28, 2026
Merged

Migrated compute metadata to use transport_tpg#17154
BBBmau merged 1 commit into
GoogleCloudPlatform:mainfrom
jcromanu:google_compute_metadata

Conversation

@jcromanu
Copy link
Copy Markdown
Contributor

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: migrated `google_compute_metadata` to remove a client library 

@jcromanu jcromanu marked this pull request as draft April 16, 2026 20:29
@github-actions github-actions Bot requested a review from BBBmau April 16, 2026 20:29
@github-actions
Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@BBBmau, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@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.

google provider: Diff ( 8 files changed, 93 insertions(+), 160 deletions(-))
google-beta provider: Diff ( 8 files changed, 94 insertions(+), 160 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 31 insertions(+), 268 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 1417
Passed tests: 1311
Skipped tests: 91
Affected tests: 15

Click here to see the affected service packages
  • compute

Action taken

Found 15 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeFirewallPolicyRule_firewallPolicyRuleExample
  • TestAccComputeFirewallPolicyRule_firewallPolicyRuleSecureTagsExample
  • TestAccComputeFirewallPolicyRule_secureTags
  • TestAccComputeFirewallPolicyWithRules_computeFirewallPolicyWithRulesFullExample
  • TestAccComputeFirewallPolicyWithRules_update
  • TestAccComputeNetworkFirewallPolicyPacketMirroringRule_computeNetworkFirewallPolicyPacketMirroringRuleExample
  • TestAccComputeNetworkFirewallPolicyPacketMirroringRule_update
  • TestAccComputeNetworkFirewallPolicyRule_networkFirewallPolicyRuleExample
  • TestAccComputeNetworkFirewallPolicyRule_secureTags
  • TestAccComputeNetworkFirewallPolicyWithRules_computeNetworkFirewallPolicyWithRulesFullExample
  • TestAccComputeNetworkFirewallPolicyWithRules_update
  • TestAccComputeRegionNetworkFirewallPolicyRule_regionNetworkFirewallPolicyRuleExample
  • TestAccComputeRegionNetworkFirewallPolicyRule_secureTags
  • TestAccComputeRegionNetworkFirewallPolicyWithRules_computeRegionNetworkFirewallPolicyWithRulesFullExample
  • TestAccComputeRegionNetworkFirewallPolicyWithRules_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccComputeFirewallPolicyRule_firewallPolicyRuleExample [Error message] [Debug log]
TestAccComputeFirewallPolicyRule_firewallPolicyRuleSecureTagsExample [Error message] [Debug log]
TestAccComputeFirewallPolicyRule_secureTags [Error message] [Debug log]
TestAccComputeFirewallPolicyWithRules_computeFirewallPolicyWithRulesFullExample [Error message] [Debug log]
TestAccComputeFirewallPolicyWithRules_update [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyPacketMirroringRule_computeNetworkFirewallPolicyPacketMirroringRuleExample [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyPacketMirroringRule_update [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyRule_networkFirewallPolicyRuleExample [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyRule_secureTags [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyWithRules_computeNetworkFirewallPolicyWithRulesFullExample [Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyWithRules_update [Error message] [Debug log]
TestAccComputeRegionNetworkFirewallPolicyRule_regionNetworkFirewallPolicyRuleExample [Error message] [Debug log]
TestAccComputeRegionNetworkFirewallPolicyRule_secureTags [Error message] [Debug log]
TestAccComputeRegionNetworkFirewallPolicyWithRules_computeRegionNetworkFirewallPolicyWithRulesFullExample [Error message] [Debug log]
TestAccComputeRegionNetworkFirewallPolicyWithRules_update [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Updated compute library calls to methods : resourceInstancePartnerMetadata , resourceInstancePatchPartnerMetadata
flattenPartnerMetadata , ComparePartnerMetadataDiff , BetaMetadataUpdate , MetadataUpdate
@jcromanu jcromanu force-pushed the google_compute_metadata branch from 10aa5ff to 1d378cc Compare April 23, 2026 02:50
@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.

google provider: Diff ( 1 file changed, 13 insertions(+), 57 deletions(-))
google-beta provider: Diff ( 4 files changed, 94 insertions(+), 91 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 83 insertions(+), 141 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 1418
Passed tests: 1327
Skipped tests: 91
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@jcromanu jcromanu marked this pull request as ready for review April 23, 2026 21:50
}

jsonString, err := json.Marshal(&value)
func convertPartnerMetadataToCompute(pm map[string]interface{}) (map[string]compute.StructuredEntries, error) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

I assume that once the migration is complete where transport_tpg is used across compute resources these methods will no longer be needed as a result of the migration?

@BBBmau BBBmau added this pull request to the merge queue Apr 28, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 0c55b33 Apr 28, 2026
22 checks passed
ChuAmberZhang pushed a commit to ChuAmberZhang/magic-modules that referenced this pull request Apr 29, 2026
gitika-yadav pushed a commit to gitika-yadav/magic-modules that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants