Skip to content

Conversation

hp1100
Copy link
Contributor

@hp1100 hp1100 commented Oct 14, 2025

Background:

This change promotes the google_compute_preview_feature resource to GA, making it available in the stable provider version. The initial beta support was added in #14363.

compute: promoted the `google_compute_preview_feature` resource to GA.
compute: the `activation_status` attribute within the `google_compute_preview_feature` resource now uses the `ACTIVATION_STATE_UNSPECIFIED` value instead of `DISABLED`. Support for `DISABLED` will be added in a future release.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 14, 2025
@github-actions github-actions bot requested a review from rileykarson October 14, 2025 11:06
Copy link

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.

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 14, 2025
@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, 495 insertions(+), 17 deletions(-))
google-beta provider: Diff ( 4 files changed, 15 insertions(+), 20 deletions(-))
Open in Cloud Shell: Diff ( 4 files changed, 110 insertions(+))

Missing service labels

The following new resources do not have corresponding service labels:

  • google_compute_preview_feature

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.

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are GA-only additions and require manual runs:

  • TestAccComputePreviewFeature_previewFeatureBasicExample

Tests analytics

Total tests: 1294
Passed tests: 1207
Skipped tests: 84
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
  • TestAccComputePreviewFeature_previewFeatureBasicExample
  • TestAccComputePreviewFeature_update
  • 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.


🔴 Tests failed during RECORDING mode:
TestAccComputePreviewFeature_previewFeatureBasicExample [Error message] [Debug log]
TestAccComputePreviewFeature_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 modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 14, 2025
@github-actions github-actions bot requested a review from rileykarson October 14, 2025 19:41
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 14, 2025
@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, 495 insertions(+), 17 deletions(-))
google-beta provider: Diff ( 4 files changed, 15 insertions(+), 20 deletions(-))
Open in Cloud Shell: Diff ( 4 files changed, 110 insertions(+))

Missing service labels

The following new resources do not have corresponding service labels:

  • google_compute_preview_feature

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.

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are GA-only additions and require manual runs:

  • TestAccComputePreviewFeature_previewFeatureBasicExample

Tests analytics

Total tests: 1294
Passed tests: 1208
Skipped tests: 84
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
  • TestAccComputePreviewFeature_previewFeatureBasicExample
  • TestAccComputePreviewFeature_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputePreviewFeature_previewFeatureBasicExample [Debug log]
TestAccComputePreviewFeature_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

@ScottSuarez
Copy link
Contributor

Comment on lines +62 to +68
- name: 'activationStatus'
type: Enum
description: 'The activation status of the preview feature.'
required: true
enum_values:
- 'ENABLED'
- 'DISABLED'
- 'ACTIVATION_STATE_UNSPECIFIED'
Copy link
Contributor

@ScottSuarez ScottSuarez Oct 15, 2025

Choose a reason for hiding this comment

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

  - name: 'activationStatus'
    type: String
    description: 'The activation status of the preview feature. Possible values: ["ENABLED", "ACTIVATION_STATE_UNSPECIFIED"]'
    required: true
    validation:
      function: verify.ValidateEnum([]string{"ENABLED", "DISABLED", "ACTIVATION_STATE_UNSPECIFIED"})

My recommendation would be this implementation. Enums are really just strings with some validation. This way we still support the previous enum at the validation level and simply remove it from documentation.

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.

@ScottSuarez ScottSuarez added this pull request to the merge queue Oct 15, 2025
Merged via the queue into GoogleCloudPlatform:main with commit 0268d66 Oct 15, 2025
28 of 31 checks passed
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