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

Added support for Persistent Disk Asynchronous Replication (part 1) #7635

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

rosmo
Copy link
Contributor

@rosmo rosmo commented Apr 5, 2023

  • Added support for Persistent Disk Asynchronous Replication
  • Added support for consistency groups in resource policy

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

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

Release Note Template for Downstream PRs (will be copied)

compute: added new field `async_primary_disk` to `google_compute_disk` and `google_compute_region_disk`
compute: added new field `disk_consistency_group_policy` to `google_compute_resource_policy`

@rosmo rosmo requested a review from a team as a code owner April 5, 2023 07:14
@rosmo rosmo requested review from slevenick and removed request for a team April 5, 2023 07:14
@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.

Terraform GA: Diff ( 4 files changed, 66 insertions(+))
Terraform Beta: Diff ( 7 files changed, 292 insertions(+))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 110 insertions(+))

Missing test report

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

Resource: google_compute_disk (90 total tests)
Untested fields: async_primary_disk.disk

Please add acceptance tests which include these fields.
Resource: google_compute_region_disk (19 total tests)
Untested fields: async_primary_disk.disk

Please add acceptance tests which include these fields.

@rosmo rosmo changed the title Added support for Persistent Disk Asynchronous Replication (part 2) Added support for Persistent Disk Asynchronous Replication (part 1) Apr 5, 2023
@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.

Terraform GA: Diff ( 4 files changed, 134 insertions(+))
Terraform Beta: Diff ( 9 files changed, 468 insertions(+))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2555
Passed tests 2272
Skipped tests: 275
Affected tests: 8

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccFirebaserulesRelease_BasicRelease|TestAccComputeRegionDisk_regionDiskAsyncExample|TestAccComputeResourcePolicy_resourcePolicyConsistencyGroupExample|TestAccDataSourceGoogleFirebaseAndroidAppConfig|TestAccComputeDisk_diskAsyncExample|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccIapWebTypeAppEngineIamBindingGenerated_withCondition

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccComputeRegionDisk_regionDiskAsyncExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyConsistencyGroupExample[Debug log]
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Debug log]
TestAccComputeDisk_diskAsyncExample[Debug log]
TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccIapWebTypeAppEngineIamBindingGenerated_withCondition[Debug log]

All tests passed
View the build log or the debug log for each test

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

Terraform GA: Diff ( 4 files changed, 134 insertions(+))
Terraform Beta: Diff ( 9 files changed, 468 insertions(+))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2562
Passed tests 2283
Skipped tests: 275
Affected tests: 4

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccDataSourceGoogleFirebaseAndroidAppConfig

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample[Debug log]
TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Debug log]

All tests passed
View the build log or the debug log for each test

@rosmo
Copy link
Contributor Author

rosmo commented Apr 17, 2023

@ScottSuarez might you take a look? Hoping to get this merged.

@ScottSuarez ScottSuarez removed the request for review from slevenick April 17, 2023 21:09
@ScottSuarez
Copy link
Contributor

Sure, it might take a bit for me to contextualize here. Following up on your discussion with Sam

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

Terraform GA: Diff ( 5 files changed, 134 insertions(+), 79 deletions(-))
Terraform Beta: Diff ( 10 files changed, 472 insertions(+), 82 deletions(-))
TF Conversion: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2632
Passed tests 2350
Skipped tests: 277
Affected tests: 5

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataSourceGoogleFirebaseAndroidAppConfig|TestAccAlloydbCluster_missingLocation|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example|TestAccAlloydbBackup_missingLocation

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccAlloydbCluster_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example[Debug log]
TestAccAlloydbBackup_missingLocation[Debug log]

Tests failed during RECORDING mode:
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

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

Terraform GA: Diff ( 4 files changed, 120 insertions(+), 79 deletions(-))
Terraform Beta: Diff ( 10 files changed, 457 insertions(+), 82 deletions(-))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2669
Passed tests 2362
Skipped tests: 280
Affected tests: 27

Action taken

