Skip to content

test_asyncio.test_waitfor: test_wait_for() failed with "AssertionError: 0.547 not less than 0.5" on GHA Windows x64 #109833

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

Closed
vstinner opened this issue Sep 25, 2023 · 0 comments
Labels
tests Tests in the Lib/test dir topic-asyncio

Comments

@vstinner
Copy link
Member

vstinner commented Sep 25, 2023

GHA Windows x64:

FAIL: test_wait_for (test.test_asyncio.test_waitfor.AsyncioWaitForTest.test_wait_for)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\unittest\async_case.py", line 90, in _callTestMethod
    if self._callMaybeAsync(method) is not None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\unittest\async_case.py", line 112, in _callMaybeAsync
    return self._asyncioRunner.run(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\asyncio\base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\test\test_asyncio\test_waitfor.py", line 147, in test_wait_for
    self.assertLess(t1 - t0, 0.5)
AssertionError: 0.5470000000000255 not less than 0.5

build: https://github.com/python/cpython/actions/runs/6299237551/job/17099620804?pr=109828

Linked PRs

@vstinner vstinner added tests Tests in the Lib/test dir topic-asyncio labels Sep 25, 2023
@github-project-automation github-project-automation bot moved this to Todo in asyncio Sep 25, 2023
vstinner added a commit to vstinner/cpython that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. Only check that SHORT_TIMEOUT (about 30 seconds) is
shorter than 1 hour.
vstinner added a commit to vstinner/cpython that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
vstinner added a commit to vstinner/cpython that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. By default, SHORT_TIMEOUT is about 30 seconds and
LONG_TIMEOUT is about 5 minutes.
vstinner added a commit that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
(cherry picked from commit f29bc9c)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 25, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
(cherry picked from commit f29bc9c)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this issue Sep 25, 2023
gh-109833: Fix asyncio test_wait_for() (GH-109834)

Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
(cherry picked from commit f29bc9c)

Co-authored-by: Victor Stinner <[email protected]>
@github-project-automation github-project-automation bot moved this from Todo to Done in asyncio Sep 25, 2023
csm10495 pushed a commit to csm10495/cpython that referenced this issue Sep 28, 2023
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
Yhg1s pushed a commit that referenced this issue Oct 2, 2023
gh-109833: Fix asyncio test_wait_for() (GH-109834)

Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
(cherry picked from commit f29bc9c)

Co-authored-by: Victor Stinner <[email protected]>
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
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-asyncio
Projects
Status: Done
Development

No branches or pull requests

1 participant