-
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 readiness_checks
to google_workstations_workstation_config
#9841
Add readiness_checks
to google_workstations_workstation_config
#9841
Conversation
...d_party/terraform/services/workstations/resource_workstations_workstation_config_test.go.erb
Outdated
Show resolved
Hide resolved
Hello! I am a robot. It looks like you are a: Community Contributor @shuyama1, 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. |
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. Terraform GA: Diff ( 1 file changed, 15 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_workstations_workstation_config" "primary" {
readiness_checks {
path = # value needed
}
}
|
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 testsTestAccWorkstationsWorkstationConfig_readinessChecks |
|
Test failed with error:
|
Thanks for the quick feedback, I'll try '/' and port 80 ad that's apparently the default path and port. |
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. Terraform GA: Diff ( 1 file changed, 15 insertions(+)) |
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 testsTestAccWorkstationsWorkstationConfig_readinessChecks |
|
Co-authored-by: Shuya Ma <[email protected]>
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. Terraform GA: Diff ( 1 file changed, 15 insertions(+)) |
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 testsTestAccWorkstationsWorkstationConfig_readinessChecks |
Rerun these tests in REPLAYING mode to catch issues
|
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.
Mostly good. Some small comments
- !ruby/object:Api::Type::String | ||
name: 'path' | ||
description: | | ||
Path to which the request should be sent. | ||
- !ruby/object:Api::Type::Integer | ||
name: 'port' | ||
description: | | ||
Port to which the request should be sent. |
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 wonder if we want to mark these two fields required based on the previous error we ran into, even if they seem to be optional based on the API doc. Changing a field from required
to optional
is non-changing while the other way around is breaking.
Plus, are these updatable? If so, can you add an update test following https://googlecloudplatform.github.io/magic-modules/develop/test/#add-an-update-test. Otherwise, we need to mark them immutable
. Also, if you think the fields can be tested in any of the existing tests, feel free to add them to an existing one instead of creating a new test for this feature. Thanks
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.
Great suggestion Shuya! I'll make them required, based on the previous error we faced. I would assume they are updatable, I'll introduce a test.
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.
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.
Would it be possible if we choose another update test? We try to keep only minimum required fields in the basic example config. Sorry about the extra work
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 don't have an easy way to expose a different port, it's at least not possible via the existing arguments (also looking at https://workstations.googleapis.com/$discovery/rest?version=v1beta). The default exposed port is port 80. Could we perhaps omit the update test? I have a feeling that updating port 80 to any other arbitrary port is going to result into a timeout error.
@shuyama1 any chance we can ship this :)? |
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. Terraform GA: Diff ( 1 file changed, 15 insertions(+)) |
Tests analyticsTotal tests: Click here to see the affected service packages
|
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.
Thank you!
…oogleCloudPlatform#9841) * feat: add `readiness_checks` to Workstation Config * chore: set path and change port to port 80 * Update WorkstationConfig.yaml Co-authored-by: Shuya Ma <[email protected]> * chore: make readiness checks arguments required * chore: add readiness checks to basic example * LRevert "chore: add readiness checks to basic example" This reverts commit e8d3ec3. ---------
…oogleCloudPlatform#9841) * feat: add `readiness_checks` to Workstation Config * chore: set path and change port to port 80 * Update WorkstationConfig.yaml Co-authored-by: Shuya Ma <[email protected]> * chore: make readiness checks arguments required * chore: add readiness checks to basic example * LRevert "chore: add readiness checks to basic example" This reverts commit e8d3ec3. ---------
…oogleCloudPlatform#9841) * feat: add `readiness_checks` to Workstation Config * chore: set path and change port to port 80 * Update WorkstationConfig.yaml Co-authored-by: Shuya Ma <[email protected]> * chore: make readiness checks arguments required * chore: add readiness checks to basic example * LRevert "chore: add readiness checks to basic example" This reverts commit e8d3ec3. ---------
…oogleCloudPlatform#9841) * feat: add `readiness_checks` to Workstation Config * chore: set path and change port to port 80 * Update WorkstationConfig.yaml Co-authored-by: Shuya Ma <[email protected]> * chore: make readiness checks arguments required * chore: add readiness checks to basic example * LRevert "chore: add readiness checks to basic example" This reverts commit e8d3ec3. ---------
Adds the
readiness_checks
argument block to thegoogle_workstations_workstation_config
resource.Release Note Template for Downstream PRs (will be copied)
Relates hashicorp/terraform-provider-google#16997