-
Notifications
You must be signed in to change notification settings - Fork 1.2k
🏃 Verification of leak goroutine on controller and manager #738
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
Conversation
Hi @knabben. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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. |
Hmm are the leaked goroutines expected? Or should the test rather not have a treshold of 5 but rather 0 and we should fix those leaks before landing this? |
Those are semi-expected. We don't have a good way to work around them yet. I think we should finally have a For now, the threshold should be whatever exists currently (so the three), with a comment to ratchet down as we fix the issues. |
pkg/controller/controller_test.go
Outdated
@@ -90,6 +92,26 @@ var _ = Describe("controller.Controller", func() { | |||
|
|||
close(done) | |||
}) | |||
|
|||
It("should not leak goroutines when stop", func(done Done) { | |||
// TODO(community) - After closing the proper leaks on watch this must be reduced to 0 |
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.
should we maybe also document why are those leaks expected and what goroutines are leaking for future reference?
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. We can at least link to the relevant issue somewhere around here.
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.
(also, for future reference, community
is not actually a valid TODO target -- this isn't supposed to be who does the TODO, it's supposed to be who has context)
/ok-to-test |
gonna push the note, otherwise we should be good |
Signed-off-by: Amim Knabben <[email protected]>
09beed7
to
87a0264
Compare
/lgtm |
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, knabben 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, knabben 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 |
/retest |
This PR adds tests both for manager and controller checking the leak of goroutines on start and stop, I put the threshold of 5 in comparison because it has 3 leaks after stop:
Related with #724