-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][ci] Improve thread leak detection by ignoring more Testcontainers threads #21499
[improve][ci] Improve thread leak detection by ignoring more Testcontainers threads #21499
Conversation
9fc8f80
to
8525e87
Compare
8525e87
to
076fd55
Compare
} | ||
return false; | ||
} | ||
|
||
private static Runnable extractRunnableTarget(Thread thread) { |
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.
NIT: maybe add a comment on why we have to use reflection 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.
Done
Codecov Report
@@ Coverage Diff @@
## master #21499 +/- ##
=============================================
+ Coverage 36.76% 73.30% +36.53%
- Complexity 12233 32626 +20393
=============================================
Files 1713 1890 +177
Lines 130816 140423 +9607
Branches 14258 15434 +1176
=============================================
+ Hits 48100 102931 +54831
+ Misses 76361 29398 -46963
- Partials 6355 8094 +1739
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Motivation
The thread leak detection added in #21450 reports some Testcontainer threads as leaks. These threads can be safely ignored since they will be terminated eventually.
Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete