tholo / pytest-flake8

pytest plugin to run flake8
Other
117 stars 47 forks source link

Get cache from disk to avoid cache overwriting. #95

Open iurisilvio opened 1 year ago

iurisilvio commented 1 year ago

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 commented 3 months ago

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