Closed matclayton closed 1 year ago
Hi @matclayton.
Huh. That's weird. It looks like it's trying to submit a payload that was never started - which is triggered by the pytest_runtestloop
callback. Are you able to provide any more information about your test suite/setup?
Happy to try and provide whatever details you need. We're using pytest with xdist and django, which I suspect might be the two suspect plugins causing this. Beyond that nothing is massively weird in the setup. I can try without xdist later on today, but trying without django won't result in any tests to run. I think all the key information is in this Issue, but I'll include the base printout as well below.
pyproject.toml relevent parts
[tool.pytest.ini_options]
addopts = [
"-n=auto",
"--dist=loadscope",
"--strict-markers",
"--ds=mixcloud.settings.test",
"--pdbcls=IPython.terminal.debugger:Pdb",
"--durations=10",
"--durations-min=0.5",
"--asyncio-mode=auto",
]
xfail_strict = true```
I've done some testing and If I remove pytest-xdist it works as expected, so the bug is likely in the interaction between the xdist package, which is a fairly common plugin for pytest and the collector I suspect. I also suspect anyone using analytics will care about performance and therefore running the tests in parallel is key to that as well, so I suspect the userbase will have a huge overlap :(
Thanks for that @matclayton - that gives me somewhere to start my investigation.
We're encountering the same issue as well in python 3.8.10.
Relevant section of requirements.txt file
pytest==7.1.3
pytest-forked==1.3.0
pytest-html==3.1.1
pytest-metadata==1.11.0
pytest-timeout==2.1.0
pytest-xdist==2.5.0
Hey, sorry to nudge on this. are there any updates? given this is a paid service and the only open issue, its concerning that this might not be so well supported, despite it just launching.
Hi @matclayton - I've just opened #10 - any chance you can give that a go and double check that it works as expected?
Thanks!
Amazing. Will give it a shot tomorrow asap
Hey we're testing the plugin (0.1.1) with pytest 7.1.2 in the docker-compose#v3.9.0 on Python 3.10.3 and seeing the following crash
relevant parts of requirements.txt
I'm not sure what other info would be helpful to debug this.