Skip to content

Conversation

@dnwe
Copy link
Collaborator

@dnwe dnwe commented Aug 14, 2023

Whilst this isn't as helpful as a per test defer goleak.VerifyNone in terms of showing which test was responsible for the leak, it's still worth having as a baseline check in PRs and CI to prevent new leaks being introduced now that we're all cleaned up. If a PR fails we can subsequently run tests individually in order to determine which one is the leaker.

See https://github.com/uber-go/goleak#quick-start and https://github.com/uber-go/goleak#determine-source-of-package-leaks

@dnwe dnwe added the ci label Aug 14, 2023
@dnwe dnwe force-pushed the dnwe/goleak branch 2 times, most recently from d36c6b1 to a785e30 Compare August 14, 2023 10:38
Whilst this isn't as helpful as a per test `defer goleak.VerifyNone` in
terms of showing _which_ test was responsible for the leak, it's still
worth having as a baseline check in PRs and CI to prevent new leaks
being introduced now that we're all cleaned up. If a PR fails we can
subsequently run tests individually in order to determine which one is
the leaker.

See https://github.com/uber-go/goleak#quick-start and
https://github.com/uber-go/goleak#determine-source-of-package-leaks

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe closed this Aug 22, 2023
@dnwe dnwe reopened this Sep 11, 2025
@dnwe dnwe marked this pull request as draft September 11, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants