-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
test_concurrent_futures.test_wait.ThreadPoolWaitTests.test_timeout
flakes frequently on free-threaded Windows x64
#128364
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
Comments
We could try bumping the sleep time (e.g., 2a150fc) but I don't think that would help. It's interesting it's consistently on this platform. |
This might be a radical opinion, but I think we should delete the test. These sorts of timeout based tests that can spuriously fail if a process takes too long to start are a frequent source of flaky tests. I don't think they catch enough bugs or prevent enough regressions to justify the time we spend tweaking the tests. |
(cherry picked from commit cfa0b1d) Co-authored-by: Sam Gross <[email protected]>
(cherry picked from commit cfa0b1d) Co-authored-by: Sam Gross <[email protected]>
Should be fixed by #130724 — can reopen if not. |
gh-128364: Fix flaky `test_timeout` test (gh-130724) (cherry picked from commit cfa0b1d) Co-authored-by: Sam Gross <[email protected]>
gh-128364: Fix flaky `test_timeout` test (gh-130724) (cherry picked from commit cfa0b1d) Co-authored-by: Sam Gross <[email protected]>
We have build bot failures on android and others now |
…)" Change broke Android and iOS buildbots that do not have multiprocessing. This reverts commit cfa0b1d.
) Change broke Android and iOS buildbots that do not have multiprocessing. This reverts commit cfa0b1d.
…)" (pythongh-130732) Change broke Android and iOS buildbots that do not have multiprocessing. This reverts commit cfa0b1d. (cherry picked from commit 5221d9c) Co-authored-by: Sam Gross <[email protected]>
…)" (pythongh-130732) Change broke Android and iOS buildbots that do not have multiprocessing. This reverts commit cfa0b1d. (cherry picked from commit 5221d9c) Co-authored-by: Sam Gross <[email protected]>
Use events instead of relying on `time.sleep()`. The tests are also now about four times faster.
…0742) Use events instead of relying on `time.sleep()`. The tests are also now about four times faster.
… tests (pythongh-130742) Use events instead of relying on `time.sleep()`. The tests are also now about four times faster. (cherry picked from commit c4d37ee) Co-authored-by: Sam Gross <[email protected]>
…gh-130742) (#130922) Use events instead of relying on `time.sleep()`. The tests are also now about four times faster. (cherry picked from commit c4d37ee)
Should be fixed now |
…)" (pythongh-130732) Change broke Android and iOS buildbots that do not have multiprocessing. This reverts commit cfa0b1d.
…ythongh-130742) Use events instead of relying on `time.sleep()`. The tests are also now about four times faster.
Bug report
Bug description:
The following test fails frequently, but not consistently:
As seen in the following CI runs for recent commits to
main
A brief analysis of the code at
cpython/Lib/test/test_concurrent_futures/test_wait.py
Lines 115 to 133 in 1d3225a
looks like the sleeping
future
is present in thefinished
set instead ofpending
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
test_timeout
test #130724test_timeout
test (gh-130724) #130728test_timeout
test (gh-130724) #130729test_timeout
test (gh-130724)" #130732test_timeout
test (gh-130724)" (gh-130732) #130734test_timeout
test (gh-130724)" (gh-130732) #130735test_concurrent_futures.test_wait
tests #130742test_concurrent_futures.test_wait
tests (gh-130742) #130922The text was updated successfully, but these errors were encountered: