hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.35k stars 1.75k forks source link

Failing test(s): TestAccDiscoveryEngineDataStore_discoveryengineDatastoreBasicExample_update #18954

Closed SarahFrench closed 3 months ago

SarahFrench commented 3 months ago

Impacted tests

Affected Resource(s)

Failure rates

Message(s)

------- Stdout: -------
=== RUN   TestAccDiscoveryEngineDataStore_discoveryengineDatastoreBasicExample_update
=== PAUSE TestAccDiscoveryEngineDataStore_discoveryengineDatastoreBasicExample_update
=== CONT  TestAccDiscoveryEngineDataStore_discoveryengineDatastoreBasicExample_update
    vcr_utils.go:152: Step 3/4 error: Error running apply: exit status 1
        Error: Error creating DataStore: googleapi: Error 400: DataStore projects/594424405950/locations/global/collections/default_collection/dataStores/tf-test-data-store-idc4rje4nvfs is being deleted, please wait for deletion to complete before recreating with the same ID. The deletion could take a couple of hours.
          with google_discovery_engine_data_store.basic,
          on terraform_plugin_test.tf line 2, in resource "google_discovery_engine_data_store" "basic":
           2: resource "google_discovery_engine_data_store" "basic" {
--- FAIL: TestAccDiscoveryEngineDataStore_discoveryengineDatastoreBasicExample_update (16.28s)
FAIL

Nightly build test history

https://hashicorp.teamcity.com/test/-225456685468003286?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_NIGHTLYTESTS&expandTestHistoryChartSection=true

b/357622050

SarahFrench commented 3 months ago

The data store is being deleted and recreated during the test. I believe this is because the 'update' test is changing the value of an immutable field and is causing the resource to be replaced, not updated.

melinath commented 3 months ago

Taking this on due to high test failure count

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.