--- Begin Message ---
Source: pytest-xdist
Version: 2.5.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:237: python3.10 setup.py config
> running config
> I: pybuild base:237: python3.9 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/workermanage.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/dsession.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/report.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/newhooks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/looponfail.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/remote.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> copying src/xdist/plugin.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/load.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadgroup.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/each.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadfile.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadscope.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler
> I: pybuild base:237: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/workermanage.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/dsession.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/report.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/newhooks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/looponfail.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/remote.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> copying src/xdist/plugin.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/load.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadgroup.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/each.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadfile.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> copying src/xdist/scheduler/loadscope.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build; python3.10 -m
> pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> plugins: xdist-2.5.0, forked-1.4.0
> collected 167 items
>
> testing/acceptance_test.py ..............s..x.......xx.................. [
> 26%]
> ......x.................F....................... [
> 55%]
> testing/test_dsession.py ........x...x [
> 63%]
> testing/test_looponfail.py ...........x.ss [
> 72%]
> testing/test_newhooks.py ... [
> 74%]
> testing/test_plugin.py ...s.......... [
> 82%]
> testing/test_remote.py x....x...... [
> 89%]
> testing/test_workermanage.py ........x.......s
> [100%]
>
> =================================== FAILURES
> ===================================
> _________________ test_internal_errors_propagate_to_controller
> _________________
>
> pytester = <Pytester
> PosixPath('/tmp/pytest-of-user42/pytest-0/test_internal_errors_propagate_to_controller0')>
>
> def test_internal_errors_propagate_to_controller(pytester:
> pytest.Pytester) -> None:
> pytester.makeconftest(
> """
> def pytest_collection_modifyitems():
> raise RuntimeError("Some runtime error")
> """
> )
> pytester.makepyfile("def test(): pass")
> result = pytester.runpytest("-n1")
> > result.stdout.fnmatch_lines(["*RuntimeError: Some runtime error*"])
> E Failed: nomatch: '*RuntimeError: Some runtime error*'
> E and: '============================= test session starts
> =============================='
> E and: 'platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0,
> pluggy-0.13.0'
> E and: 'rootdir:
> /tmp/pytest-of-user42/pytest-0/test_internal_errors_propagate_to_controller0'
> E and: 'plugins: xdist-2.5.0, forked-1.4.0'
> E and: 'gw0 I'
> E and: 'gw0 [1]'
> E and: ''
> E and: 'INTERNALERROR> Traceback (most recent call last):'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 269, in wrap_session'
> E and: 'INTERNALERROR> session.exitstatus = doit(config,
> session) or 0'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 323, in _main'
> E and: 'INTERNALERROR>
> config.hook.pytest_runtestloop(session=session)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__'
> E and: 'INTERNALERROR> return self._hookexec(self,
> self.get_hookimpls(), kwargs)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec'
> E and: 'INTERNALERROR> return self._inner_hookexec(hook,
> methods, kwargs)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 335, in
> traced_hookexec'
> E and: 'INTERNALERROR> return outcome.get_result()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
> E and: 'INTERNALERROR> raise ex[1].with_traceback(ex[2])'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 52, in from_call'
> E and: 'INTERNALERROR> result = func()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 333, in <lambda>'
> E and: 'INTERNALERROR> outcome = _Result.from_call(lambda:
> oldcall(hook, hook_impls, kwargs))'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>'
> E and: 'INTERNALERROR> self._inner_hookexec = lambda hook,
> methods, kwargs: hook.multicall('
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall'
> E and: 'INTERNALERROR> return outcome.get_result()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
> E and: 'INTERNALERROR> raise ex[1].with_traceback(ex[2])'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall'
> E and: 'INTERNALERROR> res = hook_impl.function(*args)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 117, in pytest_runtestloop'
> E and: 'INTERNALERROR> self.loop_once()'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 140, in loop_once'
> E and: 'INTERNALERROR> call(**kwargs)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 262, in worker_collectionfinish'
> E and: 'INTERNALERROR> self.sched.schedule()'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
> line 257, in schedule'
> E and: 'INTERNALERROR> self._send_tests(next(nodes), 1)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
> line 269, in _send_tests'
> E and: 'INTERNALERROR> node.send_runtest_some(tests_per_node)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
> line 284, in send_runtest_some'
> E and: 'INTERNALERROR> self.sendcommand("runtests",
> indices=indices)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
> line 300, in sendcommand'
> E and: 'INTERNALERROR> self.channel.send((name, kwargs))'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/execnet/gateway_base.py", line 728, in send'
> E and: 'INTERNALERROR> raise IOError("cannot send to
> {!r}".format(self))'
> E and: 'INTERNALERROR> OSError: cannot send to <Channel id=1
> closed>'
> E and: ''
> E and: '============================ no tests ran in 0.25s
> ============================='
> E remains unmatched: '*RuntimeError: Some runtime error*'
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/testing/acceptance_test.py:1156:
> Failed
> ----------------------------- Captured stdout call
> -----------------------------
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir:
> /tmp/pytest-of-user42/pytest-0/test_internal_errors_propagate_to_controller0
> plugins: xdist-2.5.0, forked-1.4.0
> gw0 I
> gw0 [1]
>
> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line
> 269, in wrap_session
> INTERNALERROR> session.exitstatus = doit(config, session) or 0
> INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line
> 323, in _main
> INTERNALERROR> config.hook.pytest_runtestloop(session=session)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line
> 286, in __call__
> INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 92, in _hookexec
> INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 335, in traced_hookexec
> INTERNALERROR> return outcome.get_result()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 80, in get_result
> INTERNALERROR> raise ex[1].with_traceback(ex[2])
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 52, in from_call
> INTERNALERROR> result = func()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 333, in <lambda>
> INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook,
> hook_impls, kwargs))
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 83, in <lambda>
> INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs:
> hook.multicall(
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 208, in _multicall
> INTERNALERROR> return outcome.get_result()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 80, in get_result
> INTERNALERROR> raise ex[1].with_traceback(ex[2])
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 187, in _multicall
> INTERNALERROR> res = hook_impl.function(*args)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 117, in pytest_runtestloop
> INTERNALERROR> self.loop_once()
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 140, in loop_once
> INTERNALERROR> call(**kwargs)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py",
> line 262, in worker_collectionfinish
> INTERNALERROR> self.sched.schedule()
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
> line 257, in schedule
> INTERNALERROR> self._send_tests(next(nodes), 1)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler/load.py",
> line 269, in _send_tests
> INTERNALERROR> node.send_runtest_some(tests_per_node)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
> line 284, in send_runtest_some
> INTERNALERROR> self.sendcommand("runtests", indices=indices)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py",
> line 300, in sendcommand
> INTERNALERROR> self.channel.send((name, kwargs))
> INTERNALERROR> File
> "/usr/lib/python3/dist-packages/execnet/gateway_base.py", line 728, in send
> INTERNALERROR> raise IOError("cannot send to {!r}".format(self))
> INTERNALERROR> OSError: cannot send to <Channel id=1 closed>
>
> ============================ no tests ran in 0.25s
> =============================
> =========================== short test summary info
> ============================
> SKIPPED [3]
> ../../../../../../usr/lib/python3/dist-packages/_pytest/pytester.py:1458:
> could not import 'pexpect': No module named 'pexpect'
> SKIPPED [1] testing/test_plugin.py:92: could not import 'psutil': No module
> named 'psutil'
> SKIPPED [1]
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1473:
> no 'gspecs' option found
> XFAIL testing/acceptance_test.py::TestDistEach::test_simple_diffoutput
> reason: [NOTRUN] other python versions might not have pytest installed
> XFAIL testing/acceptance_test.py::test_terminate_on_hangingnode
> XFAIL testing/acceptance_test.py::test_session_hooks
> reason: [NOTRUN] works if run outside test suite
> XFAIL testing/acceptance_test.py::TestNodeFailure::test_each_multiple
> #20: xdist race condition on node restart
> XFAIL testing/test_dsession.py::TestDistReporter::test_rsync_printing
> XFAIL testing/test_dsession.py::test_pytest_issue419
> duplicate test ids not supported yet
> XFAIL
> testing/test_looponfail.py::TestLooponFailing::test_looponfail_removed_test
> broken by pytest 3.1+
> XFAIL testing/test_remote.py::test_remoteinitconfig
> #59
> XFAIL
> testing/test_remote.py::TestWorkerInteractor::test_happy_run_events_converted
> reason: implement a simple test for event production
> XFAIL testing/test_workermanage.py::TestNodeManager::test_rsync_roots_no_roots
> reason: [NOTRUN]
> FAILED
> testing/acceptance_test.py::test_internal_errors_propagate_to_controller
> ============ 1 failed, 151 passed, 5 skipped, 10 xfailed in 47.76s
> =============
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149607 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149610 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149613 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149619 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149622 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149616 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149628 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149625 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149631 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149634 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149637 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149643 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149640 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149646 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149649 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149694 is
> still running
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null'
> mode='r' encoding='UTF-8'>
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO
> name=20 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO
> name=22 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149698 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149702 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149706 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149710 is
> still running
> /usr/lib/python3.10/subprocess.py:1067: ResourceWarning: subprocess 149787 is
> still running
> E: pybuild pybuild:367: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pytest-xdist/build; python3.10 -m
> pytest
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build; python3.9 -m
> pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> plugins: xdist-2.5.0, forked-1.4.0
> collected 167 items
>
> testing/acceptance_test.py ..............s..x.......xx.................. [
> 26%]
> ......x.................F....................... [
> 55%]
> testing/test_dsession.py ........x...x [
> 63%]
> testing/test_looponfail.py ...........x.ss [
> 72%]
> testing/test_newhooks.py ... [
> 74%]
> testing/test_plugin.py ...s.......... [
> 82%]
> testing/test_remote.py x....x...... [
> 89%]
> testing/test_workermanage.py ........x.......s
> [100%]
>
> =================================== FAILURES
> ===================================
> _________________ test_internal_errors_propagate_to_controller
> _________________
>
> pytester = <Pytester
> PosixPath('/tmp/pytest-of-user42/pytest-1/test_internal_errors_propagate_to_controller0')>
>
> def test_internal_errors_propagate_to_controller(pytester:
> pytest.Pytester) -> None:
> pytester.makeconftest(
> """
> def pytest_collection_modifyitems():
> raise RuntimeError("Some runtime error")
> """
> )
> pytester.makepyfile("def test(): pass")
> result = pytester.runpytest("-n1")
> > result.stdout.fnmatch_lines(["*RuntimeError: Some runtime error*"])
> E Failed: nomatch: '*RuntimeError: Some runtime error*'
> E and: '============================= test session starts
> =============================='
> E and: 'platform linux -- Python 3.9.10, pytest-6.2.5, py-1.10.0,
> pluggy-0.13.0'
> E and: 'rootdir:
> /tmp/pytest-of-user42/pytest-1/test_internal_errors_propagate_to_controller0'
> E and: 'plugins: xdist-2.5.0, forked-1.4.0'
> E and: 'gw0 I'
> E and: 'gw0 [1]'
> E and: ''
> E and: 'INTERNALERROR> Traceback (most recent call last):'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 269, in wrap_session'
> E and: 'INTERNALERROR> session.exitstatus = doit(config,
> session) or 0'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/_pytest/main.py", line 323, in _main'
> E and: 'INTERNALERROR>
> config.hook.pytest_runtestloop(session=session)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in __call__'
> E and: 'INTERNALERROR> return self._hookexec(self,
> self.get_hookimpls(), kwargs)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in _hookexec'
> E and: 'INTERNALERROR> return self._inner_hookexec(hook,
> methods, kwargs)'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 335, in
> traced_hookexec'
> E and: 'INTERNALERROR> return outcome.get_result()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
> E and: 'INTERNALERROR> raise ex[1].with_traceback(ex[2])'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 52, in from_call'
> E and: 'INTERNALERROR> result = func()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 333, in <lambda>'
> E and: 'INTERNALERROR> outcome = _Result.from_call(lambda:
> oldcall(hook, hook_impls, kwargs))'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in <lambda>'
> E and: 'INTERNALERROR> self._inner_hookexec = lambda hook,
> methods, kwargs: hook.multicall('
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in _multicall'
> E and: 'INTERNALERROR> return outcome.get_result()'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in get_result'
> E and: 'INTERNALERROR> raise ex[1].with_traceback(ex[2])'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in _multicall'
> E and: 'INTERNALERROR> res = hook_impl.function(*args)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 117, in pytest_runtestloop'
> E and: 'INTERNALERROR> self.loop_once()'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 140, in loop_once'
> E and: 'INTERNALERROR> call(**kwargs)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 262, in worker_collectionfinish'
> E and: 'INTERNALERROR> self.sched.schedule()'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler/load.py",
> line 257, in schedule'
> E and: 'INTERNALERROR> self._send_tests(next(nodes), 1)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler/load.py",
> line 269, in _send_tests'
> E and: 'INTERNALERROR> node.send_runtest_some(tests_per_node)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/workermanage.py",
> line 284, in send_runtest_some'
> E and: 'INTERNALERROR> self.sendcommand("runtests",
> indices=indices)'
> E and: 'INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/workermanage.py",
> line 300, in sendcommand'
> E and: 'INTERNALERROR> self.channel.send((name, kwargs))'
> E and: 'INTERNALERROR> File
> "/usr/lib/python3/dist-packages/execnet/gateway_base.py", line 728, in send'
> E and: 'INTERNALERROR> raise IOError("cannot send to
> {!r}".format(self))'
> E and: 'INTERNALERROR> OSError: cannot send to <Channel id=1
> closed>'
> E and: ''
> E and: '============================ no tests ran in 0.26s
> ============================='
> E remains unmatched: '*RuntimeError: Some runtime error*'
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/testing/acceptance_test.py:1156:
> Failed
> ----------------------------- Captured stdout call
> -----------------------------
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir:
> /tmp/pytest-of-user42/pytest-1/test_internal_errors_propagate_to_controller0
> plugins: xdist-2.5.0, forked-1.4.0
> gw0 I
> gw0 [1]
>
> INTERNALERROR> Traceback (most recent call last):
> INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line
> 269, in wrap_session
> INTERNALERROR> session.exitstatus = doit(config, session) or 0
> INTERNALERROR> File "/usr/lib/python3/dist-packages/_pytest/main.py", line
> 323, in _main
> INTERNALERROR> config.hook.pytest_runtestloop(session=session)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line
> 286, in __call__
> INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 92, in _hookexec
> INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 335, in traced_hookexec
> INTERNALERROR> return outcome.get_result()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 80, in get_result
> INTERNALERROR> raise ex[1].with_traceback(ex[2])
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 52, in from_call
> INTERNALERROR> result = func()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 333, in <lambda>
> INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook,
> hook_impls, kwargs))
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/manager.py",
> line 83, in <lambda>
> INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs:
> hook.multicall(
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 208, in _multicall
> INTERNALERROR> return outcome.get_result()
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 80, in get_result
> INTERNALERROR> raise ex[1].with_traceback(ex[2])
> INTERNALERROR> File "/usr/lib/python3/dist-packages/pluggy/callers.py",
> line 187, in _multicall
> INTERNALERROR> res = hook_impl.function(*args)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 117, in pytest_runtestloop
> INTERNALERROR> self.loop_once()
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 140, in loop_once
> INTERNALERROR> call(**kwargs)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/dsession.py",
> line 262, in worker_collectionfinish
> INTERNALERROR> self.sched.schedule()
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler/load.py",
> line 257, in schedule
> INTERNALERROR> self._send_tests(next(nodes), 1)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler/load.py",
> line 269, in _send_tests
> INTERNALERROR> node.send_runtest_some(tests_per_node)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/workermanage.py",
> line 284, in send_runtest_some
> INTERNALERROR> self.sendcommand("runtests", indices=indices)
> INTERNALERROR> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/workermanage.py",
> line 300, in sendcommand
> INTERNALERROR> self.channel.send((name, kwargs))
> INTERNALERROR> File
> "/usr/lib/python3/dist-packages/execnet/gateway_base.py", line 728, in send
> INTERNALERROR> raise IOError("cannot send to {!r}".format(self))
> INTERNALERROR> OSError: cannot send to <Channel id=1 closed>
>
> ============================ no tests ran in 0.26s
> =============================
> =========================== short test summary info
> ============================
> SKIPPED [3]
> ../../../../../../usr/lib/python3/dist-packages/_pytest/pytester.py:1458:
> could not import 'pexpect': No module named 'pexpect'
> SKIPPED [1] testing/test_plugin.py:92: could not import 'psutil': No module
> named 'psutil'
> SKIPPED [1]
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1473:
> no 'gspecs' option found
> XFAIL testing/acceptance_test.py::TestDistEach::test_simple_diffoutput
> reason: [NOTRUN] other python versions might not have pytest installed
> XFAIL testing/acceptance_test.py::test_terminate_on_hangingnode
> XFAIL testing/acceptance_test.py::test_session_hooks
> reason: [NOTRUN] works if run outside test suite
> XFAIL testing/acceptance_test.py::TestNodeFailure::test_each_multiple
> #20: xdist race condition on node restart
> XFAIL testing/test_dsession.py::TestDistReporter::test_rsync_printing
> XFAIL testing/test_dsession.py::test_pytest_issue419
> duplicate test ids not supported yet
> XFAIL
> testing/test_looponfail.py::TestLooponFailing::test_looponfail_removed_test
> broken by pytest 3.1+
> XFAIL testing/test_remote.py::test_remoteinitconfig
> #59
> XFAIL
> testing/test_remote.py::TestWorkerInteractor::test_happy_run_events_converted
> reason: implement a simple test for event production
> XFAIL testing/test_workermanage.py::TestNodeManager::test_rsync_roots_no_roots
> reason: [NOTRUN]
> FAILED
> testing/acceptance_test.py::test_internal_errors_propagate_to_controller
> ============ 1 failed, 151 passed, 5 skipped, 10 xfailed in 49.02s
> =============
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150712 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150715 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150718 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150721 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150724 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150727 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150730 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150733 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150736 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150739 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150742 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150745 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150748 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150751 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150754 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150799 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150803 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150807 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150811 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150815 is
> still running
> /usr/lib/python3.9/subprocess.py:1052: ResourceWarning: subprocess 150891 is
> still running
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null'
> mode='r' encoding='UTF-8'>
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO
> name=20 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
> sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO
> name=22 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
> E: pybuild pybuild:367: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pytest-xdist/build; python3.9 -m
> pytest
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10
> 3.9" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/02/18/pytest-xdist_2.5.0-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---