This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_multiprocessing_spawn random failures on x86 Windows7 3.6
Type: Stage: resolved
Components: Tests Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, vstinner
Priority: normal Keywords: patch

Created on 2018-06-20 10:32 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 7972 merged vstinner, 2018-06-27 16:42
PR 7973 merged miss-islington, 2018-06-27 20:23
PR 7976 merged vstinner, 2018-06-27 20:29
Messages (8)
msg320059 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-20 10:32
http://buildbot.python.org/all/#/builders/90/builds/414

======================================================================
FAIL: test_ipython_workaround (test.test_multiprocessing_main_handling.SpawnCmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 184, in test_ipython_workaround
    self._check_script(script_no_suffix)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 157, in _check_script
    rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\support\script_helper.py", line 155, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\support\script_helper.py", line 141, in _assert_python
    err))
AssertionError: Process return code is 1
command line: ['D:\\cygwin\\home\\db3l\\buildarea\\3.6.bolen-windows7\\build\\PCbuild\\win32\\python_d.exe', '-X', 'faulthandler', '-E', 'd:\\temp\\tmp4zf7ti6l\\ipython', 'spawn']

stdout:
---

---

stderr:
---
Traceback (most recent call last):

  File "d:\temp\tmp4zf7ti6l\ipython", line 23, in <module>

    raise RuntimeError("Timed out waiting for results")

RuntimeError: Timed out waiting for results
---

======================================================================
FAIL: test_timeout (test.test_multiprocessing_spawn.WithThreadsTestQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\_test_multiprocessing.py", line 883, in test_timeout
    self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16714811325073242 not greater than or equal to 0.17

======================================================================
FAIL: test_package (test.test_multiprocessing_main_handling.SpawnCmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 257, in test_package
    self._check_script(launch_name)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_multiprocessing_main_handling.py", line 157, in _check_script
    rc, out, err = assert_python_ok(*run_args, __isolated=False)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\support\script_helper.py", line 155, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\support\script_helper.py", line 141, in _assert_python
    err))
AssertionError: Process return code is 1
command line: ['D:\\cygwin\\home\\db3l\\buildarea\\3.6.bolen-windows7\\build\\PCbuild\\win32\\python_d.exe', '-X', 'faulthandler', '-E', 'd:\\temp\\tmp3xpannzo\\launch.py', 'spawn']

stdout:
---

---

stderr:
---
Traceback (most recent call last):
  File "d:\temp\tmp3xpannzo\launch.py", line 3, in <module>
    runpy._run_module_as_main('test_pkg')
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "d:\temp\tmp3xpannzo\test_pkg\__main__.py", line 23, in <module>
    raise RuntimeError("Timed out waiting for results")
RuntimeError: Timed out waiting for results
---


=> see bpo-30317 for test_timeout() failure.
msg320595 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 15:38
FAIL: test_timeout (test.test_multiprocessing_spawn.WithThreadsTestQueue)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\_test_multiprocessing.py", line 883, in test_timeout
    self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16714811325073242 not greater than or equal to 0.17

=> I fixed this one in bpo-30317.
msg320601 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 16:44
See also bpo-30339 and bpo-33715 (PR 7971).
msg320607 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 20:21
New changeset 64737e9ae2081e529935ecf07f44e89f362d1c4b by Victor Stinner in branch 'master':
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972)
https://github.com/python/cpython/commit/64737e9ae2081e529935ecf07f44e89f362d1c4b
msg320609 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 20:22
Python 2.7 is not affected: it doesn't have these tests.
msg320618 - (view) Author: miss-islington (miss-islington) Date: 2018-06-27 20:41
New changeset 4b1d286ac06f32a5857af1b3141dd4127744b15b by Miss Islington (bot) in branch '3.7':
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972)
https://github.com/python/cpython/commit/4b1d286ac06f32a5857af1b3141dd4127744b15b
msg320621 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 21:14
New changeset 1d06be8cc55715be8c32ec3b462adfb3a7839dfe by Victor Stinner in branch '3.6':
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972) (GH-7976)
https://github.com/python/cpython/commit/1d06be8cc55715be8c32ec3b462adfb3a7839dfe
msg320623 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-27 21:15
I increased the timeout from 10 seconds to 1 minute in test_multiprocessing_main_handling in 3.6, 3.7 and master branches.
History
Date User Action Args
2022-04-11 14:59:02adminsetgithub: 78094
2018-06-27 21:15:38vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg320623

stage: patch review -> resolved
2018-06-27 21:14:56vstinnersetmessages: + msg320621
2018-06-27 20:41:41miss-islingtonsetnosy: + miss-islington
messages: + msg320618
2018-06-27 20:29:48vstinnersetpull_requests: + pull_request7586
2018-06-27 20:23:21miss-islingtonsetpull_requests: + pull_request7582
2018-06-27 20:22:58vstinnersetmessages: + msg320609
versions: + Python 3.7, Python 3.8
2018-06-27 20:21:55vstinnersetmessages: + msg320607
2018-06-27 16:44:11vstinnersetmessages: + msg320601
2018-06-27 16:42:55vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request7580
2018-06-27 15:38:25vstinnersetmessages: + msg320595
2018-06-20 10:32:47vstinnercreate