-
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 support for Regional Managed Instance Groups Resize Request (Dynamic Workload Scheduler) #11968
Add support for Regional Managed Instance Groups Resize Request (Dynamic Workload Scheduler) #11968
Conversation
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. |
f2d613e
to
44e414a
Compare
Hey @rileykarson, the PR is ready for review now. |
Approval from the service team. |
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.
Some early comments; gonna assign an alternate reviewer as I'm a little low on cycles rn
44e414a
to
6eeb8fd
Compare
6eeb8fd
to
ce5193d
Compare
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: 1037 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Several tests terminated during RECORDING mode. 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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.
A few initial comments - there are a bunch of Output Only fields; could you remove the [output only]
comment on all of them? It'll be autogenerated for the docs already.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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: 1041 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
All the failing tests are unrelated, you can ignore them and proceed further review if needed. |
@rileykarson @melinath This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
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.
The schema looks fine apart from a couple things noted below. +1 the current failing tests are unrelated.
It would also probably be a good idea to move the deletion logic into a pre_delete rather than a custom_delete - more details below.
mmv1/templates/terraform/custom_delete/compute_rmig_resize_request_delete.go.tmpl
Outdated
Show resolved
Hide resolved
# If a resize request is in the CREATING or ACCEPTED state, it must be canceled before it can be | ||
# deleted. If a resize request is NOT in any of the mentioned state, it can be directly deleted. | ||
custom_code: | ||
custom_delete: 'templates/terraform/custom_delete/compute_rmig_resize_request_delete.go.tmpl' |
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.
I think this would probably be easier to implement / maintain if you do it as a pre_delete instead of overriding the entire delete method - if I understand correctly, you just need to call a specific method before deletion if the resource is in a specific state, and otherwise it should just need to follow the normal deletion flow. Does that seem reasonable?
mmv1/templates/terraform/custom_delete/compute_rmig_resize_request_delete.go.tmpl
Show resolved
Hide resolved
d75a6a6
to
c14675c
Compare
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: 1055 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 tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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.
Unless there's a strong objection or counterpoint, it would be great if you could switch to a pre-delete as described in #11968 (comment)
So far, I have no idea how it works (since this is my first PR with MMv1 resource). I am going through the docs to understand it and also looking at some example of pre-delete classes. Also maybe, for now we could use custom delete since it was used in the existing zonal resource. And later with the fix of of that bug that I mentioned earlier, we could try to move it to pre-delete for both resource after discussed with @askubis, since he has better context in terraform and the related dependency about the product. What do you think about that? |
works for me! |
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
Merging is currently on hold due to some CI changes, so I'll come back to this later to merge it |
Thanks a lot :) |
…mic Workload Scheduler) (GoogleCloudPlatform#11968)
…mic Workload Scheduler) (GoogleCloudPlatform#11968)
…mic Workload Scheduler) (GoogleCloudPlatform#11968)
…mic Workload Scheduler) (GoogleCloudPlatform#11968)
Added support for ResizeRequest feature for Regional Managed Instance Group in Beta.
Alternatively, added support for Regional ResizeRequest feature for R(IGM).
Release Note Template for Downstream PRs (will be copied)