Found 27 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeRegionInstanceTemplate_instanceResourcePolicies|TestAccComputeResourcePolicy_resourcePolicySnapshotScheduleChainNameExample|TestAccComputeResourcePolicy_resourcePolicyInstanceSchedulePolicyExample|TestAccComputeResourcePolicy_resourcePolicyPlacementPolicyMaxDistanceExample|TestAccComputeResourcePolicy_resourcePolicyPlacementPolicyExample|TestAccComputeResourcePolicy_resourcePolicyFullExample|TestAccComputeResourcePolicy_resourcePolicyBasicExample|TestAccComputeRegionNetworkFirewallPolicyRule_RegionalHandWritten|TestAccComputeInstance_resourcePolicyCollocate|TestAccComputeInstanceTemplate_diskResourcePolicies|TestAccComputeNetworkFirewallPolicyRule_GlobalHandWritten|TestAccComputeRegionInstanceTemplate_diskResourcePolicies|TestAccComputeInstanceTemplate_instanceResourcePolicies|TestAccComputeInstance_resourcePolicyUpdate|TestAccComputeFirewallPolicyRule_update|TestAccComputeFirewallPolicyRule_multipleRules|TestAccComputeDisk_resourcePolicies|TestAccComputeRegionDiskResourcePolicyAttachment_regionDiskResourcePolicyAttachmentBasicExample|TestAccComputeDiskResourcePolicyAttachment_diskResourcePolicyAttachmentBasicExample|TestAccComputeDiskResourcePolicyAttachment_update|TestAccAlloydbCluster_missingLocation|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccAlloydbBackup_missingLocation|TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example|TestAccDataSourceGoogleFirebaseAndroidAppConfig|TestAccDataSourceComputeResourcePolicy|TestAccDataSourceAlloydbLocations_basic

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeRegionInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeResourcePolicy_resourcePolicySnapshotScheduleChainNameExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyInstanceSchedulePolicyExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyPlacementPolicyMaxDistanceExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyPlacementPolicyExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyFullExample[Debug log]
TestAccComputeResourcePolicy_resourcePolicyBasicExample[Debug log]
TestAccComputeRegionNetworkFirewallPolicyRule_RegionalHandWritten[Debug log]
TestAccComputeInstance_resourcePolicyCollocate[Debug log]
TestAccComputeNetworkFirewallPolicyRule_GlobalHandWritten[Debug log]
TestAccComputeInstanceTemplate_instanceResourcePolicies[Debug log]
TestAccComputeFirewallPolicyRule_update[Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Debug log]
TestAccComputeDisk_resourcePolicies[Debug log]
TestAccComputeRegionDiskResourcePolicyAttachment_regionDiskResourcePolicyAttachmentBasicExample[Debug log]
TestAccComputeDiskResourcePolicyAttachment_diskResourcePolicyAttachmentBasicExample[Debug log]
TestAccComputeDiskResourcePolicyAttachment_update[Debug log]
TestAccAlloydbCluster_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccAlloydbBackup_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example[Debug log]
TestAccDataSourceComputeResourcePolicy[Debug log]
TestAccDataSourceAlloydbLocations_basic[Debug log]

Tests failed during RECORDING mode:
TestAccComputeInstanceTemplate_diskResourcePolicies[Error message] [Debug log]
TestAccComputeRegionInstanceTemplate_diskResourcePolicies[Error message] [Debug log]
TestAccComputeInstance_resourcePolicyUpdate[Error message] [Debug log]
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@rosmo
Copy link
Contributor Author

rosmo commented Apr 24, 2023

Looks like we are out of quota for resource policies. I'll switch to another region, to see if that helps.

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

Terraform GA: Diff ( 4 files changed, 120 insertions(+), 79 deletions(-))
Terraform Beta: Diff ( 10 files changed, 457 insertions(+), 82 deletions(-))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2669
Passed tests 2370
Skipped tests: 280
Affected tests: 19

Action taken

