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

Allow for setting desired_status to different values than "RUNNING" on creation of google_compute_instance #11902

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

karolgorc
Copy link
Contributor

@karolgorc karolgorc commented Oct 3, 2024

closes hashicorp/terraform-provider-google#16586

  • added the feature
  • added tests for it

Release Note Template for Downstream PRs (will be copied)

compute: `desired_status` on google_compute_instance can now be set to `TERMINATED` or `SUSPENDED` on instance creation

@github-actions github-actions bot requested a review from BBBmau October 3, 2024 08:16
Copy link

github-actions bot commented Oct 3, 2024

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

@BBBmau, 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.

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/compute-instances and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 3, 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 ( 2 files changed, 126 insertions(+), 35 deletions(-))
google-beta provider: Diff ( 2 files changed, 126 insertions(+), 35 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1
Passed tests: 1
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • compute
#### Non-exercised tests

Tests were added that are skipped in VCR:

  • TestAccComputeInstance_desiredStatusSuspendedOnCreation
  • TestAccComputeInstance_desiredStatusTerminatedOnCreation
    🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR.

View the build log

@karolgorc
Copy link
Contributor Author

Hi, Don't have access to the build log. Can you paste what failed?

Copy link

github-actions bot commented Oct 8, 2024

@BBBmau 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 @BBBmau 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 @BBBmau This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@github-actions github-actions bot requested a review from BBBmau October 18, 2024 09:21
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 18, 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 ( 2 files changed, 128 insertions(+), 35 deletions(-))
google-beta provider: Diff ( 2 files changed, 128 insertions(+), 35 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1037
Passed tests: 802
Skipped tests: 73
Affected tests: 162

Click here to see the affected service packages
  • compute

Action taken

Found 162 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeAddress_instanceWithIpExample
  • TestAccComputeAttachedDisk_basic
  • TestAccComputeAttachedDisk_count
  • TestAccComputeAttachedDisk_diskInterface
  • TestAccComputeAttachedDisk_full
  • TestAccComputeAttachedDisk_region
  • TestAccComputeAttachedDisk_zoneless
  • TestAccComputeBackendService_withMaxConnectionsPerEndpoint
  • TestAccComputeBackendService_withMaxRatePerEndpoint
  • TestAccComputeDisk_deleteDetach
  • TestAccComputeDisk_multiWriter
  • TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample
  • TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate
  • TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample
  • TestAccComputeInstanceConfidentialInstanceConfigMain
  • TestAccComputeInstanceFromMachineImageWithOverride_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromMachineImageWithOverride_partnerMetadata
  • TestAccComputeInstanceFromMachineImage_basic
  • TestAccComputeInstanceFromMachineImage_confidentialInstanceConfigMain
  • TestAccComputeInstanceFromMachineImage_diffProject
  • TestAccComputeInstanceFromMachineImage_localSsdRecoveryTimeout
  • TestAccComputeInstanceFromMachineImage_maxRunDuration
  • TestAccComputeInstanceFromMachineImage_overrideMetadataDotStartupScript
  • TestAccComputeInstanceGroup_basic
  • TestAccComputeInstanceGroup_network
  • TestAccComputeInstanceGroup_outOfOrderInstances
  • TestAccComputeInstanceGroup_rename
  • TestAccComputeInstanceGroup_update
  • TestAccComputeInstanceIamBindingGenerated
  • TestAccComputeInstanceIamBindingGenerated_withCondition
  • TestAccComputeInstanceIamMemberGenerated
  • TestAccComputeInstanceIamMemberGenerated_withCondition
  • TestAccComputeInstanceIamPolicy
  • TestAccComputeInstanceIamPolicyGenerated
  • TestAccComputeInstanceIamPolicyGenerated_withCondition
  • TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy
  • TestAccComputeInstance_IP
  • TestAccComputeInstance_IPv6
  • TestAccComputeInstance_NetworkAttachment
  • TestAccComputeInstance_NetworkAttachmentUpdate
  • TestAccComputeInstance_NicStackTypeUpdate
  • TestAccComputeInstance_PTRRecord
  • TestAccComputeInstance_advancedMachineFeatures
  • TestAccComputeInstance_aliasIpRangeCommonAddresses
  • TestAccComputeInstance_attachedDisk
  • TestAccComputeInstance_attachedDiskUpdate
  • TestAccComputeInstance_attachedDisk_modeRo
  • TestAccComputeInstance_attachedDisk_sourceUrl
  • TestAccComputeInstance_basic2
  • TestAccComputeInstance_basic3
  • TestAccComputeInstance_basic4
  • TestAccComputeInstance_basic5
  • TestAccComputeInstance_bootDisk_mode
  • TestAccComputeInstance_bootDisk_source
  • TestAccComputeInstance_bootDisk_sourceUrl
  • TestAccComputeInstance_bootDisk_storagePoolSpecified
  • TestAccComputeInstance_bootDisk_type
  • TestAccComputeInstance_confidentialHyperDiskBootDisk
  • TestAccComputeInstance_deletionProtectionExplicitFalse
  • TestAccComputeInstance_deletionProtectionExplicitTrueAndUpdateFalse
  • TestAccComputeInstance_descriptionUpdate
  • TestAccComputeInstance_desiredStatusSuspendedOnCreation
  • TestAccComputeInstance_desiredStatusTerminatedOnCreation
  • TestAccComputeInstance_desiredStatusTerminatedUpdateFields
  • TestAccComputeInstance_desiredStatusUpdateBasic
  • TestAccComputeInstance_diskEncryption
  • TestAccComputeInstance_diskEncryptionRestart
  • TestAccComputeInstance_diskResourcePolicies
  • TestAccComputeInstance_diskResourcePolicies_attachmentDiff
  • TestAccComputeInstance_enableDisplay
  • TestAccComputeInstance_forceNewAndChangeMetadata
  • TestAccComputeInstance_guestAccelerator
  • TestAccComputeInstance_guestAcceleratorSkip
  • TestAccComputeInstance_hostErrorTimeoutSecconds
  • TestAccComputeInstance_hostname
  • TestAccComputeInstance_hyperdiskBootDisk_provisioned_iops_throughput
  • TestAccComputeInstance_internalIPv6
  • TestAccComputeInstance_ipv6ExternalReservation
  • TestAccComputeInstance_kmsDiskEncryption
  • TestAccComputeInstance_localSsdRecoveryTimeout
  • TestAccComputeInstance_localSsdRecoveryTimeout_update
  • TestAccComputeInstance_localSsdVM_maxRunDuration_stopTerminationAction
  • TestAccComputeInstance_machineTypeUrl
  • TestAccComputeInstance_metadataStartupScript_update
  • TestAccComputeInstance_minCpuPlatform
  • TestAccComputeInstance_multiNic
  • TestAccComputeInstance_networkIPAuto
  • TestAccComputeInstance_networkIpUpdate
  • TestAccComputeInstance_networkPerformanceConfig
  • TestAccComputeInstance_networkTier
  • TestAccComputeInstance_network_ip_custom
  • TestAccComputeInstance_noServiceAccount
  • TestAccComputeInstance_partnerMetadata
  • TestAccComputeInstance_partnerMetadata_deletePartnerMetadata
  • TestAccComputeInstance_partnerMetadata_update
  • TestAccComputeInstance_primaryAliasIpRange
  • TestAccComputeInstance_private_image_family
  • TestAccComputeInstance_queueCount
  • TestAccComputeInstance_regionBootDisk
  • TestAccComputeInstance_reservationAffinities
  • TestAccComputeInstance_resourceManagerTags
  • TestAccComputeInstance_resourcePolicyCollocate
  • TestAccComputeInstance_resourcePolicyUpdate
  • TestAccComputeInstance_secondaryAliasIpRange
  • TestAccComputeInstance_serviceAccount
  • TestAccComputeInstance_serviceAccountEmail_0scopes
  • TestAccComputeInstance_serviceAccount_updated
  • TestAccComputeInstance_serviceAccount_updated0to1to0scopes
  • TestAccComputeInstance_shieldedVmConfig
  • TestAccComputeInstance_soleTenantNodeAffinities
  • TestAccComputeInstance_spotVM
  • TestAccComputeInstance_spotVM_maxRunDuration_deleteTerminationAction
  • TestAccComputeInstance_spotVM_maxRunDuration_update
  • TestAccComputeInstance_spotVM_update
  • TestAccComputeInstance_standardVM_maxRunDuration_deleteTerminationAction
  • TestAccComputeInstance_standardVM_maxRunDuration_stopTerminationAction
  • TestAccComputeInstance_stopInstanceToUpdate
  • TestAccComputeInstance_subnet_auto
  • TestAccComputeInstance_subnet_custom
  • TestAccComputeInstance_subnetworkProjectMustMatchError
  • TestAccComputeInstance_subnetworkUpdate
  • TestAccComputeInstance_updateRunning_desiredStatusNotSet_notAllowStoppingForUpdate
  • TestAccComputeInstance_updateRunning_desiredStatusRunning_allowStoppingForUpdate
  • TestAccComputeInstance_updateRunning_desiredStatusRunning_notAllowStoppingForUpdate
  • TestAccComputeInstance_updateRunning_desiredStatusTerminated_allowStoppingForUpdate
  • TestAccComputeInstance_updateRunning_desiredStatusTerminated_notAllowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusNotSet_allowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusNotSet_notAllowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusRunning_allowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusRunning_notAllowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusTerminated_allowStoppingForUpdate
  • TestAccComputeInstance_updateTerminated_desiredStatusTerminated_notAllowStoppingForUpdate
  • TestAccComputeInstance_with375GbScratchDisk
  • TestAccComputeMachineImageIamBindingGenerated
  • TestAccComputeMachineImageIamBindingGenerated_withCondition
  • TestAccComputeMachineImageIamMemberGenerated
  • TestAccComputeMachineImageIamMemberGenerated_withCondition
  • TestAccComputeMachineImageIamPolicyGenerated
  • TestAccComputeMachineImageIamPolicyGenerated_withCondition
  • TestAccComputeMachineImage_computeMachineImageKmsExample
  • TestAccComputeMachineImage_machineImageBasicExample
  • TestAccComputeNetworkAttachment_networkAttachmentInstanceUsageExample
  • TestAccComputeNetworkEndpointGroup_internalEndpoint
  • TestAccComputePacketMirroring_computePacketMirroringFullExample
  • TestAccComputeRegionBackendService_ilbUpdateFull
  • TestAccComputeRegionNetworkEndpoint_regionNetworkEndpointPortmapExample
  • TestAccComputeResourcePolicy_attached
  • TestAccComputeRoute_hopInstance
  • TestAccComputeRouterBgpPeer_routerPeerRouterAppliance
  • TestAccComputeRouterPeer_routerApplianceInstance
  • TestAccComputeTargetInstance_targetInstanceBasicExample
  • TestAccComputeTargetInstance_targetInstanceCustomNetworkExample
  • TestAccComputeTargetInstance_targetInstanceWithSecurityPolicyExample
  • TestAccComputeTargetInstance_withSecurityPolicy
  • TestAccComputeTargetPool_basic
  • TestAccComputeTargetPool_update
  • TestAccDataSourceComputeInstanceSerialPort_basic
  • TestAccDataSourceComputeInstance_basic
  • TestAccDataSourceComputeInstance_networkAttachmentUsageExample
  • TestAccDataSourceGoogleComputeInstanceGroup_basic
  • TestAccDataSourceGoogleComputeInstanceGroup_withNamedPort

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeAddress_instanceWithIpExample [Debug log]
TestAccComputeAttachedDisk_basic [Debug log]
TestAccComputeAttachedDisk_count [Debug log]
TestAccComputeAttachedDisk_diskInterface [Debug log]
TestAccComputeAttachedDisk_full [Debug log]
TestAccComputeAttachedDisk_region [Debug log]
TestAccComputeAttachedDisk_zoneless [Debug log]
TestAccComputeBackendService_withMaxConnectionsPerEndpoint [Debug log]
TestAccComputeBackendService_withMaxRatePerEndpoint [Debug log]
TestAccComputeDisk_deleteDetach [Debug log]
TestAccComputeDisk_multiWriter [Debug log]
TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample [Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample [Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExampleUpdate [Debug log]
TestAccComputeGlobalForwardingRule_globalInternalHttpLbWithMigBackendExample [Debug log]
TestAccComputeInstanceFromMachineImageWithOverride_localSsdRecoveryTimeout [Debug log]
TestAccComputeInstanceFromMachineImageWithOverride_partnerMetadata [Debug log]
TestAccComputeInstanceFromMachineImage_basic [Debug log]
TestAccComputeInstanceFromMachineImage_diffProject [Debug log]
TestAccComputeInstanceFromMachineImage_localSsdRecoveryTimeout [Debug log]
TestAccComputeInstanceFromMachineImage_maxRunDuration [Debug log]
TestAccComputeInstanceFromMachineImage_overrideMetadataDotStartupScript [Debug log]
TestAccComputeInstanceGroup_basic [Debug log]
TestAccComputeInstanceGroup_network [Debug log]
TestAccComputeInstanceGroup_outOfOrderInstances [Debug log]
TestAccComputeInstanceGroup_rename [Debug log]
TestAccComputeInstanceGroup_update [Debug log]
TestAccComputeInstanceIamBindingGenerated [Debug log]
TestAccComputeInstanceIamBindingGenerated_withCondition [Debug log]
TestAccComputeInstanceIamMemberGenerated [Debug log]
TestAccComputeInstanceIamMemberGenerated_withCondition [Debug log]
TestAccComputeInstanceIamPolicy [Debug log]
TestAccComputeInstanceIamPolicyGenerated [Debug log]
TestAccComputeInstanceIamPolicyGenerated_withCondition [Debug log]
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy [Debug log]
TestAccComputeInstance_IP [Debug log]
TestAccComputeInstance_IPv6 [Debug log]
TestAccComputeInstance_NetworkAttachment [Debug log]
TestAccComputeInstance_NetworkAttachmentUpdate [Debug log]
TestAccComputeInstance_NicStackTypeUpdate [Debug log]
TestAccComputeInstance_PTRRecord [Debug log]
TestAccComputeInstance_advancedMachineFeatures [Debug log]
TestAccComputeInstance_aliasIpRangeCommonAddresses [Debug log]
TestAccComputeInstance_attachedDisk [Debug log]
TestAccComputeInstance_attachedDiskUpdate [Debug log]
TestAccComputeInstance_attachedDisk_modeRo [Debug log]
TestAccComputeInstance_attachedDisk_sourceUrl [Debug log]
TestAccComputeInstance_basic2 [Debug log]
TestAccComputeInstance_basic3 [Debug log]
TestAccComputeInstance_basic4 [Debug log]
TestAccComputeInstance_basic5 [Debug log]
TestAccComputeInstance_bootDisk_mode [Debug log]
TestAccComputeInstance_bootDisk_source [Debug log]
TestAccComputeInstance_bootDisk_sourceUrl [Debug log]
TestAccComputeInstance_bootDisk_storagePoolSpecified [Debug log]
TestAccComputeInstance_bootDisk_type [Debug log]
TestAccComputeInstance_confidentialHyperDiskBootDisk [Debug log]
TestAccComputeInstance_deletionProtectionExplicitFalse [Debug log]
TestAccComputeInstance_deletionProtectionExplicitTrueAndUpdateFalse [Debug log]
TestAccComputeInstance_descriptionUpdate [Debug log]
TestAccComputeInstance_desiredStatusSuspendedOnCreation [Debug log]
TestAccComputeInstance_desiredStatusTerminatedOnCreation [Debug log]
TestAccComputeInstance_desiredStatusTerminatedUpdateFields [Debug log]
TestAccComputeInstance_desiredStatusUpdateBasic [Debug log]
TestAccComputeInstance_diskEncryption [Debug log]
TestAccComputeInstance_diskEncryptionRestart [Debug log]
TestAccComputeInstance_diskResourcePolicies [Debug log]
TestAccComputeInstance_diskResourcePolicies_attachmentDiff [Debug log]
TestAccComputeInstance_enableDisplay [Debug log]
TestAccComputeInstance_forceNewAndChangeMetadata [Debug log]
TestAccComputeInstance_guestAccelerator [Debug log]
TestAccComputeInstance_guestAcceleratorSkip [Debug log]
TestAccComputeInstance_hostErrorTimeoutSecconds [Debug log]
TestAccComputeInstance_hostname [Debug log]
TestAccComputeInstance_hyperdiskBootDisk_provisioned_iops_throughput [Debug log]
TestAccComputeInstance_internalIPv6 [Debug log]
TestAccComputeInstance_ipv6ExternalReservation [Debug log]
TestAccComputeInstance_kmsDiskEncryption [Debug log]
TestAccComputeInstance_localSsdRecoveryTimeout [Debug log]
TestAccComputeInstance_localSsdRecoveryTimeout_update [Debug log]
TestAccComputeInstance_localSsdVM_maxRunDuration_stopTerminationAction [Debug log]
TestAccComputeInstance_machineTypeUrl [Debug log]
TestAccComputeInstance_metadataStartupScript_update [Debug log]
TestAccComputeInstance_minCpuPlatform [Debug log]
TestAccComputeInstance_multiNic [Debug log]
TestAccComputeInstance_networkIPAuto [Debug log]
TestAccComputeInstance_networkIpUpdate [Debug log]
TestAccComputeInstance_networkPerformanceConfig [Debug log]
TestAccComputeInstance_networkTier [Debug log]
TestAccComputeInstance_network_ip_custom [Debug log]
TestAccComputeInstance_noServiceAccount [Debug log]
TestAccComputeInstance_partnerMetadata [Debug log]
TestAccComputeInstance_partnerMetadata_deletePartnerMetadata [Debug log]
TestAccComputeInstance_partnerMetadata_update [Debug log]
TestAccComputeInstance_primaryAliasIpRange [Debug log]
TestAccComputeInstance_private_image_family [Debug log]
TestAccComputeInstance_queueCount [Debug log]
TestAccComputeInstance_regionBootDisk [Debug log]
TestAccComputeInstance_reservationAffinities [Debug log]
TestAccComputeInstance_resourceManagerTags [Debug log]
TestAccComputeInstance_resourcePolicyCollocate [Debug log]
TestAccComputeInstance_resourcePolicyUpdate [Debug log]
TestAccComputeInstance_secondaryAliasIpRange [Debug log]
TestAccComputeInstance_serviceAccount [Debug log]
TestAccComputeInstance_serviceAccountEmail_0scopes [Debug log]
TestAccComputeInstance_serviceAccount_updated [Debug log]
TestAccComputeInstance_serviceAccount_updated0to1to0scopes [Debug log]
TestAccComputeInstance_shieldedVmConfig [Debug log]
TestAccComputeInstance_soleTenantNodeAffinities [Debug log]
TestAccComputeInstance_spotVM [Debug log]
TestAccComputeInstance_spotVM_maxRunDuration_deleteTerminationAction [Debug log]
TestAccComputeInstance_spotVM_maxRunDuration_update [Debug log]
TestAccComputeInstance_spotVM_update [Debug log]
TestAccComputeInstance_standardVM_maxRunDuration_deleteTerminationAction [Debug log]
TestAccComputeInstance_standardVM_maxRunDuration_stopTerminationAction [Debug log]
TestAccComputeInstance_stopInstanceToUpdate [Debug log]
TestAccComputeInstance_subnet_auto [Debug log]
TestAccComputeInstance_subnet_custom [Debug log]
TestAccComputeInstance_subnetworkProjectMustMatchError [Debug log]
TestAccComputeInstance_subnetworkUpdate [Debug log]
TestAccComputeInstance_updateRunning_desiredStatusNotSet_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateRunning_desiredStatusRunning_allowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateRunning_desiredStatusRunning_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateRunning_desiredStatusTerminated_allowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateRunning_desiredStatusTerminated_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusNotSet_allowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusNotSet_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusRunning_allowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusRunning_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusTerminated_allowStoppingForUpdate [Debug log]
TestAccComputeInstance_updateTerminated_desiredStatusTerminated_notAllowStoppingForUpdate [Debug log]
TestAccComputeInstance_with375GbScratchDisk [Debug log]
TestAccComputeMachineImageIamBindingGenerated [Debug log]
TestAccComputeMachineImageIamBindingGenerated_withCondition [Debug log]
TestAccComputeMachineImageIamMemberGenerated [Debug log]
TestAccComputeMachineImageIamMemberGenerated_withCondition [Debug log]
TestAccComputeMachineImageIamPolicyGenerated [Debug log]
TestAccComputeMachineImageIamPolicyGenerated_withCondition [Debug log]
TestAccComputeMachineImage_computeMachineImageKmsExample [Debug log]
TestAccComputeMachineImage_machineImageBasicExample [Debug log]
TestAccComputeNetworkAttachment_networkAttachmentInstanceUsageExample [Debug log]
TestAccComputeNetworkEndpointGroup_internalEndpoint [Debug log]
TestAccComputePacketMirroring_computePacketMirroringFullExample [Debug log]
TestAccComputeRegionBackendService_ilbUpdateFull [Debug log]
TestAccComputeRegionNetworkEndpoint_regionNetworkEndpointPortmapExample [Debug log]
TestAccComputeResourcePolicy_attached [Debug log]
TestAccComputeRoute_hopInstance [Debug log]
TestAccComputeRouterBgpPeer_routerPeerRouterAppliance [Debug log]
TestAccComputeRouterPeer_routerApplianceInstance [Debug log]
TestAccComputeTargetInstance_targetInstanceBasicExample [Debug log]
TestAccComputeTargetInstance_targetInstanceCustomNetworkExample [Debug log]
TestAccComputeTargetInstance_targetInstanceWithSecurityPolicyExample [Debug log]
TestAccComputeTargetInstance_withSecurityPolicy [Debug log]
TestAccComputeTargetPool_basic [Debug log]
TestAccComputeTargetPool_update [Debug log]
TestAccDataSourceComputeInstanceSerialPort_basic [Debug log]
TestAccDataSourceComputeInstance_basic [Debug log]
TestAccDataSourceComputeInstance_networkAttachmentUsageExample [Debug log]
TestAccDataSourceGoogleComputeInstanceGroup_basic [Debug log]
TestAccDataSourceGoogleComputeInstanceGroup_withNamedPort [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeInstanceConfidentialInstanceConfigMain [Error message] [Debug log]
TestAccComputeInstanceFromMachineImage_confidentialInstanceConfigMain [Error message] [Debug log]

🔴 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

These 2 failing seem unrelated.
image

@BBBmau
Copy link
Collaborator

BBBmau commented Oct 22, 2024

/gcbrun

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 22, 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 ( 2 files changed, 128 insertions(+), 35 deletions(-))
google-beta provider: Diff ( 2 files changed, 128 insertions(+), 35 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1040
Passed tests: 964
Skipped tests: 73
Affected tests: 3

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeInstance_keyRevocationActionType [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeInstanceConfidentialInstanceConfigMain [Error message] [Debug log]
TestAccComputeInstanceFromMachineImage_confidentialInstanceConfigMain [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Copy link

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

if err != nil {
return fmt.Errorf("Error waiting for status: %s", err)
}

if val, ok := d.GetOk("desired_status"); ok {
if val.(string) != "RUNNING" {
err = changeInstanceStatusOnCreation(config, d, project, zone.Name, d.Get("desired_status").(string), userAgent)
Copy link
Collaborator

Choose a reason for hiding this comment

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

it all looks good only thing i would say is we can change d.Get("desired_status").(string) to be val.(string)

maybe even add a line that does status := val.(string)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@github-actions github-actions bot requested a review from BBBmau October 25, 2024 08:08
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 25, 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 ( 2 files changed, 128 insertions(+), 35 deletions(-))
google-beta provider: Diff ( 2 files changed, 128 insertions(+), 35 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1040
Passed tests: 965
Skipped tests: 73
Affected tests: 2

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccComputeInstanceConfidentialInstanceConfigMain [Error message] [Debug log]
TestAccComputeInstanceFromMachineImage_confidentialInstanceConfigMain [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Copy link
Collaborator

@BBBmau BBBmau left a comment

Choose a reason for hiding this comment

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

thanks for addressing the request!

@BBBmau BBBmau merged commit 8c2ee81 into GoogleCloudPlatform:main Oct 25, 2024
9 of 10 checks passed
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compute_instance: desired_state can only accept RUNNING value
3 participants