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

Change update method for boot_disk.auto_delete on google_compute_instance #11742

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

karolgorc
Copy link
Contributor

@karolgorc karolgorc commented Sep 18, 2024

closes hashicorp/terraform-provider-google#14707
closes hashicorp/terraform-provider-google#6892

This will prevent recreating the VM when changing auto_delete parameter

Release Note Template for Downstream PRs (will be copied)

compute: `google_compute_instance` is no longer recreated when changing `boot_disk.auto_delete`

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.

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Sep 18, 2024
Copy link

@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@c2thorn
Copy link
Member

c2thorn commented Sep 24, 2024

Hi @karolgorc,
I've found that you have many open pull requests for Magic Modules, and wanted to reach you about the upcoming language migration. I've randomly picked this pull request to comment on.

You can view the details of the language migration here: hashicorp/terraform-provider-google#19583

Later this week many of your pull requests may become incompatible due to the template files changing from Ruby (.erb) to Go (.tmpl) templates. Our team (Magic Modules repository maintainers) has some tooling to automatically convert changes to the new language, and we can prepare a converted commit for all of your open pull requests.

However, this converted commit will be rebased to a commit after the migration. This means in order to push the new changes to your pull request, we would need to force push the commit to your fork's branch. Our tooling saves a backup branch before converting, so we could rollback or open a new pull request if needed. We would also work with you and the PR reviewer in the event anything went wrong or needs additional changes.

Of course, you also have the option to convert your pull requests yourself after the migration tomorrow. We have links to a preview branch and updated documentation in the link above.

As an owner of many open pull requests, what would you like to do? Do we have your permission to push commits to your fork's branches, or would you like to convert them yourself?

Let me know if you have any questions or if there is a better method to converse.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@c2thorn
Copy link
Member

c2thorn commented Sep 25, 2024

@karolgorc please see this comment: #11742 (comment)

If you would like assistance converting files, we need your permission to push changes to this branch.

@karolgorc
Copy link
Contributor Author

karolgorc commented Sep 26, 2024

Hi @c2thorn.

Thanks for the info. I see that the changes are already live. The branches affected are

  • auto-delete-update
  • resource-policies-diff
  • key-revocation-action-field
  • min-cpu-platform-error-message
  • remove-hardcoded-values-instance-template

You can force-push to the fork. Do you need me to do something in order for this to work?

@c2thorn
Copy link
Member

c2thorn commented Sep 26, 2024

Hi @c2thorn.

Thanks for the info. I see that the changes are already live. The branches affected are

  • auto-delete-update
  • resource-policies-diff
  • key-revocation-action-field
  • min-cpu-platform-error-message
  • remove-hardcoded-values-instance-template

You can force-push to the fork. Do you need me to do something in order for this to work?

Thanks @karolgorc!
If things go smoothly, you won't have to do anything. But to help in the case we need to restore your branch from our backups, could you add me (c2thorn) as collaborator to your fork here:
https://github.com/karolgorc/magic-modules/settings

@karolgorc
Copy link
Contributor Author

done

change update method of auto_delete field
Copy link

github-actions bot commented Oct 2, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Oct 9, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@KevsAlex
Copy link

is this still in review or was it solved in some version ?

@github-actions github-actions bot requested a review from rileykarson October 18, 2024 06:22
Copy link

@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@nightpool
Copy link

Would love to see this get merged!

Copy link

github-actions bot commented Nov 7, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@karolgorc
Copy link
Contributor Author

Hi can this get reviewed or reassigned?

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 5 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 6 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@rileykarson rileykarson requested review from a team and slevenick and removed request for rileykarson and a team December 2, 2024 20:19
@rileykarson
Copy link
Member

Reassigning to @slevenick

Also /gcbrun

@modular-magician modular-magician added service/compute-instances and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Dec 2, 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 ( 2 files changed, 93 insertions(+), 13 deletions(-))
google-beta provider: Diff ( 2 files changed, 93 insertions(+), 13 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" {
  boot_disk {
    auto_delete = # 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" {
  boot_disk {
    auto_delete = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1070
Passed tests: 996
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_autoDeleteUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

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
7 participants