Skip to content
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

Sync 5.0.0 with main Part 3 #8552

Merged
merged 92 commits into from
Aug 4, 2023
Merged

Conversation

shuyama1
Copy link
Member

@shuyama1 shuyama1 commented Aug 3, 2023

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)


shuyama1 and others added 30 commits July 20, 2023 14:53
* Add optional_components to documentation

* Fix formatting, remove redundant optional

* Clean up properties documentation

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Add asterisks

---------

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
* Add comments, link to TeamCity Kotlin DSL docs

* Change default value of environment from "public" to "default"

This is because Google provider has no public TeamCity resources

* Enable different default cron values for `ga`/`beta` downstreams

* Enable non-default cron values to be used, based on value of `environment` parameter in TeamCity

* Add ability to make VCS root and nightly trigger use non-main branch

* Update tests to reflect how entrypoint func requires `branch` parameter now

* Update `MAJOR_RELEASE_TESTING` value, and update code to handle unsupported chars

* Update `uniqueID` method to uppercase the environment value
* fix enforce_on_key_configs

* add updatemask

---------

Co-authored-by: Edward Sun <[email protected]>
* chore: replace tgc compare library to go-cmp

* convert indent to tab

* fix import
* Writing yaml

Writing

Succeeding

Writing real yamls

Refactor

Refactor

Stop reading output

Update

Remove extra puts, resource to_yaml method

Spaces --> tabs

Remove

* Remove debugging

* Spaces

* Test

* PR feedback, add rspec test

Remove spec from folder

* PR feedback, rename openapi_generate

* Add comment
* Move function serviceAccountCanonicalEmail

* Move provider tests

* accessapproval tetss

* Move activedirectory_test, appengine_test, bigquery_test, bigquerydatatransfer_test, bigtable_test

* Move composer_test, cloudtasks_test, cloudrun_test, cloudiot_test, cloudids_test

* Move compute_test

* Move firestore_test

* Move redis_test

* Move storagetransfer_test

* Fix errors

* Move vpcaccess_test

* Move apigee_test

* Put function to test_utils.go to not break tgc

* Remove spaces

* Move resource_endpoints_service_test.go back to the google package

* Fix rebasing errors
* Writing yaml

Writing

Succeeding

Writing real yamls

Refactor

Refactor

Stop reading output

Update

Remove extra puts, resource to_yaml method

Spaces --> tabs

Remove

* Remove debugging

* Spaces

* Test

* PR feedback, add rspec test

Remove spec from folder

* PR feedback, rename openapi_generate

* Add comment

* Attempt

* Add async initialize defaults

* Rubocop

* Autofix rubocop
…ackage (#8428)

* Revert "Fix the folder to run sweepers (#8425)"

This reverts commit 18d4037.

* Revert "pre-sweeper and post-sweeper should only run in the google/google-beta package for now (#8423)"

This reverts commit 762c77b.
* Adding custom_audiences field for cloud run v2 service.

* Add custom audiences example for Cloud Run v2 API
* tgc: update test data to beta

* fix integration test
* making sure swp can be created without scope and certificateUrls
* add net_admin field to container cluster for autopilot clusters

* add allow_net_admin tests

* tweak param name

* fix net_admin test format string

* fix syntax bug

* fix api field typo

* version safety and ImportStateVerifyIgnore for min_master_version in test

* comment change

* Add documentation and remove provider-side validation

* add update test
* add depends_on

* change depends_on value
* Merge run provider tests and use built provider

* Add aliases, fix link

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Move hint and link to wiki

* Reorganize into tabs

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Add tabs for provider version

* Fix link

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Move delve into tabs

* Fix ref links

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

---------

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
* Use module tpg in go.mod

* Remove comment
morshielt and others added 8 commits August 1, 2023 15:22
#8406)

* Properly handle ABP midnight (hours = 0)

* Add ExpectNonEmptyPlan to test

* Add continuous backup config to alloydb cluster

* add more unit tests

* Adding more tests

* Fix cluster.yaml lint

* Add default value and update cmek test

* Update test to use kms key bootstrapping util

* condense update tests

* Change encryptionType output field to string

* use two different keys

* Only update encryption in CBR
… notification configs. (#8507)

* Add support for setting `sendPreviousResourceOnDelete` for FHIR store notification configs.

* Add test for sendPreviousResourceOnDelete
)

* adding both resources, basic test for serviceClass it's working, need to fix the test scenario for policy

* fix the test scenario and the service class resource properties

* adding a testing update, just adding the labels for the resource

* added the resource service connection map, and it's basic test, need to evaluate

* Revert "added the resource service connection map, and it's basic test, need to evaluate"

This reverts commit 4240e1d.

* removing the service class in one test scenario and using a static value

* fix a typo

* removing serviceClass and fix the tests

* removing ga tag and updatinga etag for fingerprint type

* updating the code, to remove the static value from the docs, need to test

* adding a file to tpgtools override at product level

* adding function to help with env var, but the patch on tests it's failing

* adding the variable to be used in the docs

* fixing the test, the network field cannot be immutable

* removing the env_var service class and adding a static value

* updating the value used from tests and documentation

* removing unused resources for docs and tests

* fix typos, not used variables and run the fmt

* adding description to the basic test

* fixed yaml variable override

* removing unused resources for tests, and making the test fails with network as immutable

* adding encoder to help network field be immutable and be sent on patch method
@google-cla
Copy link

google-cla bot commented Aug 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field internal_ipv6_prefix within resource google_compute_subnetwork was either removed or renamed - reference
  • Field max_throughput default value changed from to 300 on google_vpc_access_connector - reference
  • Field max_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference
  • Field min_throughput default value changed from to 200 on google_vpc_access_connector - reference
  • Field min_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 191 files changed, 12798 insertions(+), 1751 deletions(-))
