-
Notifications
You must be signed in to change notification settings - Fork 42k
[flake] fix TestMutatingWebhookResetsInvalidManagedFields flakes #101380
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
[flake] fix TestMutatingWebhookResetsInvalidManagedFields flakes #101380
Conversation
|
@kwiesmueller: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/wg api-expression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this move inside the loop as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it has to, but it could yes.
Let me try and meanwhile I'll trigger the tests again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, as written previously, the loop didn't actually ensure the webhook was called... if the webhook wasn't observed by the admission webhook informer yet, the patch call would succeed with no warnings and fail the test
move the reset to the top of the loop with a defer, then lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just did that, wanted to wait for the result before I push but here it comes.
|
/test all |
390eb27 to
96a8df4
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kwiesmueller, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
once merged, please also pick to release-1.21 to clean up CI there |
…-#101380-upstream-release-1.21 Automated cherry pick of #101380: fix TestMutatingWebhookResetsInvalidManagedFields flakes
What type of PR is this?
/kind bug
/kind flake
What this PR does / why we need it:
This should fix the flakiness of the
TestMutatingWebhookResetsInvalidManagedFieldstest.Which issue(s) this PR fixes:
Fixes #100556
Special notes for your reviewer:
I'm not entirely sure yet why the flakes happen. The change right now moves the test closer to what has been done in
duplicate_owner_ref_test.gowhich might do the trick.I'd like to avoid increasing the timeout as there should be no reason to and the 30s right now are really long already.
Does this PR introduce a user-facing change?