Found 19 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataSourceGoogleFirebaseAndroidAppConfig|TestAccDataSourceComputeRouterStatus|TestAccFirebaserulesRelease_BasicRelease|TestAccComputeRegionInstanceTemplate_diskResourcePolicies|TestAccDataprocWorkflowTemplate_basic|TestAccComputeRouterPeer_bfd|TestAccComputeRouterPeer_routerApplianceInstance|TestAccComputeRouterPeer_enable|TestAccComputeRouterPeer_advertiseMode|TestAccComputeRouterPeer_basic|TestAccComputeResourcePolicy_resourcePolicyConsistencyGroupExample|TestAccComputeInstanceTemplate_diskResourcePolicies|TestAccComputeInstance_resourcePolicyUpdate|TestAccDataSourceAlloydbLocations_basic|TestAccComputeRouterBgpPeer_routerPeerRouterApplianceExample|TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example|TestAccAlloydbBackup_missingLocation|TestAccAlloydbCluster_missingLocation|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Debug log]
TestAccDataSourceComputeRouterStatus[Debug log]
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccComputeRegionInstanceTemplate_diskResourcePolicies[Debug log]
TestAccDataprocWorkflowTemplate_basic[Debug log]
TestAccComputeRouterPeer_bfd[Debug log]
TestAccComputeRouterPeer_routerApplianceInstance[Debug log]
TestAccComputeRouterPeer_enable[Debug log]
TestAccComputeRouterPeer_advertiseMode[Debug log]
TestAccComputeRouterPeer_basic[Debug log]
TestAccComputeResourcePolicy_resourcePolicyConsistencyGroupExample[Debug log]
TestAccComputeInstanceTemplate_diskResourcePolicies[Debug log]
TestAccComputeInstance_resourcePolicyUpdate[Debug log]
TestAccDataSourceAlloydbLocations_basic[Debug log]
TestAccComputeRouterBgpPeer_routerPeerRouterApplianceExample[Debug log]
TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example[Debug log]
TestAccAlloydbBackup_missingLocation[Debug log]
TestAccAlloydbCluster_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]

All tests passed
View the build log or the debug log for each test

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Small issue with the duplication of the examples block. No issues besides this assuming tests pass

mmv1/products/compute/ResourcePolicy.yaml Outdated Show resolved Hide resolved
@rosmo
Copy link
Contributor Author

rosmo commented Apr 24, 2023

Small issue with the duplication of the examples block. No issues besides this assuming tests pass

That's odd, but fixed now.

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

Terraform GA: Diff ( 4 files changed, 120 insertions(+), 79 deletions(-))
Terraform Beta: Diff ( 10 files changed, 457 insertions(+), 82 deletions(-))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2672
Passed tests 2386
Skipped tests: 280
Affected tests: 6

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccAlloydbCluster_missingLocation|TestAccAlloydbBackup_missingLocation|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example|TestAccDataSourceAlloydbLocations_basic|TestAccDataSourceGoogleFirebaseAndroidAppConfig

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccAlloydbCluster_missingLocation[Debug log]
TestAccAlloydbBackup_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example[Debug log]
TestAccDataSourceAlloydbLocations_basic[Debug log]
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Debug log]

All tests passed
View the build log or the debug log for each test

@rosmo
Copy link
Contributor Author

rosmo commented Apr 25, 2023

There was a file accidentally removed in the commit, I have restored it now. Should be all good to merge if you are happy with it.

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

Terraform GA: Diff ( 3 files changed, 120 insertions(+))
Terraform Beta: Diff ( 9 files changed, 457 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))
TF Validator: Diff ( 3 files changed, 12 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 12 files changed, 360 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2676
Passed tests 2389
Skipped tests: 280
Affected tests: 7

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeResourcePolicy_attached|TestAccAlloydbBackup_missingLocation|TestAccAlloydbCluster_missingLocation|TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example|TestAccDataSourceGoogleFirebaseAndroidAppConfig|TestAccDataSourceAlloydbLocations_basic|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeResourcePolicy_attached[Debug log]
TestAccAlloydbBackup_missingLocation[Debug log]
TestAccAlloydbCluster_missingLocation[Debug log]
TestAccApigeeKeystoresAliasesPkcs12_ApigeeKeystoresAliasesPkcs12Example[Debug log]
TestAccDataSourceGoogleFirebaseAndroidAppConfig[Debug log]
TestAccDataSourceAlloydbLocations_basic[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]

All tests passed
View the build log or the debug log for each test

@rosmo
Copy link
Contributor Author

rosmo commented Apr 26, 2023

@ScottSuarez For some reason Github keeps saying "1 change requested" even though I have resolved all comments.

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

No other asks. Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants