Closed rhshadrach closed 3 years ago
THanks @rhshadrach for the feedback ! Surprisingly, I'm receiving this notification just now :( I'll have to investigate, maybe something changed in pytest-xdist ?
I confirm that I can now reproduce the issue
The origin is simple: my old pull request was accepted https://github.com/pytest-dev/pytest-xdist/pull/505 but I do not use it :)
Actually the cause was not this. Rather, funcargnames
seems to have disappeared from pytest item
api - which was causing one of my hook to fail silently
Fixed in 1.10.3, let me know @rhshadrach !
Thanks @smarie! Confirmed it's now working in 1.10.3
We just upgraded packages and we're finding that
pytest_harvest_xdist_worker_dump
is not getting called.Previous versions:
New versions:
Instead, to get pytest-harvest to work, we have to call our implementation of
pytest_harvest_xdist_worker_dump
frompytest_sessionfinish
, which is the same implementation as here:https://smarie.github.io/python-pytest-harvest/#pytest-x-dist
except that we do not dump
session_items
(causes a pickling error for us, and we don't need it). We use the following code inpytest_sessionfinish
to do so.Is this expected to be necessary? Previously, I thought pytest-harvest was automatically detecting and calling our implementation of
pytest_harvest_xdist_worker_dump
.