-
Notifications
You must be signed in to change notification settings - Fork 881
fix: Enable goleak
for cli
tests
#3370
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
goleak.VerifyTestMain(m, | ||
// The lumberjack library is used by by agent and seems to leave | ||
// goroutines after Close(), fails TestGitSSH tests. | ||
// https://github.com/natefinch/lumberjack/pull/100 |
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 do a go mod replace instead?
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.
TBH I haven't done a proper review of that PR, and I'm not confident in using it in a production environment without doing so. My judgement was that this is a non-issue in a production environment since the agent only runs once and thus won't be leaking memory, so I think the goleak ignore is acceptable 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.
Makes sense! TY sir
This PR enables
goleak
checking forcli
commands. This should be worhwile to detect potential leaks caused by long-running commands likecoder server
, maybe others.Merging is currently blocked until these PRs are merged (or we switch to forks):
Read
cancellation onClose
pion/udp#73Closes #3221