Open SarahFrench opened 1 year ago
The error message indicates a permission issue, which we've come across for these before. Unclear if this should be forwarded to the service team, since we may need to revisit how the permissions are being configured within our test environment.
I found some config from the Composer tests didn't include dependencies between google_composer_environment
and the related google_project_iam_member
resources, so tests may attempt to create environments before the necessary permissions are in place. See https://github.com/GoogleCloudPlatform/magic-modules/pull/9610
I've made it so the PR won't close this issue.
I've updated this issue as it was a bit stale. The permissions issue is consistently seen for TestAccComposer1Environment_withNodeConfig and other tests pass without permissions issues.
Possibly this is a race condition? A time_sleep might help if the permissions just need to propagate.
Note: https://github.com/hashicorp/terraform-provider-google/issues/14375 also impacts this test.
Marking for forwarding since this is related to a service account created by the test - not part of the test environment.
There was an attempted fix with https://github.com/GoogleCloudPlatform/magic-modules/pull/11926 which adds a 3m wait after the permission is granted, but it is still failing at a very high rate. It occasionally does pass, but it seems like either the 3 minutes is not long enough, or we need another approach.
This is still failing at a very high rate.
Failure rates
100% since 2023-06-29TestAccComposer1Environment_withNodeConfig
)Impacted tests
TestAccComposerEnvironment_ComposerV2TestAccComposerEnvironment_ComposerV2HighResilienceTestAccComposerEnvironment_UpdateComposerV2TestAccComposerEnvironment_UpdateComposerV2WithTriggererAffected Resource(s)
Nightly build test history
Message(s)
Note (2023-12-18): TestAccComposer1Environment_withNodeConfig is failing due to the same error as above
b/326649868