Closed
Conversation
Otherwise we leak some resources. Signed-off-by: Matt Lord <mattalord@gmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
3 tasks
deepthi
reviewed
Jul 30, 2022
Collaborator
deepthi
left a comment
There was a problem hiding this comment.
This looks good in principle.
What did you mean by the goleak library not being useful in e2e tests?
| } | ||
| if depth == len(cont.Path) { | ||
| leaf = &cont | ||
| leaf = &cont // nolint:exportloopref |
Collaborator
Member
Author
Seems that it only tests the main command go test executes whereas the e2e tests start up a bunch of processes. |
Contributor
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
Contributor
|
This PR was closed because it has been stale for 7 days with no activity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I did a quick audit of places where we were using a confined Ticker — created as a local variable in a function — but not ensuring it gets stopped with a defer statement. This will help to prevent resource leaks. This was prompted by the fact I realized I forgot to do this in a PR yesterday: #10720
I'm also investigating usage of this: https://github.com/uber-go/goleak
Unfortunately this does not seem useful to use in e2e tests.
Related Issue(s)
Checklist