-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest_harvest_xdist_worker_dump not getting called #48
Comments
THanks @rhshadrach for the feedback ! Surprisingly, I'm receiving this notification just now :( |
I confirm that I can now reproduce the issue |
The origin is simple: my old pull request was accepted pytest-dev/pytest-xdist#505 |
Actually the cause was not this. Rather, c499ff9#diff-93998b7e30b1deb577455fb069b07b7901f08a23277e8b84fb7247dd71823d72R587 |
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
.The text was updated successfully, but these errors were encountered: