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

Remove hardcoded values that are handled by the API #11423

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

karolgorc
Copy link
Contributor

@karolgorc karolgorc commented Aug 12, 2024

Resolves Issue #5295

  • removing hardcoded values from buildDisks() for instance_templates

Setting this to defaults is handled by the instance.Insert() API method already

--- PASS: TestAccComputeInstanceTemplate_disksInvalid (9.81s)
--- PASS: TestAccComputeInstanceTemplate_disks (28.82s)

Release Note Template for Downstream PRs (will be copied)

compute: instance_template and region_instance_template no longer have predefined values on their disks on the provider-side 

Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@rileykarson, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions github-actions bot requested a review from rileykarson August 12, 2024 10:50
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/compute-instances and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Aug 12, 2024
@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 1 file changed, 3 deletions(-))
google-beta provider: Diff ( 1 file changed, 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 979
Passed tests: 737
Skipped tests: 72
Affected tests: 170

Click here to see the affected service packages
  • compute

Action taken

Found 170 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeAutoscaler_autoscalerBasicExample
  • TestAccComputeAutoscaler_autoscalerSingleInstanceExample
  • TestAccComputeAutoscaler_multicondition
  • TestAccComputeAutoscaler_scaleDownControl
  • TestAccComputeAutoscaler_scaleInControl
  • TestAccComputeAutoscaler_scaleInControlFixed
  • TestAccComputeAutoscaler_scalingSchedule
  • TestAccComputeAutoscaler_update
  • TestAccComputeBackendService_withBackend
  • TestAccComputeBackendService_withBackendAndIAP
  • TestAccComputeBackendService_withBackendAndMaxUtilization
  • TestAccComputeBackendService_withMaxConnections
  • TestAccComputeBackendService_withMaxConnectionsPerInstance
  • TestAccComputeForwardingRule_forwardingRuleHttpLbExample
  • TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample
  • TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate
  • TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample
  • TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample
  • TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample
  • TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample
  • TestAccComputeGlobalForwardingRule_internalLoadBalancing
  • TestAccComputeInstanceFromRegionTemplate_basic
  • TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromTemplateWithOverride_partnerMetadata
  • TestAccComputeInstanceFromTemplate_012_removableFields
  • TestAccComputeInstanceFromTemplate_basic
  • TestAccComputeInstanceFromTemplate_confidentialInstanceConfigMain
  • TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeInstanceFromTemplate_overrideAttachedDisk
  • TestAccComputeInstanceFromTemplate_overrideBootDisk
  • TestAccComputeInstanceFromTemplate_overrideMetadataDotStartupScript
  • TestAccComputeInstanceFromTemplate_overrideScheduling
  • TestAccComputeInstanceFromTemplate_overrideScratchDisk
  • TestAccComputeInstanceFromTemplate_partnerMetadata
  • TestAccComputeInstanceFromTemplate_self_link_unique
  • TestAccComputeInstanceTemplate_AdvancedMachineFeatures
  • TestAccComputeInstanceTemplate_ConfidentialInstanceConfigMain
  • TestAccComputeInstanceTemplate_EncryptKMS
  • TestAccComputeInstanceTemplate_IP
  • TestAccComputeInstanceTemplate_IPv6
  • TestAccComputeInstanceTemplate_NetworkAttachment
  • TestAccComputeInstanceTemplate_basic
  • TestAccComputeInstanceTemplate_diskIops
  • TestAccComputeInstanceTemplate_diskResourcePolicies
  • TestAccComputeInstanceTemplate_disks
  • TestAccComputeInstanceTemplate_enableDisplay
  • TestAccComputeInstanceTemplate_guestAccelerator
  • TestAccComputeInstanceTemplate_guestAcceleratorSkip
  • TestAccComputeInstanceTemplate_imageShorthand
  • TestAccComputeInstanceTemplate_instanceResourcePolicies
  • TestAccComputeInstanceTemplate_localSsdRecoveryTimeout
  • TestAccComputeInstanceTemplate_maintenance_interval
  • TestAccComputeInstanceTemplate_managedEnvoy
  • TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeInstanceTemplate_metadata_startup_script
  • TestAccComputeInstanceTemplate_minCpuPlatform
  • TestAccComputeInstanceTemplate_networkIP
  • TestAccComputeInstanceTemplate_networkIPAddress
  • TestAccComputeInstanceTemplate_networkTier
  • TestAccComputeInstanceTemplate_nictype_update
  • TestAccComputeInstanceTemplate_partnerMetadata
  • TestAccComputeInstanceTemplate_preemptible
  • TestAccComputeInstanceTemplate_primaryAliasIpRange
  • TestAccComputeInstanceTemplate_queueCount
  • TestAccComputeInstanceTemplate_regionDisks
  • TestAccComputeInstanceTemplate_reservationAffinities
  • TestAccComputeInstanceTemplate_resourceManagerTags
  • TestAccComputeInstanceTemplate_secondaryAliasIpRange
  • TestAccComputeInstanceTemplate_shieldedVmConfig1
  • TestAccComputeInstanceTemplate_shieldedVmConfig2
  • TestAccComputeInstanceTemplate_soleTenantNodeAffinities
  • TestAccComputeInstanceTemplate_sourceImageEncryptionKey
  • TestAccComputeInstanceTemplate_sourceSnapshotEncryptionKey
  • TestAccComputeInstanceTemplate_spot
  • TestAccComputeInstanceTemplate_spot_maxRunDuration
  • TestAccComputeInstanceTemplate_spot_maxRunDuration_deleteTerminationAction
  • TestAccComputeInstanceTemplate_spot_maxRunDuration_stopTerminationAction
  • TestAccComputeInstanceTemplate_subnet_auto
  • TestAccComputeInstanceTemplate_subnet_custom
  • TestAccComputeInstanceTemplate_with18TbScratchDisk
  • TestAccComputeInstanceTemplate_withScratchDisk
  • TestAccComputePerInstanceConfig_removeInstanceOnDestroy
  • TestAccComputePerInstanceConfig_statefulIps
  • TestAccComputePerInstanceConfig_update
  • TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample
  • TestAccComputeRegionAutoscaler_scaleDownControl
  • TestAccComputeRegionAutoscaler_scaleInControl
  • TestAccComputeRegionAutoscaler_scalingSchedule
  • TestAccComputeRegionAutoscaler_update
  • TestAccComputeRegionBackendService_regionBackendServiceBalancingModeExample
  • TestAccComputeRegionBackendService_withBackendInternal
  • TestAccComputeRegionBackendService_withBackendInternalManaged
  • TestAccComputeRegionBackendService_withBackendMultiNic
  • TestAccComputeRegionInstanceTemplate_AdvancedMachineFeatures
  • TestAccComputeRegionInstanceTemplate_ConfidentialInstanceConfigMain
  • TestAccComputeRegionInstanceTemplate_IP
  • TestAccComputeRegionInstanceTemplate_IPv6
  • TestAccComputeRegionInstanceTemplate_basic
  • TestAccComputeRegionInstanceTemplate_diskIops
  • TestAccComputeRegionInstanceTemplate_diskResourcePolicies
  • TestAccComputeRegionInstanceTemplate_enableDisplay
  • TestAccComputeRegionInstanceTemplate_guestAccelerator
  • TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip
  • TestAccComputeRegionInstanceTemplate_imageShorthand
  • TestAccComputeRegionInstanceTemplate_instanceResourcePolicies
  • TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout
  • TestAccComputeRegionInstanceTemplate_maintenance_interval
  • TestAccComputeRegionInstanceTemplate_managedEnvoy
  • TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeRegionInstanceTemplate_metadata_startup_script
  • TestAccComputeRegionInstanceTemplate_minCpuPlatform
  • TestAccComputeRegionInstanceTemplate_networkIP
  • TestAccComputeRegionInstanceTemplate_networkIPAddress
  • TestAccComputeRegionInstanceTemplate_networkTier
  • TestAccComputeRegionInstanceTemplate_nictype_update
  • TestAccComputeRegionInstanceTemplate_preemptible
  • TestAccComputeRegionInstanceTemplate_primaryAliasIpRange
  • TestAccComputeRegionInstanceTemplate_queueCount
  • TestAccComputeRegionInstanceTemplate_regionDisks
  • TestAccComputeRegionInstanceTemplate_reservationAffinities
  • TestAccComputeRegionInstanceTemplate_resourceManagerTags
  • TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange
  • TestAccComputeRegionInstanceTemplate_shieldedVmConfig1
  • TestAccComputeRegionInstanceTemplate_shieldedVmConfig2
  • TestAccComputeRegionInstanceTemplate_soleTenantNodeAffinities
  • TestAccComputeRegionInstanceTemplate_sourceImageEncryptionKey
  • TestAccComputeRegionInstanceTemplate_sourceSnapshotEncryptionKey
  • TestAccComputeRegionInstanceTemplate_spot
  • TestAccComputeRegionInstanceTemplate_spot_maxRunDuration
  • TestAccComputeRegionInstanceTemplate_subnet_auto
  • TestAccComputeRegionInstanceTemplate_subnet_custom
  • TestAccComputeRegionInstanceTemplate_with18TbScratchDisk
  • TestAccComputeRegionInstanceTemplate_withScratchDisk
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy
  • TestAccComputeRegionPerInstanceConfig_statefulIps
  • TestAccComputeRegionPerInstanceConfig_update
  • TestAccComputeRegionalInstanceTemplate_partnerMetadata
  • TestAccComputeResizeRequest_computeMigResizeRequestExample
  • TestAccDataSourceGoogleComputeInstanceGroupManager
  • TestAccDataSourceGoogleComputeInstanceGroup_fromIGM
  • TestAccInstanceGroupManager_autoHealingPolicies
  • TestAccInstanceGroupManager_basic
  • TestAccInstanceGroupManager_resourceManagerTags
  • TestAccInstanceGroupManager_self_link_unique
  • TestAccInstanceGroupManager_stateful
  • TestAccInstanceGroupManager_stoppedSuspendedTargetSize
  • TestAccInstanceGroupManager_targetSizeZero
  • TestAccInstanceGroupManager_update
  • TestAccInstanceGroupManager_versions
  • TestAccInstanceGroupManager_waitForStatus
  • TestAccInstanceTemplateDatasource_filter
  • TestAccInstanceTemplateDatasource_filter_mostRecent
  • TestAccInstanceTemplateDatasource_name
  • TestAccInstanceTemplateDatasource_self_link_unique
  • TestAccRegionInstanceGroupManager_APISideListRecordering
  • TestAccRegionInstanceGroupManager_autoHealingPolicies
  • TestAccRegionInstanceGroupManager_basic
  • TestAccRegionInstanceGroupManager_distributionPolicy
  • TestAccRegionInstanceGroupManager_resourceManagerTags
  • TestAccRegionInstanceGroupManager_stateful
  • TestAccRegionInstanceGroupManager_stoppedSuspendedTargetSize
  • TestAccRegionInstanceGroupManager_targetSizeZero
  • TestAccRegionInstanceGroupManager_update
  • TestAccRegionInstanceGroupManager_versions
  • TestAccRegionInstanceTemplateDatasource_filter
  • TestAccRegionInstanceTemplateDatasource_filter_mostRecent
  • TestAccRegionInstanceTemplateDatasource_name

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeAutoscaler_autoscalerBasicExample[Debug log]
TestAccComputeAutoscaler_autoscalerSingleInstanceExample[Debug log]
TestAccComputeAutoscaler_multicondition[Debug log]
TestAccComputeAutoscaler_scaleDownControl[Debug log]
TestAccComputeAutoscaler_scaleInControl[Debug log]
TestAccComputeAutoscaler_scaleInControlFixed[Debug log]
TestAccComputeAutoscaler_scalingSchedule[Debug log]
TestAccComputeAutoscaler_update[Debug log]
TestAccComputeBackendService_withBackend[Debug log]
TestAccComputeBackendService_withBackendAndIAP[Debug log]
TestAccComputeBackendService_withBackendAndMaxUtilization[Debug log]
TestAccComputeBackendService_withMaxConnections[Debug log]
TestAccComputeBackendService_withMaxConnectionsPerInstance[Debug log]
TestAccComputeForwardingRule_forwardingRuleHttpLbExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample[Debug log]
TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample[Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample[Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate[Debug log]
TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample[Debug log]
TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample[Debug log]
TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample[Debug log]
TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample[Debug log]
TestAccComputeGlobalForwardingRule_internalLoadBalancing[Debug log]
TestAccComputeInstanceFromRegionTemplate_basic[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_partnerMetadata[Debug log]
TestAccComputeInstanceFromTemplate_012_removableFields[Debug log]
TestAccComputeInstanceFromTemplate_basic[Debug log]
TestAccComputeInstanceFromTemplate_confidentialInstanceConfigMain[Debug log]
TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceFromTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeInstanceFromTemplate_overrideAttachedDisk[Debug log]
TestAccComputeInstanceFromTemplate_overrideBootDisk[Debug log]
TestAccComputeInstanceFromTemplate_overrideMetadataDotStartupScript[Debug log]
TestAccComputeInstanceFromTemplate_overrideScheduling[Debug log]
TestAccComputeInstanceFromTemplate_overrideScratchDisk[Debug log]
TestAccComputeInstanceFromTemplate_partnerMetadata[Debug log]
TestAccComputeInstanceFromTemplate_self_link_unique[Debug log]
TestAccComputeInstanceTemplate_AdvancedMachineFeatures[Debug log]
TestAccComputeInstanceTemplate_ConfidentialInstanceConfigMain[Debug log]
TestAccComputeInstanceTemplate_EncryptKMS[Debug log]
TestAccComputeInstanceTemplate_IP[Debug log]
TestAccComputeInstanceTemplate_IPv6[Debug log]
TestAccComputeInstanceTemplate_NetworkAttachment[Debug log]
TestAccComputeInstanceTemplate_basic[Debug log]
TestAccComputeInstanceTemplate_diskIops[Debug log]
TestAccComputeInstanceTemplate_diskResourcePolicies[Debug log]
TestAccComputeInstanceTemplate_disks[Debug log]
TestAccComputeInstanceTemplate_enableDisplay[Debug log]
TestAccComputeInstanceTemplate_guestAccelerator[Debug log]
TestAccComputeInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccComputeInstanceTemplate_imageShorthand[Debug log]
TestAccComputeInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceTemplate_maintenance_interval[Debug log]
TestAccComputeInstanceTemplate_managedEnvoy[Debug log]
TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeInstanceTemplate_networkIP[Debug log]
TestAccComputeInstanceTemplate_networkIPAddress[Debug log]
TestAccComputeInstanceTemplate_networkTier[Debug log]
TestAccComputeInstanceTemplate_nictype_update[Debug log]
TestAccComputeInstanceTemplate_partnerMetadata[Debug log]
TestAccComputeInstanceTemplate_preemptible[Debug log]
TestAccComputeInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccComputeInstanceTemplate_queueCount[Debug log]
TestAccComputeInstanceTemplate_regionDisks[Debug log]
TestAccComputeInstanceTemplate_reservationAffinities[Debug log]
TestAccComputeInstanceTemplate_resourceManagerTags[Debug log]
TestAccComputeInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeInstanceTemplate_shieldedVmConfig1[Debug log]
TestAccComputeInstanceTemplate_shieldedVmConfig2[Debug log]
TestAccComputeInstanceTemplate_soleTenantNodeAffinities[Debug log]
TestAccComputeInstanceTemplate_sourceImageEncryptionKey[Debug log]
TestAccComputeInstanceTemplate_sourceSnapshotEncryptionKey[Debug log]
TestAccComputeInstanceTemplate_spot[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration_deleteTerminationAction[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration_stopTerminationAction[Debug log]
TestAccComputeInstanceTemplate_subnet_auto[Debug log]
TestAccComputeInstanceTemplate_subnet_custom[Debug log]
TestAccComputeInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputePerInstanceConfig_removeInstanceOnDestroy[Debug log]
TestAccComputePerInstanceConfig_statefulIps[Debug log]
TestAccComputePerInstanceConfig_update[Debug log]
TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample[Debug log]
TestAccComputeRegionAutoscaler_scaleDownControl[Debug log]
TestAccComputeRegionAutoscaler_scaleInControl[Debug log]
TestAccComputeRegionAutoscaler_scalingSchedule[Debug log]
TestAccComputeRegionAutoscaler_update[Debug log]
TestAccComputeRegionBackendService_regionBackendServiceBalancingModeExample[Debug log]
TestAccComputeRegionBackendService_withBackendInternal[Debug log]
TestAccComputeRegionBackendService_withBackendInternalManaged[Debug log]
TestAccComputeRegionBackendService_withBackendMultiNic[Debug log]
TestAccComputeRegionInstanceTemplate_AdvancedMachineFeatures[Debug log]
TestAccComputeRegionInstanceTemplate_ConfidentialInstanceConfigMain[Debug log]
TestAccComputeRegionInstanceTemplate_IP[Debug log]
TestAccComputeRegionInstanceTemplate_IPv6[Debug log]
TestAccComputeRegionInstanceTemplate_basic[Debug log]
TestAccComputeRegionInstanceTemplate_diskIops[Debug log]
TestAccComputeRegionInstanceTemplate_diskResourcePolicies[Debug log]
TestAccComputeRegionInstanceTemplate_enableDisplay[Debug log]
TestAccComputeRegionInstanceTemplate_guestAccelerator[Debug log]
TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccComputeRegionInstanceTemplate_imageShorthand[Debug log]
TestAccComputeRegionInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeRegionInstanceTemplate_maintenance_interval[Debug log]
TestAccComputeRegionInstanceTemplate_managedEnvoy[Debug log]
TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeRegionInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeRegionInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeRegionInstanceTemplate_networkIP[Debug log]
TestAccComputeRegionInstanceTemplate_networkIPAddress[Debug log]
TestAccComputeRegionInstanceTemplate_networkTier[Debug log]
TestAccComputeRegionInstanceTemplate_nictype_update[Debug log]
TestAccComputeRegionInstanceTemplate_preemptible[Debug log]
TestAccComputeRegionInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_queueCount[Debug log]
TestAccComputeRegionInstanceTemplate_regionDisks[Debug log]
TestAccComputeRegionInstanceTemplate_reservationAffinities[Debug log]
TestAccComputeRegionInstanceTemplate_resourceManagerTags[Debug log]
TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_shieldedVmConfig1[Debug log]
TestAccComputeRegionInstanceTemplate_shieldedVmConfig2[Debug log]
TestAccComputeRegionInstanceTemplate_soleTenantNodeAffinities[Debug log]
TestAccComputeRegionInstanceTemplate_sourceImageEncryptionKey[Debug log]
TestAccComputeRegionInstanceTemplate_sourceSnapshotEncryptionKey[Debug log]
TestAccComputeRegionInstanceTemplate_spot[Debug log]
TestAccComputeRegionInstanceTemplate_spot_maxRunDuration[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_auto[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_custom[Debug log]
TestAccComputeRegionInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputeRegionInstanceTemplate_withScratchDisk[Debug log]
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy[Debug log]
TestAccComputeRegionPerInstanceConfig_statefulIps[Debug log]
TestAccComputeRegionPerInstanceConfig_update[Debug log]
TestAccComputeRegionalInstanceTemplate_partnerMetadata[Debug log]
TestAccComputeResizeRequest_computeMigResizeRequestExample[Debug log]
TestAccDataSourceGoogleComputeInstanceGroupManager[Debug log]
TestAccDataSourceGoogleComputeInstanceGroup_fromIGM[Debug log]
TestAccInstanceGroupManager_autoHealingPolicies[Debug log]
TestAccInstanceGroupManager_basic[Debug log]
TestAccInstanceGroupManager_resourceManagerTags[Debug log]
TestAccInstanceGroupManager_self_link_unique[Debug log]
TestAccInstanceGroupManager_stateful[Debug log]
TestAccInstanceGroupManager_stoppedSuspendedTargetSize[Debug log]
TestAccInstanceGroupManager_targetSizeZero[Debug log]
TestAccInstanceGroupManager_update[Debug log]
TestAccInstanceGroupManager_versions[Debug log]
TestAccInstanceGroupManager_waitForStatus[Debug log]
TestAccInstanceTemplateDatasource_filter[Debug log]
TestAccInstanceTemplateDatasource_filter_mostRecent[Debug log]
TestAccInstanceTemplateDatasource_name[Debug log]
TestAccInstanceTemplateDatasource_self_link_unique[Debug log]
TestAccRegionInstanceGroupManager_APISideListRecordering[Debug log]
TestAccRegionInstanceGroupManager_autoHealingPolicies[Debug log]
TestAccRegionInstanceGroupManager_basic[Debug log]
TestAccRegionInstanceGroupManager_distributionPolicy[Debug log]
TestAccRegionInstanceGroupManager_resourceManagerTags[Debug log]
TestAccRegionInstanceGroupManager_stateful[Debug log]
TestAccRegionInstanceGroupManager_stoppedSuspendedTargetSize[Debug log]
TestAccRegionInstanceGroupManager_targetSizeZero[Debug log]
TestAccRegionInstanceGroupManager_update[Debug log]
TestAccRegionInstanceGroupManager_versions[Debug log]
TestAccRegionInstanceTemplateDatasource_filter[Debug log]
TestAccRegionInstanceTemplateDatasource_filter_mostRecent[Debug log]
TestAccRegionInstanceTemplateDatasource_name[Debug log]

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceTemplate_withScratchDisk[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@karolgorc
Copy link
Contributor Author

This was messing up the order of the disks in terraform state

else if v := disk["type"]; v.(string) == "SCRATCH" {
    iface := disk["interface"].(string)
    if iface == "" {
        // apply-time default
        iface = "SCSI"
    }
    scratchDisksByInterface[iface] = append(scratchDisksByInterface[iface], i)
}
--- PASS: TestAccComputeInstanceTemplate_withScratchDisk (24.91s)

Tested the default values and the config from this test after the fix with google_compute_instance_from_template as well. Here is the log showing that the values are set correctly without the hardcode

2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: ---[ REQUEST ]---------------------------------------
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: GET /compute/v1/projects/iac-poc-krakow/zones/us-central1-a/instances/testing?alt=json&prettyPrint=false HTTP/1.1
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: Host: compute.googleapis.com
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: User-Agent: google-api-go-client/0.5 Terraform/1.9.2 (+https://www.terraform.io) Terraform-Plugin-SDK/2.33.0 terraform-provider-google/dev
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: X-Goog-Api-Client: gl-go/1.22.6 gdcl/0.191.0
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: Accept-Encoding: gzip
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google
2024-08-13T09:56:25.935+0200 [DEBUG] provider.terraform-provider-google: -----------------------------------------------------
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: 2024/08/13 09:56:26 [DEBUG] Google API Response Details:
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: ---[ RESPONSE ]--------------------------------------
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: HTTP/2.0 200 OK
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Cache-Control: private
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Content-Type: application/json; charset=UTF-8
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Date: Tue, 13 Aug 2024 07:56:27 GMT
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Etag: 3euIFeMXh06K09y256c7-kE0PEE=/Dn7HmnUaQXoR1oNHYFDgvwBQq-g=
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Server: ESF
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Vary: Origin
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Vary: X-Origin
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: Vary: Referer
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: X-Content-Type-Options: nosniff
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: X-Frame-Options: SAMEORIGIN
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: X-Xss-Protection: 0
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google: {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "kind": "compute#instance",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "id": "2337139455440629660",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "creationTimestamp": "2024-08-13T00:55:31.859-07:00",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "name": "testing",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "tags": {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   "fingerprint": "42WmSpB8rSM="
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "machineType": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/zones/us-central1-a/machineTypes/c2-standard-4",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "status": "RUNNING",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "zone": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/zones/us-central1-a",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "networkInterfaces": [
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "kind": "compute#networkInterface",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "network": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/global/networks/default",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "subnetwork": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/regions/us-central1/subnetworks/default",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "networkIP": "10.128.15.198",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "name": "nic0",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "fingerprint": "KJu_YGGNnWM=",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "stackType": "IPV4_ONLY"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   }
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  ],
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:  "disks": [
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "kind": "compute#attachedDisk",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "type": "PERSISTENT",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "mode": "READ_WRITE",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "source": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/zones/us-central1-a/disks/testing",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "deviceName": "persistent-disk-0",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "index": 0,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "boot": true,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "autoDelete": true,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "licenses": [
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-12-bookworm"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    ],
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "interface": "SCSI",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "guestOsFeatures": [
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:      "type": "UEFI_COMPATIBLE"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:      "type": "VIRTIO_SCSI_MULTIQUEUE"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:      "type": "GVNIC"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:      "type": "SEV_CAPABLE"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:      "type": "SEV_LIVE_MIGRATABLE_V2"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:     }
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    ],
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "diskSizeGb": "10",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "architecture": "X86_64"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   },
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   {
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "kind": "compute#attachedDisk",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "type": "SCRATCH",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "mode": "READ_WRITE",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "savedState": "DISK_SAVED_STATE_UNSPECIFIED",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "deviceName": "local-ssd-0",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "index": 1,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "boot": false,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "autoDelete": true,
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "interface": "SCSI",
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:    "diskSizeGb": "375"
2024-08-13T09:56:26.749+0200 [DEBUG] provider.terraform-provider-google:   },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "kind": "compute#attachedDisk",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "type": "SCRATCH",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "mode": "READ_WRITE",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "savedState": "DISK_SAVED_STATE_UNSPECIFIED",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "deviceName": "test-local-ssd",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "index": 2,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "boot": false,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "autoDelete": true,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "interface": "SCSI",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "diskSizeGb": "375"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   }
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  ],
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "metadata": {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "kind": "compute#metadata",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "fingerprint": "vELx0qL7fuM=",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "items": [
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:     "key": "google-logging-enabled",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:     "value": "true"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:     "key": "user-data",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:     "value": "hostname"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    }
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   ]
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "serviceAccounts": [
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "email": "[email protected]",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    "scopes": [
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:     "https://www.googleapis.com/auth/cloud-platform"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:    ]
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   }
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  ],
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "selfLink": "https://www.googleapis.com/compute/v1/projects/iac-poc-krakow/zones/us-central1-a/instances/testing",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "scheduling": {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "onHostMaintenance": "MIGRATE",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "automaticRestart": true,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "preemptible": false,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "provisioningModel": "STANDARD"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "cpuPlatform": "Intel Cascade Lake",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "labels": {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "test": "test"
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "labelFingerprint": "dpqxmz8Y-bI=",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "startRestricted": false,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "deletionProtection": false,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "shieldedInstanceConfig": {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "enableSecureBoot": false,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "enableVtpm": true,
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "enableIntegrityMonitoring": true
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "shieldedInstanceIntegrityPolicy": {
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:   "updateAutoLearnPolicy": true
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  },
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "fingerprint": "-9RazjzhhDU=",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "lastStartTimestamp": "2024-08-13T00:56:18.337-07:00",
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google:  "satisfiesPzi": true
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google: }
2024-08-13T09:56:26.750+0200 [DEBUG] provider.terraform-provider-google: -----------------------------------------------------

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Aug 13, 2024
@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 1 file changed, 7 deletions(-))
google-beta provider: Diff ( 1 file changed, 7 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 980
Passed tests: 907
Skipped tests: 72
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeInstanceTemplate_withScratchDisk

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

Copy link

@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@karolgorc
Copy link
Contributor Author

The unit test was working based on the hardcoded values that are currently removed

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Aug 16, 2024
Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Sep 2, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@rileykarson
Copy link
Member

Apologies, I've seen this and have run the tests a couple times but haven't had the cycles to sit down and exhaustively determine if it's safe or not. This is on my radar.

Copy link

github-actions bot commented Sep 9, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 5 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 6 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@c2thorn
Copy link
Member

c2thorn commented Sep 25, 2024

@karolgorc please see this comment: #11742 (comment)

If you would like assistance converting files, we need your permission to push changes to this branch.

fix unit test expecting hardcoded values
fix ordering scratch disks in the state
Remove hardcoded values that are handled by the API
@c2thorn c2thorn force-pushed the remove-hardcoded-values-instance-template branch from d2f04f4 to f6824eb Compare September 27, 2024 19:58
Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 7 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician
Copy link
Collaborator

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

Diff report

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

google provider: Diff ( 1 file changed, 7 deletions(-))
google-beta provider: Diff ( 2 files changed, 6 insertions(+), 12 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1017
Passed tests: 770
Skipped tests: 74
Affected tests: 173

Click here to see the affected service packages
  • compute

Action taken

Found 173 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeAutoscaler_autoscalerBasicExample
  • TestAccComputeAutoscaler_autoscalerSingleInstanceExample
  • TestAccComputeAutoscaler_multicondition
  • TestAccComputeAutoscaler_scaleDownControl
  • TestAccComputeAutoscaler_scaleInControl
  • TestAccComputeAutoscaler_scaleInControlFixed
  • TestAccComputeAutoscaler_scalingSchedule
  • TestAccComputeAutoscaler_update
  • TestAccComputeBackendService_withBackend
  • TestAccComputeBackendService_withBackendAndIAP
  • TestAccComputeBackendService_withBackendAndMaxUtilization
  • TestAccComputeBackendService_withMaxConnections
  • TestAccComputeBackendService_withMaxConnectionsPerInstance
  • TestAccComputeForwardingRule_forwardingRuleHttpLbExample
  • TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample
  • TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate
  • TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample
  • TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample
  • TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample
  • TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample
  • TestAccComputeGlobalForwardingRule_internalLoadBalancing
  • TestAccComputeInstanceFromRegionTemplate_basic
  • TestAccComputeInstanceFromTemplateWithOverride_interface
  • TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromTemplateWithOverride_partnerMetadata
  • TestAccComputeInstanceFromTemplate_basic
  • TestAccComputeInstanceFromTemplate_confidentialInstanceConfigMain
  • TestAccComputeInstanceFromTemplate_diskResourcePolicies
  • TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeInstanceFromTemplate_overrideAttachedDisk
  • TestAccComputeInstanceFromTemplate_overrideBootDisk
  • TestAccComputeInstanceFromTemplate_overrideMetadataDotStartupScript
  • TestAccComputeInstanceFromTemplate_overrideScheduling
  • TestAccComputeInstanceFromTemplate_overrideScratchDisk
  • TestAccComputeInstanceFromTemplate_partnerMetadata
  • TestAccComputeInstanceFromTemplate_self_link_unique
  • TestAccComputeInstanceTemplate_AdvancedMachineFeatures
  • TestAccComputeInstanceTemplate_ConfidentialInstanceConfigMain
  • TestAccComputeInstanceTemplate_EncryptKMS
  • TestAccComputeInstanceTemplate_IP
  • TestAccComputeInstanceTemplate_IPv6
  • TestAccComputeInstanceTemplate_NetworkAttachment
  • TestAccComputeInstanceTemplate_basic
  • TestAccComputeInstanceTemplate_diskIops
  • TestAccComputeInstanceTemplate_diskResourcePolicies
  • TestAccComputeInstanceTemplate_disks
  • TestAccComputeInstanceTemplate_enableDisplay
  • TestAccComputeInstanceTemplate_guestAccelerator
  • TestAccComputeInstanceTemplate_guestAcceleratorSkip
  • TestAccComputeInstanceTemplate_hostErrorTimeoutSeconds
  • TestAccComputeInstanceTemplate_imageShorthand
  • TestAccComputeInstanceTemplate_instanceResourcePolicies
  • TestAccComputeInstanceTemplate_localSsdRecoveryTimeout
  • TestAccComputeInstanceTemplate_maintenance_interval
  • TestAccComputeInstanceTemplate_managedEnvoy
  • TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeInstanceTemplate_metadata_startup_script
  • TestAccComputeInstanceTemplate_minCpuPlatform
  • TestAccComputeInstanceTemplate_networkIP
  • TestAccComputeInstanceTemplate_networkIPAddress
  • TestAccComputeInstanceTemplate_networkTier
  • TestAccComputeInstanceTemplate_nictype_update
  • TestAccComputeInstanceTemplate_partnerMetadata
  • TestAccComputeInstanceTemplate_preemptible
  • TestAccComputeInstanceTemplate_primaryAliasIpRange
  • TestAccComputeInstanceTemplate_queueCount
  • TestAccComputeInstanceTemplate_regionDisks
  • TestAccComputeInstanceTemplate_reservationAffinities
  • TestAccComputeInstanceTemplate_resourceManagerTags
  • TestAccComputeInstanceTemplate_secondaryAliasIpRange
  • TestAccComputeInstanceTemplate_shieldedVmConfig1
  • TestAccComputeInstanceTemplate_shieldedVmConfig2
  • TestAccComputeInstanceTemplate_soleTenantNodeAffinities
  • TestAccComputeInstanceTemplate_sourceImageEncryptionKey
  • TestAccComputeInstanceTemplate_sourceSnapshotEncryptionKey
  • TestAccComputeInstanceTemplate_spot
  • TestAccComputeInstanceTemplate_spot_maxRunDuration
  • TestAccComputeInstanceTemplate_spot_maxRunDuration_deleteTerminationAction
  • TestAccComputeInstanceTemplate_spot_maxRunDuration_stopTerminationAction
  • TestAccComputeInstanceTemplate_subnet_auto
  • TestAccComputeInstanceTemplate_subnet_custom
  • TestAccComputeInstanceTemplate_with18TbScratchDisk
  • TestAccComputeInstanceTemplate_withScratchDisk
  • TestAccComputePerInstanceConfig_removeInstanceOnDestroy
  • TestAccComputePerInstanceConfig_statefulIps
  • TestAccComputePerInstanceConfig_update
  • TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample
  • TestAccComputeRegionAutoscaler_scaleDownControl
  • TestAccComputeRegionAutoscaler_scaleInControl
  • TestAccComputeRegionAutoscaler_scalingSchedule
  • TestAccComputeRegionAutoscaler_update
  • TestAccComputeRegionBackendService_regionBackendServiceBalancingModeExample
  • TestAccComputeRegionBackendService_withBackendInternal
  • TestAccComputeRegionBackendService_withBackendInternalManaged
  • TestAccComputeRegionBackendService_withBackendMultiNic
  • TestAccComputeRegionInstanceTemplate_AdvancedMachineFeatures
  • TestAccComputeRegionInstanceTemplate_ConfidentialInstanceConfigMain
  • TestAccComputeRegionInstanceTemplate_IP
  • TestAccComputeRegionInstanceTemplate_IPv6
  • TestAccComputeRegionInstanceTemplate_basic
  • TestAccComputeRegionInstanceTemplate_diskIops
  • TestAccComputeRegionInstanceTemplate_diskResourcePolicies
  • TestAccComputeRegionInstanceTemplate_enableDisplay
  • TestAccComputeRegionInstanceTemplate_guestAccelerator
  • TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip
  • TestAccComputeRegionInstanceTemplate_imageShorthand
  • TestAccComputeRegionInstanceTemplate_instanceResourcePolicies
  • TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout
  • TestAccComputeRegionInstanceTemplate_maintenance_interval
  • TestAccComputeRegionInstanceTemplate_managedEnvoy
  • TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction
  • TestAccComputeRegionInstanceTemplate_metadata_startup_script
  • TestAccComputeRegionInstanceTemplate_minCpuPlatform
  • TestAccComputeRegionInstanceTemplate_networkIP
  • TestAccComputeRegionInstanceTemplate_networkIPAddress
  • TestAccComputeRegionInstanceTemplate_networkTier
  • TestAccComputeRegionInstanceTemplate_nictype_update
  • TestAccComputeRegionInstanceTemplate_preemptible
  • TestAccComputeRegionInstanceTemplate_primaryAliasIpRange
  • TestAccComputeRegionInstanceTemplate_queueCount
  • TestAccComputeRegionInstanceTemplate_regionDisks
  • TestAccComputeRegionInstanceTemplate_reservationAffinities
  • TestAccComputeRegionInstanceTemplate_resourceManagerTags
  • TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange
  • TestAccComputeRegionInstanceTemplate_shieldedVmConfig1
  • TestAccComputeRegionInstanceTemplate_shieldedVmConfig2
  • TestAccComputeRegionInstanceTemplate_soleTenantNodeAffinities
  • TestAccComputeRegionInstanceTemplate_sourceImageEncryptionKey
  • TestAccComputeRegionInstanceTemplate_sourceSnapshotEncryptionKey
  • TestAccComputeRegionInstanceTemplate_spot
  • TestAccComputeRegionInstanceTemplate_spot_maxRunDuration
  • TestAccComputeRegionInstanceTemplate_subnet_auto
  • TestAccComputeRegionInstanceTemplate_subnet_custom
  • TestAccComputeRegionInstanceTemplate_with18TbScratchDisk
  • TestAccComputeRegionInstanceTemplate_withScratchDisk
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy
  • TestAccComputeRegionPerInstanceConfig_statefulIps
  • TestAccComputeRegionPerInstanceConfig_update
  • TestAccComputeRegionalInstanceTemplate_partnerMetadata
  • TestAccComputeResizeRequest_computeMigResizeRequestExample
  • TestAccDataSourceGoogleComputeInstanceGroupManager
  • TestAccDataSourceGoogleComputeInstanceGroup_fromIGM
  • TestAccDataSourceGoogleComputeRegionInstanceGroupManager
  • TestAccInstanceGroupManager_autoHealingPolicies
  • TestAccInstanceGroupManager_basic
  • TestAccInstanceGroupManager_resourceManagerTags
  • TestAccInstanceGroupManager_self_link_unique
  • TestAccInstanceGroupManager_stateful
  • TestAccInstanceGroupManager_stoppedSuspendedTargetSize
  • TestAccInstanceGroupManager_targetSizeZero
  • TestAccInstanceGroupManager_update
  • TestAccInstanceGroupManager_versions
  • TestAccInstanceGroupManager_waitForStatus
  • TestAccInstanceTemplateDatasource_filter
  • TestAccInstanceTemplateDatasource_filter_mostRecent
  • TestAccInstanceTemplateDatasource_name
  • TestAccInstanceTemplateDatasource_self_link_unique
  • TestAccRegionInstanceGroupManager_APISideListRecordering
  • TestAccRegionInstanceGroupManager_autoHealingPolicies
  • TestAccRegionInstanceGroupManager_basic
  • TestAccRegionInstanceGroupManager_distributionPolicy
  • TestAccRegionInstanceGroupManager_resourceManagerTags
  • TestAccRegionInstanceGroupManager_stateful
  • TestAccRegionInstanceGroupManager_stoppedSuspendedTargetSize
  • TestAccRegionInstanceGroupManager_targetSizeZero
  • TestAccRegionInstanceGroupManager_update
  • TestAccRegionInstanceGroupManager_versions
  • TestAccRegionInstanceTemplateDatasource_filter
  • TestAccRegionInstanceTemplateDatasource_filter_mostRecent
  • TestAccRegionInstanceTemplateDatasource_name

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeAutoscaler_autoscalerBasicExample[Debug log]
TestAccComputeAutoscaler_autoscalerSingleInstanceExample[Debug log]
TestAccComputeAutoscaler_multicondition[Debug log]
TestAccComputeAutoscaler_scaleDownControl[Debug log]
TestAccComputeAutoscaler_scaleInControl[Debug log]
TestAccComputeAutoscaler_scaleInControlFixed[Debug log]
TestAccComputeAutoscaler_scalingSchedule[Debug log]
TestAccComputeAutoscaler_update[Debug log]
TestAccComputeBackendService_withBackend[Debug log]
TestAccComputeBackendService_withBackendAndIAP[Debug log]
TestAccComputeBackendService_withBackendAndMaxUtilization[Debug log]
TestAccComputeBackendService_withMaxConnections[Debug log]
TestAccComputeBackendService_withMaxConnectionsPerInstance[Debug log]
TestAccComputeForwardingRule_forwardingRuleHttpLbExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample[Debug log]
TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample[Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample[Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate[Debug log]
TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample[Debug log]
TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample[Debug log]
TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample[Debug log]
TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample[Debug log]
TestAccComputeGlobalForwardingRule_internalLoadBalancing[Debug log]
TestAccComputeInstanceFromRegionTemplate_basic[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_interface[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceFromTemplateWithOverride_partnerMetadata[Debug log]
TestAccComputeInstanceFromTemplate_basic[Debug log]
TestAccComputeInstanceFromTemplate_confidentialInstanceConfigMain[Debug log]
TestAccComputeInstanceFromTemplate_diskResourcePolicies[Debug log]
TestAccComputeInstanceFromTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceFromTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeInstanceFromTemplate_overrideAttachedDisk[Debug log]
TestAccComputeInstanceFromTemplate_overrideBootDisk[Debug log]
TestAccComputeInstanceFromTemplate_overrideMetadataDotStartupScript[Debug log]
TestAccComputeInstanceFromTemplate_overrideScheduling[Debug log]
TestAccComputeInstanceFromTemplate_overrideScratchDisk[Debug log]
TestAccComputeInstanceFromTemplate_partnerMetadata[Debug log]
TestAccComputeInstanceFromTemplate_self_link_unique[Debug log]
TestAccComputeInstanceTemplate_AdvancedMachineFeatures[Debug log]
TestAccComputeInstanceTemplate_ConfidentialInstanceConfigMain[Debug log]
TestAccComputeInstanceTemplate_EncryptKMS[Debug log]
TestAccComputeInstanceTemplate_IP[Debug log]
TestAccComputeInstanceTemplate_IPv6[Debug log]
TestAccComputeInstanceTemplate_NetworkAttachment[Debug log]
TestAccComputeInstanceTemplate_basic[Debug log]
TestAccComputeInstanceTemplate_diskIops[Debug log]
TestAccComputeInstanceTemplate_diskResourcePolicies[Debug log]
TestAccComputeInstanceTemplate_disks[Debug log]
TestAccComputeInstanceTemplate_enableDisplay[Debug log]
TestAccComputeInstanceTemplate_guestAccelerator[Debug log]
TestAccComputeInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccComputeInstanceTemplate_hostErrorTimeoutSeconds[Debug log]
TestAccComputeInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeInstanceTemplate_maintenance_interval[Debug log]
TestAccComputeInstanceTemplate_managedEnvoy[Debug log]
TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeInstanceTemplate_networkIP[Debug log]
TestAccComputeInstanceTemplate_networkIPAddress[Debug log]
TestAccComputeInstanceTemplate_networkTier[Debug log]
TestAccComputeInstanceTemplate_partnerMetadata[Debug log]
TestAccComputeInstanceTemplate_preemptible[Debug log]
TestAccComputeInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccComputeInstanceTemplate_queueCount[Debug log]
TestAccComputeInstanceTemplate_regionDisks[Debug log]
TestAccComputeInstanceTemplate_reservationAffinities[Debug log]
TestAccComputeInstanceTemplate_resourceManagerTags[Debug log]
TestAccComputeInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeInstanceTemplate_shieldedVmConfig1[Debug log]
TestAccComputeInstanceTemplate_shieldedVmConfig2[Debug log]
TestAccComputeInstanceTemplate_soleTenantNodeAffinities[Debug log]
TestAccComputeInstanceTemplate_sourceImageEncryptionKey[Debug log]
TestAccComputeInstanceTemplate_sourceSnapshotEncryptionKey[Debug log]
TestAccComputeInstanceTemplate_spot[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration_deleteTerminationAction[Debug log]
TestAccComputeInstanceTemplate_spot_maxRunDuration_stopTerminationAction[Debug log]
TestAccComputeInstanceTemplate_subnet_auto[Debug log]
TestAccComputeInstanceTemplate_subnet_custom[Debug log]
TestAccComputeInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputeInstanceTemplate_withScratchDisk[Debug log]
TestAccComputePerInstanceConfig_removeInstanceOnDestroy[Debug log]
TestAccComputePerInstanceConfig_statefulIps[Debug log]
TestAccComputePerInstanceConfig_update[Debug log]
TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample[Debug log]
TestAccComputeRegionAutoscaler_scaleDownControl[Debug log]
TestAccComputeRegionAutoscaler_scaleInControl[Debug log]
TestAccComputeRegionAutoscaler_scalingSchedule[Debug log]
TestAccComputeRegionAutoscaler_update[Debug log]
TestAccComputeRegionBackendService_regionBackendServiceBalancingModeExample[Debug log]
TestAccComputeRegionBackendService_withBackendInternal[Debug log]
TestAccComputeRegionBackendService_withBackendInternalManaged[Debug log]
TestAccComputeRegionBackendService_withBackendMultiNic[Debug log]
TestAccComputeRegionInstanceTemplate_AdvancedMachineFeatures[Debug log]
TestAccComputeRegionInstanceTemplate_ConfidentialInstanceConfigMain[Debug log]
TestAccComputeRegionInstanceTemplate_IP[Debug log]
TestAccComputeRegionInstanceTemplate_IPv6[Debug log]
TestAccComputeRegionInstanceTemplate_basic[Debug log]
TestAccComputeRegionInstanceTemplate_diskIops[Debug log]
TestAccComputeRegionInstanceTemplate_diskResourcePolicies[Debug log]
TestAccComputeRegionInstanceTemplate_enableDisplay[Debug log]
TestAccComputeRegionInstanceTemplate_guestAccelerator[Debug log]
TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccComputeRegionInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeRegionInstanceTemplate_localSsdRecoveryTimeout[Debug log]
TestAccComputeRegionInstanceTemplate_maintenance_interval[Debug log]
TestAccComputeRegionInstanceTemplate_managedEnvoy[Debug log]
TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction[Debug log]
TestAccComputeRegionInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeRegionInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeRegionInstanceTemplate_networkIP[Debug log]
TestAccComputeRegionInstanceTemplate_networkIPAddress[Debug log]
TestAccComputeRegionInstanceTemplate_networkTier[Debug log]
TestAccComputeRegionInstanceTemplate_preemptible[Debug log]
TestAccComputeRegionInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_queueCount[Debug log]
TestAccComputeRegionInstanceTemplate_regionDisks[Debug log]
TestAccComputeRegionInstanceTemplate_reservationAffinities[Debug log]
TestAccComputeRegionInstanceTemplate_resourceManagerTags[Debug log]
TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_shieldedVmConfig1[Debug log]
TestAccComputeRegionInstanceTemplate_shieldedVmConfig2[Debug log]
TestAccComputeRegionInstanceTemplate_soleTenantNodeAffinities[Debug log]
TestAccComputeRegionInstanceTemplate_sourceImageEncryptionKey[Debug log]
TestAccComputeRegionInstanceTemplate_sourceSnapshotEncryptionKey[Debug log]
TestAccComputeRegionInstanceTemplate_spot[Debug log]
TestAccComputeRegionInstanceTemplate_spot_maxRunDuration[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_auto[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_custom[Debug log]
TestAccComputeRegionInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputeRegionInstanceTemplate_withScratchDisk[Debug log]
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy[Debug log]
TestAccComputeRegionPerInstanceConfig_statefulIps[Debug log]
TestAccComputeRegionPerInstanceConfig_update[Debug log]
TestAccComputeRegionalInstanceTemplate_partnerMetadata[Debug log]
TestAccComputeResizeRequest_computeMigResizeRequestExample[Debug log]
TestAccDataSourceGoogleComputeInstanceGroupManager[Debug log]
TestAccDataSourceGoogleComputeInstanceGroup_fromIGM[Debug log]
TestAccDataSourceGoogleComputeRegionInstanceGroupManager[Debug log]
TestAccInstanceGroupManager_autoHealingPolicies[Debug log]
TestAccInstanceGroupManager_basic[Debug log]
TestAccInstanceGroupManager_resourceManagerTags[Debug log]
TestAccInstanceGroupManager_self_link_unique[Debug log]
TestAccInstanceGroupManager_stateful[Debug log]
TestAccInstanceGroupManager_stoppedSuspendedTargetSize[Debug log]
TestAccInstanceGroupManager_targetSizeZero[Debug log]
TestAccInstanceGroupManager_update[Debug log]
TestAccInstanceGroupManager_versions[Debug log]
TestAccInstanceGroupManager_waitForStatus[Debug log]
TestAccInstanceTemplateDatasource_filter[Debug log]
TestAccInstanceTemplateDatasource_filter_mostRecent[Debug log]
TestAccInstanceTemplateDatasource_name[Debug log]
TestAccInstanceTemplateDatasource_self_link_unique[Debug log]
TestAccRegionInstanceGroupManager_APISideListRecordering[Debug log]
TestAccRegionInstanceGroupManager_autoHealingPolicies[Debug log]
TestAccRegionInstanceGroupManager_basic[Debug log]
TestAccRegionInstanceGroupManager_distributionPolicy[Debug log]
TestAccRegionInstanceGroupManager_resourceManagerTags[Debug log]
TestAccRegionInstanceGroupManager_stateful[Debug log]
TestAccRegionInstanceGroupManager_stoppedSuspendedTargetSize[Debug log]
TestAccRegionInstanceGroupManager_targetSizeZero[Debug log]
TestAccRegionInstanceGroupManager_update[Debug log]
TestAccRegionInstanceGroupManager_versions[Debug log]
TestAccRegionInstanceTemplateDatasource_filter[Debug log]
TestAccRegionInstanceTemplateDatasource_filter_mostRecent[Debug log]
TestAccRegionInstanceTemplateDatasource_name[Debug log]

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceTemplate_imageShorthand[Error message] [Debug log]
TestAccComputeInstanceTemplate_nictype_update[Error message] [Debug log]
TestAccComputeRegionInstanceTemplate_imageShorthand[Error message] [Debug log]
TestAccComputeRegionInstanceTemplate_nictype_update[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@c2thorn
Copy link
Member

c2thorn commented Sep 30, 2024

rerunning

@c2thorn
Copy link
Member

c2thorn commented Sep 30, 2024

/gcbrun

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Sep 30, 2024
@c2thorn
Copy link
Member

c2thorn commented Sep 30, 2024

@karolgorc
Copy link
Contributor Author

These test errors are probably some conflicts due to the fact that this PR was stale for so much time. Will look into these

@karolgorc
Copy link
Contributor Author

Regarding the failing tests, from another PR
image

Copy link

github-actions bot commented Oct 7, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 8 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@karolgorc
Copy link
Contributor Author

karolgorc commented Oct 9, 2024

Forgot about the region_instance_template with the unit-test changes. Will update

  • There are some issues with file generation on my local env after the migration.
  • both resources are now supported in this change.

@karolgorc karolgorc closed this Oct 9, 2024
@karolgorc karolgorc reopened this Oct 9, 2024
Copy link
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

Sorry- had this review hit my inbox and looked through a few times, but not sure how to fully validate that these changes are safe to make yet.

@karolgorc
Copy link
Contributor Author

karolgorc commented Oct 11, 2024

Maybe a custom check that compares the disk configuration between 2 templates. And then testcases creating templates:

  • with interface=SCSI
  • without interface=SCSI
  • and compare the disk payload between them

Ideally there should be no differences because the hardcoded values removed are the same defaults as in the API.

@github-actions github-actions bot requested a review from rileykarson October 11, 2024 07:35
Copy link

@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Nov 1, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 3 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Nov 8, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 4 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@karolgorc
Copy link
Contributor Author

Hi can this get reviewed or reassigned?

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 5 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 6 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 7 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Dec 6, 2024

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 8 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 9 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 10 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 11 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/compute-instances
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't avoid hardcoding interface:scsi
4 participants