-
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
compute: added support for advanced_machine_features.turbo_mode
#12148
compute: added support for advanced_machine_features.turbo_mode
#12148
Conversation
Note: these tests pass for me locally, but only if I explicitly set |
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @roaks3, 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. |
84387bc
to
0c774f5
Compare
mmv1/third_party/terraform/services/compute/resource_compute_instance.go.tmpl
Show resolved
Hide resolved
mmv1/third_party/terraform/services/compute/resource_compute_instance_template.go.tmpl
Show resolved
Hide resolved
- Added support for `advanced_machine_features.turbo_mode` to `google_compute_instance`, `google_compute_instance_template`, and `google_compute_region_instance_template` - Adjusted tests to use c4 instance types for `advanced_machine_features` tests - Minor docs and formatting fixes Fixes hashicorp/terraform-provider-google#20023
0c774f5
to
340fd34
Compare
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, just need to verify tests
mmv1/third_party/terraform/services/compute/resource_compute_instance.go.tmpl
Show resolved
Hide resolved
mmv1/third_party/terraform/services/compute/resource_compute_instance_template.go.tmpl
Show resolved
Hide resolved
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_instance_from_machine_image" "primary" {
advanced_machine_features {
enable_nested_virtualization = # value needed
threads_per_core = # value needed
turbo_mode = # value needed
visible_core_count = # value needed
}
}
Resource: resource "google_compute_instance_from_template" "primary" {
advanced_machine_features {
enable_nested_virtualization = # value needed
threads_per_core = # value needed
turbo_mode = # value needed
visible_core_count = # value needed
}
}
|
btw, if the TDX / confidential image tests for compute fail, that may be a known / pre-existing issue (hashicorp/terraform-provider-google#19885). I have #12149 up as a possible fix for those. |
Tests analyticsTotal tests: 1044 Click here to see the affected service packages
Action takenFound 5 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. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
@roaks3 that test PR is merged if you want to re-run the tests now. w/r/t the missing test warning, I think the existing test coverage for templates probably should cover most use cases, but let me know if you want to see something else tested. |
Yea, I think the tests you have are sufficient, and the test failures look unrelated. |
advanced_machine_features.turbo_mode
ingoogle_compute_instance
,google_compute_instance_template
, andgoogle_compute_region_instance_template
advanced_machine_features
testsFixes hashicorp/terraform-provider-google#20023
I'm guessing this may be missing something
I looked at adding it in
google_container_cluster
as well, but seems like it's not implemented yet in regular or beta container API.Side note:
EnableUefiNetworking
andPerformanceMonitoringUnit
also seem to be available here but not implemented in the provider yet.Should I add anything in tgc as well (like #10848)?
Release Note Template for Downstream PRs (will be copied)