-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test_notify
multiprocessing test is flaky
#130737
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
Labels
tests
Tests in the Lib/test dir
topic-free-threading
topic-multiprocessing
type-bug
An unexpected behavior, bug, or error
Comments
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (DELTA) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds).
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (DELTA) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds).
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds).
Well, the test uses a sleep of 100 ms as a synchronization method, it's not reliable. I wrote PR #130797 to wait until a condition is met using a loop. |
vstinner
added a commit
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds).
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds). (cherry picked from commit 8a64a62) Co-authored-by: Victor Stinner <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 3, 2025
Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds). (cherry picked from commit 8a64a62) Co-authored-by: Victor Stinner <[email protected]>
This was referenced Mar 3, 2025
vstinner
added a commit
that referenced
this issue
Mar 3, 2025
) gh-130737: Fix multiprocessing test_notify() (GH-130797) Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds). (cherry picked from commit 8a64a62) Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
that referenced
this issue
Mar 3, 2025
) gh-130737: Fix multiprocessing test_notify() (GH-130797) Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds). (cherry picked from commit 8a64a62) Co-authored-by: Victor Stinner <[email protected]>
Since the backports were merged, Refleaks tests (mainly Windows) are often failing, see:
|
#130933 should fix the buildbot failures. |
Fixed by #130933 |
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
Replace hardcoded delay (100 ms) with a loop awaiting until a condition is true: replace assertReturnsIfImplemented() with assertReachesEventually(). Use sleeping_retry() in assertReachesEventually() to tolerate slow buildbots and raise an exception on timeout (30 seconds).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
tests
Tests in the Lib/test dir
topic-free-threading
topic-multiprocessing
type-bug
An unexpected behavior, bug, or error
Bug report
Seen in https://github.com/python/cpython/actions/runs/13606907022/job/38039459160?pr=130732
Linked PRs
The text was updated successfully, but these errors were encountered: