Skip to content

Conversation

@iurisilvio
Copy link

@iurisilvio iurisilvio commented Feb 4, 2023

Fix #94.

The cache is always written to the same file, for each worker and for the controller.

Controller don't execute tests and never has cache. Each worker has part of the cache, so they must get current cache to update it instead of just write to it.

It's still possible to some overwrite happen because workers don´t have a global lock. The pytest-xdist suggests to use filelock to solve this problem, but it is an external dependency.

@jaraco
Copy link

jaraco commented Jul 19, 2024

Please consider contributing this fix or others to the revived project at coherent-oss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not work with pytest-xdist

2 participants