Terraform Beta: Diff ( 199 files changed, 13366 insertions(+), 3061 deletions(-))
TF Conversion: Diff ( 51 files changed, 1905 insertions(+), 184 deletions(-))
TF OiCS: Diff ( 69 files changed, 1775 insertions(+), 35 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_cloud_run_v2_service (24 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_cloud_run_v2_service" "primary" {
  custom_audiences = # value needed
}

Resource: google_compute_instance_from_machine_image (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_machine_image" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_compute_instance_from_template (10 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_template" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_container_cluster (224 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_cluster" "primary" {
  allow_net_admin = # value needed
  node_pool {
    network_config {
      additional_node_network_configs {
        network    = # value needed
        subnetwork = # value needed
      }
      additional_pod_network_configs {
        max_pods_per_node   = # value needed
        secondary_pod_range = # value needed
        subnetwork          = # value needed
      }
    }
    node_config {
      host_maintenance_policy {
        maintenance_interval = # value needed
      }
    }
  }
}

Resource: google_container_node_pool (51 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_node_pool" "primary" {
  network_config {
    additional_pod_network_configs {
      max_pods_per_node   = # value needed
      secondary_pod_range = # value needed
      subnetwork          = # value needed
    }
  }
}

Resource: google_monitoring_alert_policy (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_monitoring_alert_policy" "primary" {
  conditions {
    condition_prometheus_query_language {
      alert_rule          = # value needed
      duration            = # value needed
      evaluation_interval = # value needed
      labels              = # value needed
      query               = # value needed
      rule_group          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2921
Passed tests 2504
Skipped tests: 303
Affected tests: 114

Action taken

Found 114 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccBigqueryDataTransferConfig|TestAccMonitoringAlertPolicy|TestAccNetworkServicesGateway_minimalSwp|TestAccWorkstationsWorkstationConfig_workstationConfigAcceleratorsExample|TestAccVPCAccessConnector_vpcAccessConnectorThroughput|TestAccVPCAccessConnector_vpcAccessConnectorExample|TestAccVPCAccessConnector_vpcAccessConnectorSharedVpcExample|TestAccMonitoringMonitoredProject_projectNumShortForm|TestAccMonitoringMonitoredProject_projectNumLongForm|TestAccNetworkConnectivityServiceConnectionPolicy_networkConnectivityPolicyBasicExample|TestAccNetworkConnectivityServiceConnectionPolicy_update|TestAccMonitoringUptimeCheckConfig_changeNonUpdatableFields|TestAccMonitoringUptimeCheckConfig_update|TestAccMonitoringUptimeCheckConfig_jsonPathUpdate|TestAccLookerInstance_lookerInstanceEnterpriseFullExample|TestAccVPCAccessConnectorDatasource_basic|TestAccHealthcareFhirStore_basic|TestAccHealthcareFhirStore_healthcareFhirStoreNotificationConfigsExample|TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample|TestAccDocumentAIWarehouseLocation_documentAiWarehouseLocationExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaTimestampExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaDatetimeExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaMapExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaEnumExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaPropertyEnumExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaPropertyExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaFloatExample|TestAccContainerCluster_withPrivateClusterConfigGlobalAccessEnabledOnly|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaIntegerExample|TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaTextExample|TestAccContainerCluster_customPlacementPolicy|TestAccComputeSecurityPolicy_update|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileAlloydbExample|TestAccComputeSecurityPolicy_withPreconfiguredWafConfig|TestAccContainerCluster_withEnablePrivateEndpointToggle|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupPscServiceAttachmentExample|TestAccContainerCluster_autopilot_net_admin|TestAccContainerNodePool_withHostMaintenancePolicy|TestAccContainerNodePool_customPlacementPolicy|TestAccContainerCluster_withEnableKubernetesBetaAPIsOnExistingCluster|TestAccContainerCluster_withEnableKubernetesBetaAPIs|TestAccSpannerDatabase_enableDropProtection|TestAccContainerCluster_withMultiNetworking|TestAccComputeInstance_ipv6ExternalReservation|TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout|TestAccSpannerDatabase_basic|TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate|TestAccComputeServiceAttachment_serviceAttachmentExplicitProjectsExample|TestAccComputeServiceAttachment_serviceAttachmentBasicExample|TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout|TestAccComputeSecurityPolicy_withRedirectOptionsUpdate|TestAccComputeSecurityPolicy_withHeadAction|TestAccComputeServiceAttachment_serviceAttachmentReconcileConnectionsExample|TestAccComputeInstanceTemplate_localSsdRecoveryTimeout|TestAccComputeSecurityPolicy_EnforceOnKeyUpdates|TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout|TestAccComputeInstance_localSsdRecoveryTimeout_update|TestAccComputeInstanceFromMachineImage_localSsdRecoveryTimeout|TestAccComputeRegionBackendService_regionBackendServiceConnectionTrackingExample|TestAccPubsubSubscription_pushNoWrapper|TestAccComputeInstanceFromMachineImageWithOverride_localSsdRecoveryTimeout|TestAccContainerNodePool_withMultiNicNetworkConfig|TestAccComputeInstance_localSsdRecoveryTimeout|TestAccComputeDisk_multiWriter|TestAccCloudBuildTrigger_cloudbuildTriggerPubsubConfigExample|TestAccComputeForwardingRule_forwardingRuleVpcPscExampleUpdate|TestAccCloudbuildWorkerPool_withNetwork|TestAccCloudBuildTrigger_cloudbuildTriggerWebhookConfigExample|TestAccCloudIdsEndpoint_basic|TestAccCloudBuildTrigger_cloudbuildTriggerManualExample|TestAccCloudRunV2Job_cloudrunv2JobVpcaccessExample|TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate|TestAccCloudRunService_cloudRunServiceCreateHasStatus|TestAccCloudFunctionsFunction_vpcConnector|TestAccCloudBuildTrigger_cloudbuildTriggerPubsubWithRepoExample|TestAccAppEngineFirewallRule_appEngineFirewallRuleBasicExample|TestAccAlloydbInstance_update|TestAccComputeForwardingRule_forwardingRuleVpcPscNoAutomateDnsExample|TestAccAlloydbCluster_continuousBackup_CMEKIsUpdatable|TestAccComputeForwardingRule_forwardingRuleVpcPscExample|TestAccAlloydbInstance_alloydbInstanceBasicExample|TestAccAlloydbCluster_continuousBackup_update|TestAccAppEngineApplication_withIAP|TestAccCloudBuildTrigger_cloudbuildTriggerBitbucketServerPullRequestExample|TestAccAlloydbCluster_continuousBackup_noChangeIfRemoved|TestAccAppEngineApplication_basic|TestAccCloudBuildTrigger_cloudbuildTriggerBitbucketServerPushExample|TestAccAlloydbCluster_continuousBackup_update_noChangeIfDefaultsSet|TestAccAlloydbCluster_continuousBackup_enabledByDefault|TestAccCloudRunV2Job_cloudrunv2JobFullUpdate|TestAccAlloydbBackup_createBackupWithMandatoryFields|TestAccCloudBuildTrigger_cloudbuildTriggerRepoExample|TestAccIapWebTypeAppEngineIamMemberGenerated_withCondition|TestAccIapWebTypeAppEngineIamBindingGenerated_withCondition|TestAccIapWebTypeAppEngineIamPolicyGenerated|TestAccIapWebRegionBackendServiceIamBindingGenerated_withCondition|TestAccIapWebRegionBackendServiceIamPolicyGenerated|TestAccIapWebTypeAppEngineIamBindingGenerated|TestAccIapWebRegionBackendServiceIamMemberGenerated|TestAccIapWebRegionBackendServiceIamPolicyGenerated_withCondition|TestAccIapWebRegionBackendServiceIamBindingGenerated|TestAccAlloydbInstance_updateDatabaseFlagInPrimaryInstance|TestAccAppEngineStandardAppVersion_update|TestAccIapWebRegionBackendServiceIamMemberGenerated_withCondition|TestAccAlloydbInstance_createPrimaryAndReadPoolInstance|TestAccAlloydbInstance_createInstanceWithMandatoryFields|TestAccAlloydbCluster_maximumFields|TestAccAlloydbInstance_createInstanceWithMaximumFields|TestAccIapWebTypeAppEngineIamMemberGenerated|TestAccAlloydbCluster_AutomatedBackupPolicyHandlesMidnight|TestAccAlloydbCluster_alloydbClusterFullExample|TestAccCloudRunV2Service_cloudrunv2ServiceVpcaccessExample|TestAccIapWebTypeAppEngineIamPolicyGenerated_withCondition|TestAccAlloydbCluster_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccBigqueryDataTransferConfig[Debug log]
TestAccMonitoringAlertPolicy[Debug log]
TestAccNetworkServicesGateway_minimalSwp[Debug log]
TestAccWorkstationsWorkstationConfig_workstationConfigAcceleratorsExample[Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorThroughput[Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorExample[Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorSharedVpcExample[Debug log]
TestAccMonitoringMonitoredProject_projectNumShortForm[Debug log]
TestAccMonitoringMonitoredProject_projectNumLongForm[Debug log]
TestAccNetworkConnectivityServiceConnectionPolicy_networkConnectivityPolicyBasicExample[Debug log]
TestAccNetworkConnectivityServiceConnectionPolicy_update[Debug log]
TestAccMonitoringUptimeCheckConfig_changeNonUpdatableFields[Debug log]
TestAccMonitoringUptimeCheckConfig_update[Debug log]
TestAccMonitoringUptimeCheckConfig_jsonPathUpdate[Debug log]
TestAccLookerInstance_lookerInstanceEnterpriseFullExample[Debug log]
TestAccHealthcareFhirStore_basic[Debug log]
TestAccHealthcareFhirStore_healthcareFhirStoreNotificationConfigsExample[Debug log]
TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample[Debug log]
TestAccDocumentAIWarehouseLocation_documentAiWarehouseLocationExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaTimestampExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaDatetimeExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaMapExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaEnumExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaPropertyEnumExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaPropertyExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaFloatExample[Debug log]
TestAccContainerCluster_withPrivateClusterConfigGlobalAccessEnabledOnly[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaIntegerExample[Debug log]
TestAccDocumentAIWarehouseDocumentSchema_documentAiWarehouseDocumentSchemaTextExample[Debug log]
TestAccContainerCluster_customPlacementPolicy[Debug log]
TestAccComputeSecurityPolicy_update[Debug log]
TestAccComputeSecurityPolicy_withPreconfiguredWafConfig[Debug log]
TestAccContainerCluster_withEnablePrivateEndpointToggle[Debug log]
TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupPscServiceAttachmentExample[Debug log]
TestAccContainerCluster_autopilot_net_admin[Debug log]
TestAccContainerNodePool_withHostMaintenancePolicy[Debug log]
TestAccContainerNodePool_customPlacementPolicy[Debug log]
TestAccContainerCluster_withEnableKubernetesBetaAPIsOnExistingCluster[Debug log]
TestAccContainerCluster_withEnableKubernetesBetaAPIs[Debug log]
TestAccSpannerDatabase_enableDropProtection[Debug log]
TestAccContainerCluster_withMultiNetworking[Debug log]
TestAccComputeInstance_ipv6ExternalReservation[Debug log]
TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccSpannerDatabase_basic[Debug log]
TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate[Debug log]
TestAccComputeServiceAttachment_serviceAttachmentExplicitProjectsExample[Debug log]
TestAccComputeServiceAttachment_serviceAttachmentBasicExample[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout[Debug log]
TestAccComputeSecurityPolicy_withRedirectOptionsUpdate[Debug log]
TestAccComputeSecurityPolicy_withHeadAction[Debug log]
TestAccComputeServiceAttachment_serviceAttachmentReconcileConnectionsExample[Debug log]
TestAccComputeInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeSecurityPolicy_EnforceOnKeyUpdates[Debug log]
TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstance_localSsdRecoveryTimeout_update[Debug log]
TestAccComputeInstanceFromMachineImage_localSsdRecoveryTimeout[Debug log]
TestAccComputeRegionBackendService_regionBackendServiceConnectionTrackingExample[Debug log]
TestAccPubsubSubscription_pushNoWrapper[Debug log]
TestAccComputeInstanceFromMachineImageWithOverride_localSsdRecoveryTimeout[Debug log]
TestAccContainerNodePool_withMultiNicNetworkConfig[Debug log]
TestAccComputeInstance_localSsdRecoveryTimeout[Debug log]
TestAccComputeDisk_multiWriter[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerPubsubConfigExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleVpcPscExampleUpdate[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerWebhookConfigExample[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerManualExample[Debug log]
TestAccCloudRunV2Job_cloudrunv2JobVpcaccessExample[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate[Debug log]
TestAccCloudRunService_cloudRunServiceCreateHasStatus[Debug log]
TestAccCloudFunctionsFunction_vpcConnector[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerPubsubWithRepoExample[Debug log]
TestAccAppEngineFirewallRule_appEngineFirewallRuleBasicExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleVpcPscNoAutomateDnsExample[Debug log]
TestAccAlloydbCluster_continuousBackup_CMEKIsUpdatable[Debug log]
TestAccComputeForwardingRule_forwardingRuleVpcPscExample[Debug log]
TestAccAlloydbCluster_continuousBackup_update[Debug log]
TestAccAppEngineApplication_withIAP[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerBitbucketServerPullRequestExample[Debug log]
TestAccAlloydbCluster_continuousBackup_noChangeIfRemoved[Debug log]
TestAccAppEngineApplication_basic[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerBitbucketServerPushExample[Debug log]
TestAccAlloydbCluster_continuousBackup_update_noChangeIfDefaultsSet[Debug log]
TestAccAlloydbCluster_continuousBackup_enabledByDefault[Debug log]
TestAccCloudRunV2Job_cloudrunv2JobFullUpdate[Debug log]
TestAccCloudBuildTrigger_cloudbuildTriggerRepoExample[Debug log]
TestAccIapWebTypeAppEngineIamMemberGenerated_withCondition[Debug log]
TestAccIapWebTypeAppEngineIamBindingGenerated_withCondition[Debug log]
TestAccIapWebTypeAppEngineIamPolicyGenerated[Debug log]
TestAccIapWebRegionBackendServiceIamBindingGenerated_withCondition[Debug log]
TestAccIapWebRegionBackendServiceIamPolicyGenerated[Debug log]
TestAccIapWebTypeAppEngineIamBindingGenerated[Debug log]
TestAccIapWebRegionBackendServiceIamMemberGenerated[Debug log]
TestAccIapWebRegionBackendServiceIamPolicyGenerated_withCondition[Debug log]
TestAccIapWebRegionBackendServiceIamBindingGenerated[Debug log]
TestAccAppEngineStandardAppVersion_update[Debug log]
TestAccIapWebRegionBackendServiceIamMemberGenerated_withCondition[Debug log]
TestAccAlloydbCluster_maximumFields[Debug log]
TestAccIapWebTypeAppEngineIamMemberGenerated[Debug log]
TestAccAlloydbCluster_AutomatedBackupPolicyHandlesMidnight[Debug log]
TestAccAlloydbCluster_alloydbClusterFullExample[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceVpcaccessExample[Debug log]
TestAccIapWebTypeAppEngineIamPolicyGenerated_withCondition[Debug log]
TestAccAlloydbCluster_update[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccVPCAccessConnectorDatasource_basic[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileAlloydbExample[Error message] [Debug log]
TestAccCloudbuildWorkerPool_withNetwork[Error message] [Debug log]
TestAccCloudIdsEndpoint_basic[Error message] [Debug log]
TestAccAlloydbInstance_update[Error message] [Debug log]
TestAccAlloydbInstance_alloydbInstanceBasicExample[Error message] [Debug log]
TestAccAlloydbBackup_createBackupWithMandatoryFields[Error message] [Debug log]
TestAccAlloydbInstance_updateDatabaseFlagInPrimaryInstance[Error message] [Debug log]
TestAccAlloydbInstance_createPrimaryAndReadPoolInstance[Error message] [Debug log]
TestAccAlloydbInstance_createInstanceWithMandatoryFields[Error message] [Debug log]
TestAccAlloydbInstance_createInstanceWithMaximumFields[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@shuyama1
Copy link
Member Author

shuyama1 commented Aug 4, 2023

/gcbrun

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field internal_ipv6_prefix within resource google_compute_subnetwork was either removed or renamed - reference
  • Field max_throughput default value changed from to 300 on google_vpc_access_connector - reference
  • Field max_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference
  • Field min_throughput default value changed from to 200 on google_vpc_access_connector - reference
  • Field min_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 191 files changed, 12798 insertions(+), 1751 deletions(-))
Terraform Beta: Diff ( 199 files changed, 13366 insertions(+), 3061 deletions(-))
TF Conversion: Diff ( 51 files changed, 1905 insertions(+), 184 deletions(-))
TF OiCS: Diff ( 69 files changed, 1775 insertions(+), 35 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_cloud_run_v2_service (24 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_cloud_run_v2_service" "primary" {
  custom_audiences = # value needed
}

Resource: google_compute_instance_from_machine_image (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_machine_image" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_compute_instance_from_template (10 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_template" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_container_cluster (224 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_cluster" "primary" {
  allow_net_admin = # value needed
  node_pool {
    network_config {
      additional_node_network_configs {
        network    = # value needed
        subnetwork = # value needed
      }
      additional_pod_network_configs {
        max_pods_per_node   = # value needed
        secondary_pod_range = # value needed
        subnetwork          = # value needed
      }
    }
    node_config {
      host_maintenance_policy {
        maintenance_interval = # value needed
      }
    }
  }
}

Resource: google_container_node_pool (51 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_node_pool" "primary" {
  network_config {
    additional_pod_network_configs {
      max_pods_per_node   = # value needed
      secondary_pod_range = # value needed
      subnetwork          = # value needed
    }
  }
}

Resource: google_monitoring_alert_policy (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_monitoring_alert_policy" "primary" {
  conditions {
    condition_prometheus_query_language {
      alert_rule          = # value needed
      duration            = # value needed
      evaluation_interval = # value needed
      labels              = # value needed
      query               = # value needed
      rule_group          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2921
Passed tests 2607
Skipped tests: 303
Affected tests: 11

Action taken

Found 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccVPCAccessConnectorDatasource_basic|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileAlloydbExample|TestAccCloudIdsEndpoint_basic|TestAccCloudbuildWorkerPool_withNetwork|TestAccAlloydbInstance_updateDatabaseFlagInPrimaryInstance|TestAccAlloydbInstance_createPrimaryAndReadPoolInstance|TestAccAlloydbInstance_createInstanceWithMaximumFields|TestAccAlloydbBackup_createBackupWithMandatoryFields|TestAccAlloydbInstance_createInstanceWithMandatoryFields|TestAccAlloydbInstance_update|TestAccAlloydbInstance_alloydbInstanceBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccVPCAccessConnectorDatasource_basic[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileAlloydbExample[Error message] [Debug log]
TestAccCloudIdsEndpoint_basic[Error message] [Debug log]
TestAccCloudbuildWorkerPool_withNetwork[Error message] [Debug log]
TestAccAlloydbInstance_updateDatabaseFlagInPrimaryInstance[Error message] [Debug log]
TestAccAlloydbInstance_createPrimaryAndReadPoolInstance[Error message] [Debug log]
TestAccAlloydbInstance_createInstanceWithMaximumFields[Error message] [Debug log]
TestAccAlloydbBackup_createBackupWithMandatoryFields[Error message] [Debug log]
TestAccAlloydbInstance_createInstanceWithMandatoryFields[Error message] [Debug log]
TestAccAlloydbInstance_update[Error message] [Debug log]
TestAccAlloydbInstance_alloydbInstanceBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@shuyama1 shuyama1 added the override-breaking-change Allows a potential breaking change to be merged label Aug 4, 2023
@shuyama1
Copy link
Member Author

shuyama1 commented Aug 4, 2023

/gcbrun

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field internal_ipv6_prefix within resource google_compute_subnetwork was either removed or renamed - reference
  • Field max_throughput default value changed from to 300 on google_vpc_access_connector - reference
  • Field max_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference
  • Field min_throughput default value changed from to 200 on google_vpc_access_connector - reference
  • Field min_throughput transitioned from optional+computed to optional google_vpc_access_connector - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 191 files changed, 12798 insertions(+), 1751 deletions(-))
Terraform Beta: Diff ( 199 files changed, 13366 insertions(+), 3061 deletions(-))
TF Conversion: Diff ( 51 files changed, 1905 insertions(+), 184 deletions(-))
TF OiCS: Diff ( 69 files changed, 1775 insertions(+), 35 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_cloud_run_v2_service (24 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_cloud_run_v2_service" "primary" {
  custom_audiences = # value needed
}

Resource: google_compute_instance_from_machine_image (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_machine_image" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_compute_instance_from_template (10 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_instance_from_template" "primary" {
  network_interface {
    ipv6_access_config {
      name = # value needed
    }
  }
}

Resource: google_container_cluster (224 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_cluster" "primary" {
  allow_net_admin = # value needed
  node_pool {
    network_config {
      additional_node_network_configs {
        network    = # value needed
        subnetwork = # value needed
      }
      additional_pod_network_configs {
        max_pods_per_node   = # value needed
        secondary_pod_range = # value needed
        subnetwork          = # value needed
      }
    }
    node_config {
      host_maintenance_policy {
        maintenance_interval = # value needed
      }
    }
  }
}

Resource: google_container_node_pool (51 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_container_node_pool" "primary" {
  network_config {
    additional_pod_network_configs {
      max_pods_per_node   = # value needed
      secondary_pod_range = # value needed
      subnetwork          = # value needed
    }
  }
}

Resource: google_monitoring_alert_policy (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_monitoring_alert_policy" "primary" {
  conditions {
    condition_prometheus_query_language {
      alert_rule          = # value needed
      duration            = # value needed
      evaluation_interval = # value needed
      labels              = # value needed
      query               = # value needed
      rule_group          = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2921
Passed tests 2618
Skipped tests: 303
Affected tests: 0

$\textcolor{green}{\textsf{All tests passed in REPLAYING mode.}}$
View the build log

@shuyama1
Copy link
Member Author

shuyama1 commented Aug 4, 2023

For tests failed in #8552 (comment). I think they are related to the recent cleanup of tenant resources b/293326201. Some tests start to fail for pre-existing bootstrapped networks. So I just copied the cassettes over from main as the tests passed #8473 which was before the cleanup in VCR projects. Plus, I just checked our nightly and these tests passed in both ga and beta projects (some other tests failed with the same issue though).

I'm reaching out to the service team and see if it can be resolved. Or simply renaming the pre-existing bootstrapped networks should also fix the problem. Either way, I'll create a fix against the main branch. So I just copied the cassettes over for now to avoid these tests failed for future 5.0.0 PRs

@shuyama1 shuyama1 requested a review from melinath August 4, 2023 18:27
Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really able to confirm that this is correct but it does look like a list of commits by various authors. Were there any merge conflicts that had to be resolved to make this set of changes?

@shuyama1
Copy link
Member Author

shuyama1 commented Aug 4, 2023

No merge conflicts for this one, but it's probably because we only have two changes merged to the 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
override-breaking-change Allows a potential breaking change to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.