Sync visited and shared images across pytest-xdist nodes#196
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #196 +/- ##
===========================================
- Coverage 98.18% 27.73% -70.45%
===========================================
Files 2 2
Lines 220 256 +36
Branches 32 39 +7
===========================================
- Hits 216 71 -145
- Misses 2 181 +179
- Partials 2 4 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @user27182 for 1762794. Way better approach. |
|
This is ready for review. I really wanted to use |
Co-authored-by: user27182 <89109579+user27182@users.noreply.github.com>
|
Idea to add in One note: the default summary seems to be overwritten when reporting disallowed unused: It would be nice to see the test summary and we should add this back in either this or a followup PR. |
A lot of these tests seem to not use basic |
That might be it. |
@akaszynski try reverting #189, might temporarily fix this until the issue can be resolved, see #199 |
This reverts commit c8c3a10.
Looks like code coverage was negatively impacted by this PR |
Can confirm that removing |
Resolve #195 by inelegantly using a shared file with a simple locking mechanism (
fcntl) to sync image names across multiplepytest-xdistnodes. I would have preferred using shared memory, but I can't seem to figure out how to hook intopytest-xdist's hooks correctly. To avoid disk writing, the file is only written once per worker.Also, this PR checks if downstream tests can be run in parallel with
pytest-xdist. Side effect in that test time is cut in half.