classification
Title: test_concurrent_futures: failure on Windows (x64)
Type: Stage:
Components: Tests Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: erlendaasland
Priority: normal Keywords:

Created on 2021-06-22 08:31 by erlendaasland, last changed 2021-06-22 08:31 by erlendaasland.

Messages (1)
msg396312 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2021-06-22 08:31
https://github.com/python/cpython/pull/26840/checks?check_run_id=2879802998

2021-06-21T22:34:41.2973359Z Current runner version: '2.278.0'
2021-06-21T22:34:41.3112811Z ##[group]Operating System
2021-06-21T22:34:41.3113619Z Microsoft Windows Server 2019
2021-06-21T22:34:41.3114096Z 10.0.17763
2021-06-21T22:34:41.3114505Z Datacenter
2021-06-21T22:34:41.3115007Z ##[endgroup]
2021-06-21T22:34:41.3115466Z ##[group]Virtual Environment
2021-06-21T22:34:41.3116039Z Environment: windows-2019
2021-06-21T22:34:41.3116541Z Version: 20210616.0
2021-06-21T22:34:41.3117404Z Included Software: https://github.com/actions/virtual-environments/blob/win19/20210616.0/images/win/Windows2019-Readme.md
2021-06-21T22:34:41.3118637Z Image Release: 2F20210616.0">https://github.com/actions/virtual-environments/releases/tag/win19%2F20210616.0


2021-06-21T22:38:24.0261439Z == CPython 3.11.0a0 (remotes/pull/26840/merge:b69c744, Jun 21 2021, 22:36:15) [MSC v.1929 64 bit (AMD64)]
2021-06-21T22:38:24.0262925Z == Windows-10-10.0.17763-SP0 little-endian
2021-06-21T22:38:24.0264290Z == cwd: D:\a\cpython\cpython\build\test_python_2792�
2021-06-21T22:38:24.0278874Z == CPU count: 2
2021-06-21T22:38:24.0284909Z == encodings: locale=cp1252, FS=utf-8


