Skip to content

Conversation

@jkrish-c
Copy link
Contributor

@jkrish-c jkrish-c commented Aug 22, 2025

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

`google_compute_region_composite_health_checks` (beta)

@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 ( 6 files changed, 655 insertions(+))
google-beta provider: Diff ( 19 files changed, 3942 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 3 files changed, 371 insertions(+))

Missing test report

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

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

resource "google_compute_region_health_aggregation_policy" "primary" {
  policy_type = # value needed
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_compute_region_composite_health_check
  • google_compute_region_health_aggregation_policy
  • google_compute_region_health_source

If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels.
An override-missing-service-label label can be added to allow merging.

Multiple resources added

This PR adds multiple new resources: google_compute_region_composite_health_check, google_compute_region_health_aggregation_policy, google_compute_region_health_source. This makes review significantly more difficult. Please split it into multiple PRs, one per resource.
An override-multiple-resources label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1270
Passed tests: 1181
Skipped tests: 83
Affected tests: 6

Click here to see the affected service packages
  • compute

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
  • TestAccComputeRegionBackendService_regionBackendServiceHaPolicyManualLeader_update
  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update
  • TestAccComputeRegionHealthAggregationPolicy_update
  • TestAccComputeRegionHealthSource_computeRegionHealthSourceBasicExample
  • TestAccComputeRegionHealthSource_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccComputeRegionBackendService_regionBackendServiceHaPolicyManualLeader_update [Error message] [Debug log]
TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample [Error message] [Debug log]
TestAccComputeRegionCompositeHealthCheck_update [Error message] [Debug log]
TestAccComputeRegionHealthAggregationPolicy_update [Error message] [Debug log]
TestAccComputeRegionHealthSource_computeRegionHealthSourceBasicExample [Error message] [Debug log]
TestAccComputeRegionHealthSource_update [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

@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1493 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1493 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1234
Skipped tests: 86
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
  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Get to know how VCR tests work

1 similar comment
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1234
Skipped tests: 86
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
  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample [Debug log]
TestAccComputeRegionCompositeHealthCheck_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample [Debug log]
TestAccComputeRegionCompositeHealthCheck_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@jkrish-c jkrish-c changed the title Chc Add new resource RegionCompositeHealthCheck to terraform-beta Jan 8, 2026
@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1493 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1493 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1235
Skipped tests: 86
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
  • TestAccComputeRegionBackendService_regionBackendServiceHaPolicyManualLeader_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1236
Skipped tests: 86
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@jkrish-c jkrish-c marked this pull request as ready for review January 9, 2026 17:25
@github-actions github-actions bot requested a review from rileykarson January 9, 2026 17:26
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

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

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@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 January 9, 2026 18:00
@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1507 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Tests analytics

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

Click here to see the affected service packages
  • compute

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

View the build log

@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1507 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

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.

I forgot to add the new import when making suggestions!

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Tests analytics

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

Click here to see the affected service packages
  • compute

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

View the build log

@github-actions github-actions bot requested a review from rileykarson January 9, 2026 18:46
@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1508 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@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, 240 insertions(+))
google-beta provider: Diff ( 7 files changed, 1508 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 173 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1234
Skipped tests: 86
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
  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Get to know how VCR tests work

1 similar comment
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1322
Passed tests: 1234
Skipped tests: 86
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
  • TestAccComputeRegionCompositeHealthCheck_computeRegionCompositeHealthCheckBasicExample
  • TestAccComputeRegionCompositeHealthCheck_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeRegionCompositeHealthCheck_update [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

@modular-magician
Copy link
Collaborator

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

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeRegionCompositeHealthCheck_update [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

ImportStateVerify: true,
},
{
Config: testAccComputeRegionCompositeHealthCheck_basic(context),
Copy link
Member

Choose a reason for hiding this comment

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

Ah- we run into a very annoying wart in Terraform, it attempts to do all deletes before updates during an apply. Since we haven't removed source2 from the composite check yet, deleting source2 fails. This can be corrected with lifecycle.create_before_destroy, but that introduces other problems (namely the one described by hashicorp/terraform-provider-google#25730)

Would you mind parametizing testAccComputeRegionCompositeHealthCheck_update to make health_sources an input? We'd then add a middle Config step here, where the current step uses the value "[google_compute_region_health_source.default.id, google_compute_region_health_source.default2.id]" and the new one would be "[google_compute_region_health_source.default.id]"

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.

3 participants