-
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
Add mode enum and scale down controls for Compute AutoScaler #3693
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @slevenick, please review this PR or find an appropriate assignee. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 32 insertions(+)) |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=121665" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 32 insertions(+)) |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=121666" |
Hey @rajatvig thanks for the contribution! I'm seeing tests that are failing because of this:
I believe the |
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.
See above comment
@slevenick Think I did what you suggested, though not very sure. Is there a way I can run those tests to be sure? |
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @danawillow, please review this PR or find an appropriate assignee. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 35 insertions(+), 1 deletion(-)) |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=121688" |
Yeah, first you will want to generate the downstream provider: https://github.com/GoogleCloudPlatform/magic-modules#generating-downstream-tools Then you can run the tests from that generated provider: https://github.com/terraform-providers/terraform-provider-google/blob/master/.github/CONTRIBUTING.md#tests |
@slevenick Thanks for the pointers. I ran the particular test locally after generating code for the beta provider and it passed. |
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.
Can you also add a test that includes these fields to https://github.com/GoogleCloudPlatform/magic-modules/blob/master/third_party/terraform/tests/resource_compute_autoscaler_test.go.erb
You can either add a new test or add these fields to the existing test. It would be best if at least one of these fields gets updated during the test
and outages due to abrupt scale-in events | ||
properties: | ||
- !ruby/object:Api::Type::NestedObject | ||
name: 'maxScaledDownReplicas' |
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.
Can you add at_least_one_of:
for this?
It helps us prevent issues around empty blocks by requiring at least one field per block is specified.
In this case I believe it will look like:
at_least_one_of:
- scale_down_control.0.max_scaled_down_replicas.0.fixed
- scale_down_control.0.max_scaled_down_replicas.0.percent
And then one to scaleDownControl
that looks like:
at_least_one_of:
- scale_down_control.0.max_scaled_down_replicas
- scale_down_control.0.time_window_sec
For example: https://github.com/GoogleCloudPlatform/magic-modules/blob/master/products/compute/api.yaml#L757
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @slevenick, please review this PR or find an appropriate assignee. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 3 files changed, 35 insertions(+), 1 deletion(-)) |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=122386" |
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.
Thanks for the addition! I modified the notes a bit to fit our changelog format
Resolves the following two issues
Fixes: hashicorp/terraform-provider-google#6363
Fixes: hashicorp/terraform-provider-google#6636
Fixes: hashicorp/terraform-provider-google#5521
Release Note Template for Downstream PRs (will be copied)