Skip to content

Conversation

@norbertcyran
Copy link
Contributor

@norbertcyran norbertcyran commented Jan 23, 2026

Fixed toggling default compute class in Autopilot.

Fixes hashicorp/terraform-provider-google#24688

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

container: fixed an issue when toggling `default_compute_class_enabled` in `google_container_cluster` with Autopilot enabled

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 23, 2026
@github-actions github-actions bot requested a review from slevenick January 23, 2026 17:50
@github-actions
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.

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

@norbertcyran norbertcyran force-pushed the fix-autopilot-default-compute-class branch from 22952af to 9f89827 Compare January 23, 2026 18:00
@modular-magician modular-magician added service/container and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Jan 23, 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, 90 insertions(+), 13 deletions(-))
google-beta provider: Diff ( 2 files changed, 90 insertions(+), 13 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 280
Passed tests: 250
Skipped tests: 15
Affected tests: 15

Click here to see the affected service packages
  • container

Action taken

Found 15 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccContainerClusterCustomServiceAccount_withAutopilot
  • TestAccContainerCluster_autoprovisioningDefaultsManagement
  • TestAccContainerCluster_autoprovisioningDefaultsUpgradeSettings
  • TestAccContainerCluster_autoprovisioningLocations
  • TestAccContainerCluster_nodeAutoprovisioning
  • TestAccContainerCluster_nodeAutoprovisioningDefaults
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsBootDiskKmsKey
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskSizeGb
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskType
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsImageType
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsShieldedInstance
  • TestAccContainerCluster_nodeAutoprovisioningNetworkTags
  • TestAccContainerCluster_withAutopilotDefaultComputeClassEnabled
  • TestAccContainerCluster_withAutoscalingProfile
  • TestAccContainerCluster_withDefaultComputeClassEnabled

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccContainerCluster_autoprovisioningLocations [Debug log]
TestAccContainerCluster_nodeAutoprovisioning [Debug log]
TestAccContainerCluster_nodeAutoprovisioningNetworkTags [Debug log]
TestAccContainerCluster_withAutopilotDefaultComputeClassEnabled [Debug log]
TestAccContainerCluster_withAutoscalingProfile [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccContainerClusterCustomServiceAccount_withAutopilot [Error message] [Debug log]
TestAccContainerCluster_autoprovisioningDefaultsManagement [Error message] [Debug log]
TestAccContainerCluster_autoprovisioningDefaultsUpgradeSettings [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaults [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsBootDiskKmsKey [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskSizeGb [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskType [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsImageType [Error message] [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsShieldedInstance [Error message] [Debug log]
TestAccContainerCluster_withDefaultComputeClassEnabled [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

@norbertcyran norbertcyran force-pushed the fix-autopilot-default-compute-class branch from 9f89827 to bb6099c Compare January 26, 2026 13:47
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 26, 2026
@github-actions
Copy link

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

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 28, 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, 86 insertions(+), 13 deletions(-))
google-beta provider: Diff ( 2 files changed, 86 insertions(+), 13 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 280
Passed tests: 254
Skipped tests: 15
Affected tests: 11

Click here to see the affected service packages
  • container

Action taken

Found 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccContainerCluster_autoprovisioningDefaultsManagement
  • TestAccContainerCluster_autoprovisioningDefaultsUpgradeSettings
  • TestAccContainerCluster_autoprovisioningLocations
  • TestAccContainerCluster_nodeAutoprovisioning
  • TestAccContainerCluster_nodeAutoprovisioningDefaults
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskSizeGb
  • TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskType
  • TestAccContainerCluster_nodeAutoprovisioningNetworkTags
  • TestAccContainerCluster_withAutopilotDefaultComputeClassEnabled
  • TestAccContainerCluster_withAutoscalingProfile
  • TestAccContainerCluster_withDefaultComputeClassEnabled

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccContainerCluster_autoprovisioningDefaultsManagement [Debug log]
TestAccContainerCluster_autoprovisioningDefaultsUpgradeSettings [Debug log]
TestAccContainerCluster_autoprovisioningLocations [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaults [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskSizeGb [Debug log]
TestAccContainerCluster_nodeAutoprovisioningDefaultsDiskType [Debug log]
TestAccContainerCluster_nodeAutoprovisioningNetworkTags [Debug log]
TestAccContainerCluster_withAutopilotDefaultComputeClassEnabled [Debug log]
TestAccContainerCluster_withAutoscalingProfile [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccContainerCluster_nodeAutoprovisioning [Error message] [Debug log]
TestAccContainerCluster_withDefaultComputeClassEnabled [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
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

There are a couple related test failures. Were you able to run the tests?

@norbertcyran norbertcyran force-pushed the fix-autopilot-default-compute-class branch from bb6099c to eeb18d3 Compare January 29, 2026 12:11
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 29, 2026
@github-actions github-actions bot requested a review from slevenick January 29, 2026 12:12
@norbertcyran
Copy link
Contributor Author

norbertcyran commented Jan 29, 2026

There are a couple related test failures. Were you able to run the tests?

@slevenick Yes, TestAccContainerCluster_nodeAutoprovisioning turned out to be flaky. There was a race condition in which NAP creates a node pool in between cluster create/update and ImportStateVerify steps. I added "node_pool" to ImportStateVerifyIgnore in that test and couple of other tests related to autoprovisioning.

TestAccContainerCluster_withDefaultComputeClassEnabled - there was a small regression that slipped through between one test run and another, it should be fixed now

Thanks for the review!

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Feb 2, 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, 125 insertions(+), 33 deletions(-))
google-beta provider: Diff ( 2 files changed, 125 insertions(+), 33 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 280
Passed tests: 263
Skipped tests: 15
Affected tests: 2

Click here to see the affected service packages
  • container

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
  • TestAccContainerCluster_nodeAutoprovisioning
  • TestAccContainerCluster_withDefaultComputeClassEnabled

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@slevenick slevenick added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@slevenick
Copy link
Contributor

/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 Feb 2, 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, 125 insertions(+), 33 deletions(-))
google-beta provider: Diff ( 2 files changed, 125 insertions(+), 33 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 280
Passed tests: 265
Skipped tests: 15
Affected tests: 0

Click here to see the affected service packages
  • container

🟢 All tests passed!

View the build log

@slevenick slevenick added this pull request to the merge queue Feb 3, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 78799ae Feb 3, 2026
34 of 35 checks passed
@norbertcyran norbertcyran deleted the fix-autopilot-default-compute-class branch February 3, 2026 09:35
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.

Bad request when toggling default_compute_class_enabled

3 participants