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.29k stars 1.72k forks source link

Failing test(s): TestAccCloudRunV2Service_* #19226

Open ScottSuarez opened 3 weeks ago

ScottSuarez commented 3 weeks ago

Impacted tests

We are seeing a persistent diff on the following tests:

TestAccCloudRunV2Service_cloudrunv2ServiceGcsVolume
  First Failed: 2024-08-18 05:53:47
  Newly Failing: true
  Recent Build URL: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251
  Test History URL: https://hashicorp.teamcity.com/test/-1423440449246486740?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS
  Duration: 40319ms
TestAccCloudRunV2Service_cloudrunv2ServiceMountNfsExample
  First Failed: 2024-08-18 05:53:47
  Newly Failing: true
  Recent Build URL: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251
  Test History URL: https://hashicorp.teamcity.com/test/-5649320209533837949?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS
  Duration: 317201ms
TestAccCloudRunV2Service_cloudrunv2ServiceMountGcsExample
  First Failed: 2024-08-18 05:53:47
  Newly Failing: true
  Recent Build URL: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251
  Test History URL: https://hashicorp.teamcity.com/test/-8275376366609650111?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS
  Duration: 40424ms
TestAccCloudRunV2Job_cloudrunv2JobWithNfsUpdate
  First Failed: 2024-08-18 05:53:47
  Newly Failing: true
  Recent Build URL: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251
  Test History URL: https://hashicorp.teamcity.com/test/1875389182834780503?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS
  Duration: 25597ms
TestAccCloudRunV2Job_cloudrunv2JobWithGcsUpdate
  First Failed: 2024-08-18 05:53:47
  Newly Failing: true
  Recent Build URL: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251
  Test History URL: https://hashicorp.teamcity.com/test/313431844967452854?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS
  Duration: 27683ms

Affected Resource(s)

Failure rates

Message(s)

google_cloud_run_v2_service appears to not be respecting the set on apply value for launch_stage.

Example failure:

------- Stdout: -------
=== RUN   TestAccCloudRunV2Service_cloudrunv2ServiceMountGcsExample
=== PAUSE TestAccCloudRunV2Service_cloudrunv2ServiceMountGcsExample
=== CONT  TestAccCloudRunV2Service_cloudrunv2ServiceMountGcsExample
    vcr_utils.go:152: Step 1/2 error: After applying this test step, the plan was not empty.
        stdout:
        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place
        Terraform will perform the following actions:
          # google_cloud_run_v2_service.default will be updated in-place
          ~ resource "google_cloud_run_v2_service" "default" {
                id                      = "projects/meep-merp/locations/us-central1/services/tf-test-cloudrun-abc"
              ~ launch_stage            = "GA" -> "BETA"
                name                    = "tf-test-cloudrun-servicemzj3yidmma"
                # (27 unchanged attributes hidden)
              ~ template {
                  + annotations                      = {}
                  + labels                           = {}
                    # (7 unchanged attributes hidden)
                  ~ containers {
                      + args        = []
                      + command     = []
                      + depends_on  = []
                        name        = null
                        # (2 unchanged attributes hidden)
                        # (4 unchanged blocks hidden)
                    }
                    # (2 unchanged blocks hidden)
                }
                # (1 unchanged block hidden)
            }
        Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccCloudRunV2Service_cloudrunv2ServiceMountGcsExample (40.35s)
FAIL

Nightly build test history

https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_BETA_NIGHTLYTESTS_GOOGLEBETA_PACKAGE_CLOUDRUNV2/222251?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&expandBuildTestsSection=true&hideProblemsFromDependencies=false&expandBuildChangesSection=true

b/361622656

bskaplan commented 3 weeks ago

This is because the GCS and NFS features have been moved from beta to GA, changing the API response. The tests will be fixed by https://github.com/GoogleCloudPlatform/magic-modules/pull/11503