Repository navigation
[Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure #85848
Description
Activity
In an unrelated PR to add a new argument to the base Executor class for concurrent.futures, there was a test_asyncio failure in test_sendfile for the ProactorEventLoop tests:
======================================================================
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.ProactorEventLoopTests)
----------------------------------------------------------------------Traceback (most recent call last): File "D:\a\cpython\cpython\lib\test\test_asyncio\test_sendfile.py", line 452, in test_sendfile_close_peer_in_the_middle_of_receiving self.run_loop( AssertionError: ConnectionError not raised
https://github.com/python/cpython/pull/22023/checks?check_run_id=1049760805#step:5:2373
- changed the title
[-]test_asyncio: Proactor[/-][+]test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/+]on Sep 1, 2020 - changed the title
[-]test_asyncio: Proactor[/-][+]test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/+]on Sep 1, 2020 - addedtestsTests in the Lib/test dirTests in the Lib/test dir3.10 (EOL)end of lifeend of lifetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Sep 1, 2020 In case the link to the logs are lost from closing and reopening the PR, it was a Windows CI test (GitHub actions) ran with the following configuration:
D:\a\cpython\cpython>"D:\a\cpython\cpython\PCbuild\amd64\python.exe" -u -Wd -E -bb -m test -uall -u-cpu -rwW --slowest --timeout 1200 -j0
== CPython 3.10.0a0 (remotes/pull/22023/merge:992cc27, Aug 31 2020, 06:11:21) [MSC v.1927 64 bit (AMD64)]
== Windows-10-10.0.17763-SP0 little-endian
== cwd: D:\a\cpython\cpython\build\test_python_6372�
== CPU count: 2
== encodings: locale=cp1252, FS=utf-8
Using random seed 491155
0:00:00 Run tests in parallel using 4 child processes (timeout: 20 min, worker timeout: 25 min)16 remaining items
Guido, I can not confirm your suggestion but it seems correct to me.
Test fixed on Windows 2022 by:
commit 1c705fd
Author: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Date: Tue Jan 25 02:34:47 2022 +0530fixed flaky test (GH-30845)Thanks Kumar for the fix!
This failing test was one of my most hated test because it failed randomly for almost 2 years. I'm happy that it has been fixed :-)
Regularly, I'm asking for help to fix test_asyncio:
- October 2020: https://mail.python.org/archives/list/python-dev@python.org/message/Y7I5ADXAQEGK6DOFAPVDTKMBT6NUFNQ4/
- October 2019: https://mail.python.org/archives/list/python-dev@python.org/message/R7X6NKGEOKWD3PBWIL2LPZWZ6MMRANN5/
Last years I gave up, since almost no one replied to my requests.
- changed the title
[-][Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/-][+][Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/+]on Jan 25, 2022 - changed the title
[-][Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/-][+][Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure[/+]on Jan 25, 2022 I'm sorry, Victor.
I'm sorry, Victor.
As a maintainer of the Python CIs, The Night's Watch (*), it's my fault that I didn't skip these tests earlier. Honestly, it's ok to skip a bunch of tests or even remove them if there is no active maintainer.
It's also ok that there is no active maintainer if existing tests continue to pass. asyncio is far from being an exception. Just look at test_nntplib: not maintained for 9 years, https://bugs.python.org/issue40735
This test failure got more attention since it started to fail even more frequently (always?) on Windows 2022.
(*) https://pythondev.readthedocs.io/ci.html#the-night-s-watch-is-fixing-the-cis-in-the-darkness-for-you
I built 3.11.5 on my own Windows computer, and found it passed this test on one computer, but didn't pass on another computer. I think that this issue may not be fixed completely, or I can provide needed information of the computer which this test didn't pass to find out the reason why it didn't pass.
This issue is closed, please open a new issue.
test_sendfile_close_peer_in_the_middle_of_receivingintest_asyncio#30801Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: