Closed
Description
This seems to fail consistently since September 8th.
The error is quite cryptic:
+ python -m pytest --showlocals --durations=20 --junitxml=test-data.xml --cov-config=/home/vsts/work/1/s/.coveragerc --cov sklearn --cov-report= -Werror::DeprecationWarning -Werror::FutureWarning -Wignore:tostring:DeprecationWarning -n2 --pyargs sklearn
============================= test session starts ==============================
platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/vsts/work/tmp_folder, configfile: setup.cfg
plugins: cov-2.12.1, forked-1.3.0, xdist-2.4.0
gw0 I / gw1 I
gw0 [22445] / gw1 [22445]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/_pytest/main.py", line 323, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/pluggy/_callers.py", line 55, in _multicall
INTERNALERROR> gen.send(outcome)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/dsession.py", line 112, in pytest_runtestloop
INTERNALERROR> self.loop_once()
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/dsession.py", line 135, in loop_once
INTERNALERROR> call(**kwargs)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/dsession.py", line 256, in worker_collectionfinish
INTERNALERROR> self.sched.schedule()
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/scheduler/load.py", line 257, in schedule
INTERNALERROR> self._send_tests(next(nodes), 1)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/scheduler/load.py", line 269, in _send_tests
INTERNALERROR> node.send_runtest_some(tests_per_node)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/workermanage.py", line 284, in send_runtest_some
INTERNALERROR> self.sendcommand("runtests", indices=indices)
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-packages/xdist/workermanage.py", line 300, in sendcommand
INTERNALERROR> self.channel.send((name, kwargs))
INTERNALERROR> File "/usr/share/miniconda/envs/testvenv/lib/python3.9/site-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>
I checked quickly and there does not seem to be any differences (beside the pandas dev version) between the first failure and the last sucessful run ... maybe disabling pytest-xdist would be at least a way to have a meaningful error ?