-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Failing test(s): TestAccSecurityCenterV2ProjectBigQueryExportConfig_basic + others #20003
Comments
Hi Sarah, do you have more details about the tests to show? We don't have access to the test history and I can't seem to find the test in the repo by searching by this name. |
Here's are the tests in the code: Line 14 in a27d219
Line 14 in a27d219
Line 14 in a27d219
I don't have more details about the tests to show, but I believe there is a Google-internal way that nightly test logs are shared with people from the service team. I don't know the details myself- it might be worth checking with the Google Terraform team. |
Thank you Sarah. I took a look and these tests should be about the |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Added a couple more tests impacted by this issue. |
@vijaykanthm: Do you happen to know the trigger for this error? Is this a lock on the resource from SCC that we need to wait to go away before deletions, are we failing to clean up a pointer/reference to the resource by abandoning the resource? |
I’m not entirely sure about the exact cause, as I don't have access to the TeamCity logs and I've learned that I won’t be able to access them. However, I believe the issue might be due to the dataset still being referenced or locked by SCC, which would prevent its deletion. We might need to add some additional wait time to ensure the lock is released before cleanup. As I mentioned in our discussion, the reason I wanted to implement the cleanup function was to remove references to existing resources before test execution, in order to avoid this type of issue. |
Yep! To clarify a bit more- we need to make sure we run generic/broad resource cleanups outside of individual tests so that we can ensure that they don't execute at the same time as other tests that may be using resources that could be affected. So a test can clean up its own resources under test at the end, but not those of other tests- and those other resources need to be cleaned up through a "sweeper". Not sure why they haven't been effective here. |
Impacted tests
Affected Resource(s)
Failure rates
Message(s)
Nightly build test history
https://hashicorp.teamcity.com/test/2715200116441949818?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_NIGHTLYTESTS&expandTestHistoryChartSection=true&expandedTest=build%3A%28id%3A249228%29%2Cid%3A2000000012
b/375653701
The text was updated successfully, but these errors were encountered: