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

Add IDPF support for the google_compute_instance and google_compute_image.guest_os_features #12256

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

Asiderr
Copy link
Contributor

@Asiderr Asiderr commented Nov 6, 2024

closes: hashicorp/terraform-provider-google#19671

This patch adds IDPF as an possible value of the nic_type in the google_compute_instance and adds IDPF tag to the list of guestOsFeatures in the google_compute_image.

compute: Added the `IDPF` tag to the list of `guestOsFeatures`
compute: Added `IDPF` as a possible `nic_type` for the `google_compute_instance.network_interface`

@github-actions github-actions bot requested a review from SirGitsalot November 6, 2024 12:31
Copy link

github-actions bot commented Nov 6, 2024

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

@SirGitsalot, 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 modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/compute-instances service/compute-pd and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Nov 6, 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 ( 5 files changed, 13 insertions(+), 6 deletions(-))
google-beta provider: Diff ( 5 files changed, 13 insertions(+), 6 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_instance_from_machine_image (12 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_machine_image" "primary" {
  network_interface {
    nic_type = # value needed
  }
}

Resource: google_compute_instance_from_template (20 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_template" "primary" {
  network_interface {
    nic_type = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1059
Passed tests: 985
Skipped tests: 73
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeInstance_nictype_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

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

Looks good, just need to revert the test change. Thanks!

@@ -1857,6 +1857,13 @@ func TestAccComputeInstance_nictype_update(t *testing.T) {
t, "google_compute_instance.foobar", &instance),
),
},
{
Config: testAccComputeInstance_nictype(instanceName, "IDPF"),
Copy link
Member

Choose a reason for hiding this comment

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

The test is failing because this config uses an e2-medium instance and IDPF is only supported on bare metal instances, the smallest of which is c3-standard-192-metal. Since this is just an enum value rather than a new field I'm OK with reverting the test addition - spinning up an instance of this size regularly is likely to cause us quota headaches in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fully agree, I reverted the test and I rebased changes on top of the current main.

@github-actions github-actions bot requested a review from SirGitsalot November 7, 2024 23:02
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Nov 7, 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 ( 4 files changed, 6 insertions(+), 6 deletions(-))
google-beta provider: Diff ( 4 files changed, 6 insertions(+), 6 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_instance_from_machine_image (12 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_machine_image" "primary" {
  network_interface {
    nic_type = # value needed
  }
}

Resource: google_compute_instance_from_template (20 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_template" "primary" {
  network_interface {
    nic_type = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1060
Passed tests: 987
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@SirGitsalot SirGitsalot merged commit f1195ea into GoogleCloudPlatform:main Nov 8, 2024
15 checks passed
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
zeleena pushed a commit to zeleena/magic-modules that referenced this pull request Nov 18, 2024
@Asiderr Asiderr deleted the add_idpf_support branch November 19, 2024 13:15
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
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.

Add IDPF support for google_compute_instance.network_interface.nic_type
3 participants