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 default value to metric.filter in the resource google_compute_autoscaler #8327

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

zli82016
Copy link
Member

@zli82016 zli82016 commented Jul 12, 2023

Fixes hashicorp/terraform-provider-google#15033

Add default value to metric.filter in the resource google_compute_autoscaler

API: https://cloud.google.com/compute/docs/reference/rest/v1/autoscalers

The API doc mentions:
If not specified, the type defaults to gce_instance.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

compute: added default value to `metric.filter` in the resource `google_compute_autoscaler` (beta)

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field autoscaling_policy.metric.filter default value changed from to resource.type = gce_instance on google_compute_autoscaler - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform Beta: Diff ( 1 file changed, 1 insertion(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2853
Passed tests 2550
Skipped tests: 297
Affected tests: 6

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules|TestAccComputeAutoscaler_multicondition|TestAccVertexAIIndex_vertexAiIndexExample|TestAccVertexAIIndex_vertexAiIndexStreamingExample|TestAccVertexAIIndex_updated

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeAutoscaler_multicondition[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccVertexAIIndex_vertexAiIndexExample[Error message] [Debug log]
TestAccVertexAIIndex_vertexAiIndexStreamingExample[Error message] [Debug log]
TestAccVertexAIIndex_updated[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@zli82016 zli82016 changed the base branch from main to FEATURE-BRANCH-major-release-5.0.0 July 27, 2023 21:30
@zli82016
Copy link
Member Author

/gcbrun

@zli82016 zli82016 closed this Jul 27, 2023
@zli82016 zli82016 reopened this Jul 27, 2023
@zli82016
Copy link
Member Author

/gcbrun

1 similar comment
@zli82016
Copy link
Member Author

/gcbrun

@zli82016 zli82016 closed this Aug 1, 2023
@zli82016 zli82016 reopened this Aug 11, 2023
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field autoscaling_policy.metric.filter default value changed from to resource.type = gce_instance on google_compute_autoscaler - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform Beta: Diff ( 1 file changed, 1 insertion(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2943
Passed tests 2638
Skipped tests: 305
Affected tests: 0

$\textcolor{green}{\textsf{All tests passed in REPLAYING mode.}}$
View the build log

@zli82016
Copy link
Member Author

Tested in Console UI and doesn't see the error any more.

@zli82016 zli82016 requested review from a team and roaks3 and removed request for a team August 14, 2023 23:25
@zli82016
Copy link
Member Author

PR to update 5.0 guide: #8648

Copy link
Contributor

@roaks3 roaks3 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autoscaling signal has empty condition
3 participants