pytest-dev / pytest-dev/pytest-xdist
Hello, after xdist is executed remotely, why doesn't it return a report?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
(seleniumbase) D:\workspace>pytest -d --tx socket=10.13.129.73:8888 --rsyncdir seleniumbasedemo/ seleniumbasedemo/testcase/baidu --html=report-re.html
============================= test session starts =============================
platform win32 -- Python 3.6.5, pytest-3.9.2, py-1.8.0, pluggy-0.13.0
rootdir: D:\workspace\seleniumbasedemo, inifile: pytest.ini
plugins: allure-adaptor-1.7.10, cov-2.8.1, forked-1.1.1, html-1.22.0, metadata-1.8.0, ordering-0.6, rerunfailures-7.0, timeout-1.3.3, xdist-1.23.2, seleniumbase-1.32.12
gw0 [3]
scheduling tests via LoadScheduling
... [100%]
----------- generated html file: file://D:\workspace\report-re.html -----------
========================== 3 passed in 32.17 seconds ==========================
Hello, after xdist is executed remotely, why doesn't it return a report?
Another problem is that the socket stops when I finish executing, as follows:
(seleniumbase) λ python socketserver.py
socket_readline_exec_server-1.2 Entering Accept loop ('0.0.0.0', 8888)
socket_readline_exec_server-1.2 got new connection from 10.13.129.227 63928
reading line
socket_readline_exec_server-1.2 compiled source, executing
DevTools listening on ws://127.0.0.1:49817/devtools/browser/a61aec3a-a706-4949-be1a-f51f6f5ac9e9
DevTools listening on ws://127.0.0.1:49880/devtools/browser/199c9cd8-71ac-4937-8df0-03a1f11abe26
DevTools listening on ws://127.0.0.1:49925/devtools/browser/b5da5a8a-2cc2-4330-9207-880d82733ef7
socket_readline_exec_server-1.2 finished executing code
leaving socketserver execloop
Traceback (most recent call last):
File "socketserver.py", line 99, in <module>
startserver(serversock, loop=False)
File "socketserver.py", line 90, in startserver
serversock.shutdown(2)
OSError: [WinError 10057] 由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地
址,发送或接收数据的请求没有被接受。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the remote run using the shown pytest -d command and the socketserver.py entry point, keeping the controller and worker output. Check where the HTML report is written and how the socket server shuts down; done should be defined as a retrievable remote report and a clean server exit without the shown WinError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100