2021-06-21T22:41:30.6340389Z ======================================================================
2021-06-21T22:41:30.6341414Z FAIL: test_cancel_futures_wait_false (test.test_concurrent_futures.ThreadPoolShutdownTest)
2021-06-21T22:41:30.6342422Z ----------------------------------------------------------------------
2021-06-21T22:41:30.6343079Z Traceback (most recent call last):
2021-06-21T22:41:30.6343885Z   File "D:\a\cpython\cpython\lib\test\test_concurrent_futures.py", line 486, in test_cancel_futures_wait_false
2021-06-21T22:41:30.6344929Z     rc, out, err = assert_python_ok('-c', """if True:
2021-06-21T22:41:30.6345751Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 160, in assert_python_ok
2021-06-21T22:41:30.6347111Z     return _assert_python(True, *args, **env_vars)
2021-06-21T22:41:30.6348114Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 145, in _assert_python
2021-06-21T22:41:30.6348807Z     res.fail(cmd_line)
2021-06-21T22:41:30.6349473Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 72, in fail
2021-06-21T22:41:30.6350312Z     raise AssertionError("Process return code is %d\n"
2021-06-21T22:41:30.6351066Z AssertionError: Process return code is 3221225477
2021-06-21T22:41:30.6353102Z command line: ['D:\\a\\cpython\\cpython\\PCbuild\\amd64\\python.exe', '-X', 'faulthandler', '-I', '-c', 'if True:\n            from concurrent.futures import ThreadPoolExecutor\n            from test.test_concurrent_futures import sleep_and_print\n            if __name__ == "__main__":\n                t = ThreadPoolExecutor()\n                t.submit(sleep_and_print, .1, "apple")\n                t.shutdown(wait=False, cancel_futures=True)\n            ']
2021-06-21T22:41:30.6354570Z 
2021-06-21T22:41:30.6354966Z stdout:
2021-06-21T22:41:30.6355350Z ---
2021-06-21T22:41:30.6355742Z apple
2021-06-21T22:41:30.6356133Z ---
2021-06-21T22:41:30.6356402Z 
2021-06-21T22:41:30.6356793Z stderr:
2021-06-21T22:41:30.6357161Z ---
2021-06-21T22:41:30.6357446Z 
2021-06-21T22:41:30.6357812Z ---
2021-06-21T22:41:30.6358099Z 
2021-06-21T22:41:30.6358545Z ======================================================================
2021-06-21T22:41:30.6359427Z FAIL: test_hang_issue39205 (test.test_concurrent_futures.ThreadPoolShutdownTest)
2021-06-21T22:41:30.6360495Z shutdown(wait=False) doesn't hang at exit with running futures.
2021-06-21T22:41:30.6361234Z ----------------------------------------------------------------------
2021-06-21T22:41:30.6361882Z Traceback (most recent call last):
2021-06-21T22:41:30.6362654Z   File "D:\a\cpython\cpython\lib\test\test_concurrent_futures.py", line 393, in test_hang_issue39205
2021-06-21T22:41:30.6363427Z     rc, out, err = assert_python_ok('-c', """if True:
2021-06-21T22:41:30.6364204Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 160, in assert_python_ok
2021-06-21T22:41:30.6365084Z     return _assert_python(True, *args, **env_vars)
2021-06-21T22:41:30.6365860Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 145, in _assert_python
2021-06-21T22:41:30.6366552Z     res.fail(cmd_line)
2021-06-21T22:41:30.6367198Z   File "D:\a\cpython\cpython\lib\test\support\script_helper.py", line 72, in fail
2021-06-21T22:41:30.6367976Z     raise AssertionError("Process return code is %d\n"
2021-06-21T22:41:30.6368677Z AssertionError: Process return code is 3221225477
2021-06-21T22:41:30.6371113Z command line: ['D:\\a\\cpython\\cpython\\PCbuild\\amd64\\python.exe', '-X', 'faulthandler', '-I', '-c', 'if True:\n            from concurrent.futures import ThreadPoolExecutor\n            from test.test_concurrent_futures import sleep_and_print\n            if __name__ == "__main__":\n                t = ThreadPoolExecutor(max_workers=3)\n                t.submit(sleep_and_print, 1.0, "apple")\n                t.shutdown(wait=False)\n            ']
2021-06-21T22:41:30.6372592Z 
2021-06-21T22:41:30.6373007Z stdout:
2021-06-21T22:41:30.6373379Z ---
2021-06-21T22:41:30.6373797Z apple
2021-06-21T22:41:30.6374176Z ---
2021-06-21T22:41:30.6374462Z 
2021-06-21T22:41:30.6374848Z stderr:
2021-06-21T22:41:30.6375301Z ---
2021-06-21T22:41:30.6375594Z 
2021-06-21T22:41:30.6375960Z ---
2021-06-21T22:41:30.6376249Z 
2021-06-21T22:41:30.6376805Z ----------------------------------------------------------------------
2021-06-21T22:41:30.6377249Z 
2021-06-21T22:41:30.6377686Z Ran 226 tests in 99.406s
2021-06-21T22:41:30.6378011Z 
2021-06-21T22:41:30.6378486Z FAILED (failures=2, skipped=111)
2021-06-21T22:41:30.6379080Z test test_concurrent_futures failed




test_regrtest also times out (related? side-effect?):

2021-06-21T23:00:47.1024847Z Timeout (0:20:00)!
2021-06-21T23:00:47.1025489Z Thread 0x0000140c (most recent call first):
2021-06-21T23:00:47.1026155Z   File "D:\a\cpython\cpython\lib\subprocess.py", line 1493 in _readerthread
2021-06-21T23:00:47.1026928Z   File "D:\a\cpython\cpython\lib\threading.py", line 946 in run
2021-06-21T23:00:47.1027633Z   File "D:\a\cpython\cpython\lib\threading.py", line 1009 in _bootstrap_inner
2021-06-21T23:00:47.1028402Z   File "D:\a\cpython\cpython\lib\threading.py", line 966 in _bootstrap
2021-06-21T23:00:47.1028829Z 
2021-06-21T23:00:47.1029247Z Thread 0x00001990 (most recent call first):
2021-06-21T23:00:47.1029942Z   File "D:\a\cpython\cpython\lib\threading.py", line 1099 in _wait_for_tstate_lock
2021-06-21T23:00:47.1030683Z   File "D:\a\cpython\cpython\lib\threading.py", line 1083 in join
2021-06-21T23:00:47.1031396Z   File "D:\a\cpython\cpython\lib\subprocess.py", line 1522 in _communicate
2021-06-21T23:00:47.1032178Z   File "D:\a\cpython\cpython\lib\subprocess.py", line 1148 in communicate
2021-06-21T23:00:47.1033029Z   File "D:\a\cpython\cpython\lib\subprocess.py", line 503 in run
2021-06-21T23:00:47.1033763Z   File "D:\a\cpython\cpython\lib\test\test_regrtest.py", line 522 in run_command
2021-06-21T23:00:47.1034561Z   File "D:\a\cpython\cpython\lib\test\test_regrtest.py", line 547 in run_python
2021-06-21T23:00:47.1035300Z   File "D:\a\cpython\cpython\lib\test\test_regrtest.py", line 602 in run_tests
2021-06-21T23:00:47.1036512Z   File "D:\a\cpython\cpython\lib\test\test_regrtest.py", line 649 in test_tools_script_run_tests
2021-06-21T23:00:47.1037383Z   File "D:\a\cpython\cpython\lib\unittest\case.py", line 549 in _callTestMethod
2021-06-21T23:00:47.1038111Z   File "D:\a\cpython\cpython\lib\unittest\case.py", line 592 in run
2021-06-21T23:00:47.1038827Z   File "D:\a\cpython\cpython\lib\unittest\case.py", line 652 in __call__
2021-06-21T23:00:47.1039511Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-06-21T23:00:47.1040225Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-06-21T23:00:47.1040890Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-06-21T23:00:47.1041608Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-06-21T23:00:47.1042317Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 122 in run
2021-06-21T23:00:47.1042986Z   File "D:\a\cpython\cpython\lib\unittest\suite.py", line 84 in __call__
2021-06-21T23:00:47.1043715Z   File "D:\a\cpython\cpython\lib\unittest\runner.py", line 176 in run
2021-06-21T23:00:47.1044409Z   File "D:\a\cpython\cpython\lib\test\support\__init__.py", line 960 in _run_suite
2021-06-21T23:00:47.1045522Z   File "D:\a\cpython\cpython\lib\test\support\__init__.py", line 1083 in run_unittest
2021-06-21T23:00:47.1046305Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 210 in _test_module
2021-06-21T23:00:47.1047201Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 246 in _runtest_inner2
2021-06-21T23:00:47.1048077Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 282 in _runtest_inner
2021-06-21T23:00:47.1048889Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 141 in _runtest
2021-06-21T23:00:47.1049727Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest.py", line 194 in runtest
2021-06-21T23:00:47.1050546Z   File "D:\a\cpython\cpython\lib\test\libregrtest\runtest_mp.py", line 81 in run_tests_worker
2021-06-21T23:00:47.1051374Z   File "D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 661 in _main
2021-06-21T23:00:47.1052149Z   File "D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 641 in main
2021-06-21T23:00:47.1052882Z   File "D:\a\cpython\cpython\lib\test\libregrtest\main.py", line 719 in main
2021-06-21T23:00:47.1053632Z   File "D:\a\cpython\cpython\lib\test\regrtest.py", line 43 in _main
2021-06-21T23:00:47.1054425Z   File "D:\a\cpython\cpython\lib\test\regrtest.py", line 47 in <module>
2021-06-21T23:00:47.1055141Z   File "D:\a\cpython\cpython\lib\runpy.py", line 86 in _run_code
2021-06-21T23:00:47.1055833Z   File "D:\a\cpython\cpython\lib\runpy.py", line 196 in _run_module_as_main
2021-06-21T23:00:47.1056566Z 0:22:23 load avg: 0.00 [427/427/2] test_regrtest crashed (Exit code 1)
History
Date User Action Args
2021-06-22 08:31:40erlendaaslandcreate