-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Prevent permadiff on monitoring_uptime_check_config #10694
Prevent permadiff on monitoring_uptime_check_config #10694
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @c2thorn, 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @VenelinMartinov, thanks for contributing this fix. Would you mind adding a test to https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/services/monitoring/resource_monitoring_uptime_check_config_test.go that shows the currently failing scenario? There are other examples there and we have documentation under the handwritten
tab in https://googlecloudplatform.github.io/magic-modules/develop/test/test/#add-a-create-test
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: Click here to see the affected service packages
|
Hi @c2thorn, thanks for your review. I've added a test as suggested. I verified that it fails before my fix and is fixed after. I've also verified that hashicorp/terraform-provider-google#18038 no longer reproes with the fix. LMK if there are any other issues here. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccMonitoringUptimeCheckConfig_noProjectId |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you!
Fixes a permadiff on uptime check config which causes it to be recreated every time.
The labels property in the monitored_resource property should ignore changes to the project_id label if not set by the user. GCP sets the project_id and that causes the resource to exhibit a diff and get recreated every time.
fixes hashicorp/terraform-provider-google#18038
Release Note Template for Downstream PRs (will be copied)