-
Notifications
You must be signed in to change notification settings - Fork 41.4k
kubelet_test: fixes race in TestSyncPodsDeletesWhenSourcesAreReadyPerQOS #98938
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
kubelet_test: fixes race in TestSyncPodsDeletesWhenSourcesAreReadyPerQOS #98938
Conversation
103b006
to
86f7ade
Compare
pkg/kubelet/kubelet_test.go
Outdated
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.
Is there a way to defer these for just the block above? With this change, if something explodes in the code above these won't get called, right?
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.
The test doesn't return early... so these should always get called.
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.
/lgtm
/release-note-none |
mm, looks like the test failed Ryan https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/98938/pull-kubernetes-bazel-test/1359296150607237120#1:build-log.txt%3A192 |
yeah, it did... let me see. |
86f7ade
to
219303f
Compare
219303f
to
bb29547
Compare
|
looks like an unrelated flake /test pull-kubernetes-e2e-kind |
/test pull-kubernetes-e2e-kind |
bb29547
to
29fdbb0
Compare
29fdbb0
to
c70ecc2
Compare
c70ecc2
to
ee8ea1b
Compare
/approve |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rphillips, sjenning The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kubernetes-e2e-kind |
What type of PR is this?
/kind flake
/kind cleanup
What this PR does / why we need it:
#98424 introduced a unit test called TestSyncPodsDeletesWhenSourcesAreReadyPerQOS. This unit test has a subtle flake in it since the podContainerManager calls Delete() with a go routine.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Verify:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: