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

Network profile and RDMA v1 support #12589

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

cesteve
Copy link

@cesteve cesteve commented Dec 17, 2024

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: added `network_profile` field to `google_compute_network` resource. 

cesteve and others added 18 commits December 16, 2024 13:51
@github-actions github-actions bot requested a review from rileykarson December 17, 2024 00:37
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

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

@cesteve cesteve changed the title Terraform v1 support Network profile and RDMA v1 support Dec 17, 2024
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/compute-instances service/compute-vpc and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Dec 17, 2024
@modular-magician
Copy link
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 ( 11 files changed, 114 insertions(+), 12 deletions(-))
google-beta provider: Diff ( 8 files changed, 10 insertions(+), 10 deletions(-))

Errors

google provider:

  • The diff processor failed to build. This is usually due to the downstream provider failing to compile.

description: |
A full or partial URL of the network profile to apply to this network.
This field can be set only at resource creation time. For example, the
following are valid URLs:
* https://www.googleapis.com/compute/beta/projects/{projectId}/global/networkProfiles/{network_profile_name}
* https://www.googleapis.com/compute/{api_version}/projects/{projectId}/global/networkProfiles/{network_profile_name}
Copy link
Member

Choose a reason for hiding this comment

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

nit: I'd recommend just v1 here, or explicitly specifying beta as a separate item. What you've written is more correct, certainly, but requires a slight amount of additional context.

@@ -97,11 +95,9 @@ func dataSourceGoogleComputeNetworkRead(d *schema.ResourceData, meta interface{}
if err := d.Set("internal_ipv6_range", network.InternalIpv6Range); err != nil {
return fmt.Errorf("Error setting internal_ipv6_range: %s", err)
}
{{- if ne $.TargetVersionName "ga" }}
if err := d.Set("network_profile", network.NetworkProfile); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this isn't in the client library version we're using- we could update the version in a separate PR to unblock, or drop the datasource changes to merge the rest sooner.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1076
Passed tests: 1001
Skipped tests: 73
Affected tests: 2

Click here to see the affected service packages
  • compute
#### Non-exercised tests

🔴 Tests were added that are GA-only additions and require manual runs:

  • TestAccComputeNetwork_networkProfile

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
  • TestAccComputeNetwork_networkProfile
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeNetwork_networkProfile [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

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.

9 participants