-
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
Fix nightly test failure of billing_project
related acceptance tests
#12122
Fix nightly test failure of billing_project
related acceptance tests
#12122
Conversation
@@ -293,16 +300,6 @@ resource "google_pubsub_topic" "example-resource-in" { | |||
// the PubSub API. This allows the second apply step to succeed in a test, if needed. | |||
func testAccSdkProvider_billing_project_useBillingProject_setupWithApiEnabled(context map[string]interface{}) string { | |||
return testAccSdkProvider_billing_project_useBillingProject_setup(context) + acctest.Nprintf(` | |||
# Needed for post test cleanup |
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.
This has been moved 'up' into testAccSdkProvider_billing_project_useBillingProject_setup
, so it's still present in testAccSdkProvider_billing_project_useBillingProject_setupWithApiEnabled
.
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: 4212 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. |
unrelated to PR 2024/10/24 21:17:42 [DEBUG] [transport] [server-transport 0xc002694d00] loopyWriter exiting with error: transport closed by client
resource_sql_database_instance_test.go:1818: Step 3/4 error: Error running apply: exit status 1
Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Only ENTERPRISE PLUS edition supports data cache.., invalid
with google_sql_database_instance.instance,
on terraform_plugin_test.tf line 3, in resource "google_sql_database_instance" "instance":
3: resource "google_sql_database_instance" "instance" {
2024/10/24 21:17:42 [DEBUG] [transport] [server-transport 0xc002a01860] Closing: EOF
2024/10/24 21:17:42 [DEBUG] [transport] [server-transport 0xc002a01a00] Closing: EOF
2024/10/24 21:17:42 [DEBUG] [transport] [server-transport 0xc002a01a00] loopyWriter exiting with error: transport closed by client
2024/10/24 21:17:43 [DEBUG] [transport] [server-transport 0xc0024ccd00] Closing: EOF
2024/10/24 21:17:43 [DEBUG] [transport] [server-transport 0xc0031809c0] Closing: EOF
2024/10/24 21:17:43 [DEBUG] [transport] [server-transport 0xc003180b60] Closing: EOF
2024/10/24 21:17:43 [DEBUG] [transport] [server-transport 0xc001d83ba0] Closing: EOF
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc0024ccea0] Closing: EOF
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc003180d00] Closing: EOF
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc00112ed00] Closing: EOF
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc001d83d40] Closing: EOF
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc0024ccea0] loopyWriter exiting with error: transport closed by client
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc001d83d40] loopyWriter exiting with error: transport closed by client
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc003180d00] loopyWriter exiting with error: transport closed by client
2024/10/24 21:19:16 [DEBUG] [transport] [server-transport 0xc00112ed00] loopyWriter exiting with error: transport closed by client
--- FAIL: TestAccSqlDatabaseInstance_Edition_Downgrade (583.02s) issue opened here: hashicorp/terraform-provider-google#20010 |
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.
looks good. Thanks for including the link to the teamcity test!
This PR updates the 'usage' test cases in TestAccSdkProvider_billing_project so that the newly provisioned project always has the Service Usage API enabled. This is needed to address failures in nightly tests.
This doesn't impact the acceptance tests' validity, as they only rely on the PubSub API being dis/enabled in the new project. Service Usage API doesn't impact that.
Here's the error being solved:
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.