-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
gh-124666: Improve thread cleanup in test_android #131427
Conversation
!buildbot android |
🤖 New build scheduled with the buildbot fleet by @mhsmith for commit 4997d1b 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131427%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
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.
Seems like a reasonable set of fixes to me. If nothing else, I guess this means the failure case will actually fail, rather than timing out, which is a definite improvement; maybe the new failure will reveal more detail about why it's failing? (We can but hope :-) )
Thanks @mhsmith for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
) Ensures that failures in test setup don't result in dangling threads. (cherry picked from commit 01b5abb) Co-authored-by: Malcolm Smith <smith@chaquo.com>
GH-131433 is a backport of this pull request to the 3.13 branch. |
Ensures that failures in test setup don't result in dangling threads.
The hanging buildbot in #124666 was caused by a leftover thread created in the test's
setUp
method. It was supposed to be cleaned up bytearDown
, but that isn't called automatically whensetUp
fails.I still don't know why the underlying test failure was happening, but I've increased all the timeouts to
LOOPBACK_TIMEOUT
(10 seconds) in case that makes a difference.Also cleaned up a couple of other test failure logging issues.