Bug#1006039: pytest-xdist: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" returned exit code 13
Control: forwarded -1 https://github.com/pytest-dev/pytest-xdist/issues/735 On Tue, 22 Feb 2022, Lucas Nussbaum wrote: I'm not able to reproduce this, at least locally in sbuild. Possibly some transient error in unstable? Can you re-try? Hi Scott, I can reproduce it, but this looks like a random failure. Building in a loop, I get: log.1:Status: attempted log.2:Status: successful log.3:Status: successful log.4:Status: successful log.5:Status: attempted Ah, random failures. The best kind. ;) Since the build succeeds more than 50% of the time, can we lower the severity? Scott
Bug#1006039: pytest-xdist: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" returned exit code 13
On 21/02/22 at 19:52 -0500, Scott Talbert wrote: > I'm not able to reproduce this, at least locally in sbuild. Possibly some > transient error in unstable? Can you re-try? Hi Scott, I can reproduce it, but this looks like a random failure. Building in a loop, I get: log.1:Status: attempted log.2:Status: successful log.3:Status: successful log.4:Status: successful log.5:Status: attempted Lucas
Bug#1006039: pytest-xdist: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" returned exit code 13
On Sat, 19 Feb 2022, Lucas Nussbaum wrote: === FAILURES === _ test_internal_errors_propagate_to_controller _ pytester = 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 ' 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 ' 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 "/<>/.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 "/<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/dsession.py", line 140, in loop_once' E and: 'INTERNALERROR> call(**kwargs)' E and: 'INTERNALERROR> File "/<>/.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 "/<>/.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 "/<>/.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 "/<>/.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 "/<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/workermanage.py", line 300, in sendcommand' E and: 'INTERNALERROR>
Bug#1006039: pytest-xdist: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" returned exit code 13
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 /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/__init__.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/workermanage.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/dsession.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/report.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/newhooks.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/looponfail.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/remote.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/_version.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > copying src/xdist/plugin.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist > creating > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/load.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/__init__.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadgroup.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/each.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadfile.py -> > /<>/.pybuild/cpython3_3.10_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadscope.py -> > /<>/.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 /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/__init__.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/workermanage.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/dsession.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/report.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/newhooks.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/looponfail.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/remote.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/_version.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > copying src/xdist/plugin.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist > creating > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/load.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/__init__.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadgroup.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/each.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadfile.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler > copying src/xdist/scheduler/loadscope.py -> > /<>/.pybuild/cpython3_3.9_pytest-xdist/build/xdist/scheduler >dh_auto_test -O--buildsystem=pybuild > I: pybuild base:237: cd > /<>/.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: /<>, 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 xx.. [ > 89%] >