Use the delete timeout when waiting for service networking connection deletion - #18469
Use the delete timeout when waiting for service networking connection deletion#18469ab0utbla-k wants to merge 1 commit into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @ScottSuarez, 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. |
… deletion resourceServiceNetworkingConnectionDelete passed schema.TimeoutCreate to the operation waiter, so a user-configured `delete` timeout was ignored and the `create` timeout governed the delete wait instead. Create and update already use their own timeouts.
3d0aea2 to
c3c594c
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit c3c594c: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 🟢 All tests passed in Replaying mode! No Recording was needed. View the replaying VCR build log @ab0utbla-k VCR tests complete for c3c594c! |
resourceServiceNetworkingConnectionDeletepassesschema.TimeoutCreateto the operation waiter instead ofschema.TimeoutDelete:https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/services/servicenetworking/resource_service_networking_connection.go#L354
Create and update already use their own timeouts (
TimeoutCreate/TimeoutUpdate), so delete looks like an oversight.Effect on users: a configured
deletetimeout is silently ignored, and thecreatetimeout governs the delete wait instead.All three defaults are 10m, so the default behaviour is unchanged and this only surfaces once someone sets a custom timeout. That matters for this resource in particular, since deletes can be slow when service producer resources are still being released.
Tests
No new test. The bug is not observable through the acceptance test framework — it only changes how long the waiter is allowed to run, and asserting on it would mean a test that deliberately waits out a timeout.
Verified by generating both providers; the downstream diff is this one line in each:
google/services/servicenetworking/resource_service_networking_connection.gogoogle-beta/services/servicenetworking/resource_service_networking_connection.gogo build ./...andgo vet ./google/services/servicenetworking/...pass.