You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have typed an adequate description that explains why I am making this change.
I have installed and run standard pre-commit hooks that lints and validates my code.
Description
Terrtest is continuously failing with below error, full logs here
│ Error: Error, failed to delete instance sql-rr-7e3cc80c-read-replica: Error waiting for Delete Instance: couldn't find resource (21 retries)
│
│
╵***
=== CONT TestTerraformCreateGCPSQL/create_mysql_with_read_replica
destroy.go:11:
Error Trace: /home/runner/work/terraform-gcp-sql/terraform-gcp-sql/test/destroy.go:11
/home/runner/work/terraform-gcp-sql/terraform-gcp-sql/test/gcp_sql_test.go:71
Error: Received unexpected error:
FatalError***Underlying: error while running command: exit status 1; ╷
│ Error: Error, failed to delete instance sql-rr-7e3cc80c-read-replica: Error waiting for Delete Instance: couldn't find resource (21 retries)
│
│
╵***
Test: TestTerraformCreateGCPSQL/create_mysql_with_read_replica
It appears there is a bug in the terraform-google-provider. After reviewing the comments, I discovered that auto retry logic could resolve the issue. Since this functionality is not available in Terratest, I implemented a workaround logic.
Additionally, I updated GitHub Actions and upgraded the Go version to the latest. The Go version update was necessary due to deprecated dependencies.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Submission Checklist
Please confirm that you have done the following before requesting reviews:
Description
It appears there is a bug in the terraform-google-provider. After reviewing the comments, I discovered that auto retry logic could resolve the issue. Since this functionality is not available in Terratest, I implemented a workaround logic.
Additionally, I updated GitHub Actions and upgraded the Go version to the latest. The Go version update was necessary due to deprecated dependencies.
This change is