You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some details.
pytest session with xdist connection is started on:
Windows Server 2012r2 with Python 3.6.7 (64 bit)
pytest-3.6.0
xdist-1.25.0
execnet-1.7.0 (is installed with xdist)
command: -d --tx 'ssh=user@host//chdir=some-folder' --max-slave-restart=5 --rsyncdir .
Targeted host(the only one) is windows 10 os.
ssh server details: OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
It can be some specific issue with OpenSSH for windows. I didn't try it on any linux yet. But it was working perfectly fine with execnet <1,7.0 which breaks with
File ".\lib\site-packages\_pytest\main.py", line 105, in wrap_session
config.hook.pytest_sessionstart(session=session)
File ".\lib\site-packages\pluggy\__init__.py", line 617, in __call__
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File ".\lib\site-packages\pluggy\__init__.py", line 222, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File ".\lib\site-packages\pluggy\__init__.py", line 216, in <lambda>
firstresult=hook.spec_opts.get('firstresult'),
File ".\pluggy\callers.py", line 201, in _multicall
return outcome.get_result()
File ".\lib\site-packages\pluggy\callers.py", line 76, in get_result
raise ex[1].with_traceback(ex[2])
File ".\site-packages\pluggy\callers.py", line 180, in _multicall
res = hook_impl.function(*args)
File ".\lib\site-packages\xdist\dsession.py", line 81, in pytest_sessionstart
nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
File ".\lib\site-packages\xdist\workermanage.py", line 68, in setup_nodes
nodes.append(self.setup_node(spec, putevent))
File ".\lib\site-packages\xdist\workermanage.py", line 74, in setup_node
self.rsync_roots(gw)
File ".\lib\site-packages\xdist\workermanage.py", line 61, in rsync_roots
self.rsync(gateway, root, **self.rsyncoptions)
File ".\lib\site-packages\xdist\workermanage.py", line 148, in rsync
rsync.send()
File ".\site-packages\execnet\rsync.py", line 114, in send
self._send_directory_structure(self._sourcedir)
File ".\lib\site-packages\execnet\rsync.py", line 202, in _send_directory_structure
self._send_directory(path)
File ".\lib\site-packages\execnet\rsync.py", line 178, in _send_directory
self._send_directory_structure(p)
File ".\lib\site-packages\execnet\rsync.py", line 200, in _send_directory_structure
self._broadcast((st.st_mode, st.st_mtime, st.st_size))
File ".\lib\site-packages\execnet\rsync.py", line 161, in _broadcast
channel.send(msg)
.\lib\site-packages\execnet\gateway_base.py", line 709, in send
[raise IOError("cannot send to {!r}".format(self))
OSError: cannot send to <Channel id=5 closed>```
I'm getting a similar error from my Jenkin's server environment. Execnet on the server's workspace was version 1.7.1. Reverting to execnet 1.6.1 worked.
Activity
nicoddemus commentedon Aug 16, 2019
Hi @Kreisfahrer,
Strange, the changes have been small and should not cause this problem.
Could you please include a minimal working example and the resulting traceback?
Kreisfahrer commentedon Aug 16, 2019
yes, let me gather some information
Kreisfahrer commentedon Aug 19, 2019
Some details.
pytest session with xdist connection is started on:
Windows Server 2012r2 with Python 3.6.7 (64 bit)
pytest-3.6.0
xdist-1.25.0
execnet-1.7.0 (is installed with xdist)
command:
-d --tx 'ssh=user@host//chdir=some-folder' --max-slave-restart=5 --rsyncdir .Targeted host(the only one) is windows 10 os.
ssh server details:
OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4It can be some specific issue with OpenSSH for windows. I didn't try it on any linux yet. But it was working perfectly fine with execnet <1,7.0 which breaks with
CorbinBogert commentedon Sep 4, 2019
I'm getting a similar error from my Jenkin's server environment. Execnet on the server's workspace was version 1.7.1. Reverting to execnet 1.6.1 worked.
Pin execnet to 1.6 as per pytest-dev/pytest-xdist#460
Remove xdist from minimal-conda test (#894)