classification
Title: [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
Type: behavior Stage: needs patch
Components: asyncio, Tests, Windows Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: aeros, asvetlov, ncoghlan, terry.reedy, vstinner, yselivanov
Priority: normal Keywords: patch

Created on 2020-09-01 01:20 by aeros, last changed 2021-04-27 12:28 by ncoghlan.

Messages (4)
msg376175 - (view) Author: Kyle Stanley (aeros) * (Python committer) Date: 2020-09-01 01:24
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
msg376176 - (view) Author: Kyle Stanley (aeros) * (Python committer) Date: 2020-09-01 01:36
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)
msg391134 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-04-15 12:53
I marked bpo-42124 and bpo-43539 as a duplicate of this issue.
msg392061 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2021-04-27 12:27
Another instance at https://github.com/python/cpython/pull/25585/checks?check_run_id=2447701034

I unlinked the previously linked PR, as that looked to be for bpo-43539 rather than this issue.
History
Date User Action Args
2021-04-27 12:28:11ncoghlansetstage: patch review -> needs patch
2021-04-27 12:27:58ncoghlansetnosy: + ncoghlan
messages: + msg392061
2021-04-27 12:26:45ncoghlansetpull_requests: - pull_request24157
2021-04-15 12:53:39vstinnersetnosy: + terry.reedy
2021-04-15 12:53:32vstinnersettitle: test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure -> [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
2021-04-15 12:53:11vstinnersetmessages: + msg391134
2021-04-15 12:53:00vstinnerlinkissue43539 superseder
2021-04-15 12:52:37vstinnerlinkissue42124 superseder
2021-04-15 12:51:33vstinnersetkeywords: + patch
nosy: + vstinner

pull_requests: + pull_request24157
stage: patch review
2020-09-01 01:51:47aerossetnosy: - paul.moore, tim.golden, zach.ware, steve.dower
2020-09-01 01:51:13aerossetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows, asyncio
2020-09-01 01:36:41aerossetmessages: + msg376176
2020-09-01 01:26:06aerossetnosy: + asvetlov, yselivanov

type: behavior
components: + Tests
versions: + Python 3.10
2020-09-01 01:24:09aerossetmessages: + msg376175
title: test_asyncio: Proactor -> test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
2020-09-01 01:20:55aeroscreate