Skip to content

Apply maintenance policy updates after upgrades so validation on maintenance policy uses the new versions. #12569

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

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

cslink
Copy link
Contributor

@cslink cslink commented Dec 13, 2024

Switch the ordering of updates so maintenance policy updates get applied after upgrades. This means that validation on maintenance exclusions will use the new version as opposed to the old version which means you can upgrade to a new version and set an exclusion until end of support for the new version in one terraform apply command.

Fixes hashicorp/terraform-provider-google#20556

Release note:

container: changed `google_container_cluster` to apply maintenance policy updates after upgrades during cluster update

@github-actions github-actions bot requested a review from c2thorn December 13, 2024 19:16
Copy link

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

@c2thorn, 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 the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Dec 13, 2024
@c2thorn
Copy link
Member

c2thorn commented Dec 13, 2024

@cslink I'd recommend following the initial steps here to get automatic build runs for any future pull requests: go/terraform-contribution-guide#before-you-begin

@modular-magician modular-magician added service/container and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Dec 13, 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 ( 1 file changed, 30 insertions(+), 29 deletions(-))
google-beta provider: Diff ( 1 file changed, 30 insertions(+), 29 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 219
Passed tests: 206
Skipped tests: 12
Affected tests: 1

Click here to see the affected service packages
  • container

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
  • TestAccContainerCluster_resourceManagerTags

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

🔴 Tests failed when rerunning REPLAYING mode:
TestAccContainerCluster_resourceManagerTags [Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.


🟢 All tests passed!

View the build log or the debug log for each test

@c2thorn
Copy link
Member

c2thorn commented Dec 13, 2024

retrying the test

@c2thorn
Copy link
Member

c2thorn commented Dec 13, 2024

/gcbrun

@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 ( 1 file changed, 30 insertions(+), 29 deletions(-))
google-beta provider: Diff ( 1 file changed, 30 insertions(+), 29 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 219
Passed tests: 207
Skipped tests: 12
Affected tests: 0

Click here to see the affected service packages
  • container

🟢 All tests passed!

View the build log

Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

slightly tweaked the release notes, but PR LGTM. Thanks @cslink

@c2thorn c2thorn merged commit 81de2e0 into GoogleCloudPlatform:main Dec 16, 2024
14 checks passed
cesteve pushed a commit to cesteve/magic-modules that referenced this pull request Dec 17, 2024
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Feb 17, 2025
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.

Consider update maintenancy_policy after cluster version update
3 participants