Running with xdist, each worker and the controller execute the same code.
In the case of the controller, cache._flake8mtimes is never filled. Each worker generate a cache for part of the collected files.
At the end of execution, each worker write their data to the same cache (overwriting previous writes) and, after that, the controller write to cache an empty cache.
Running with xdist, each worker and the controller execute the same code.
In the case of the controller,
cache._flake8mtimes
is never filled. Each worker generate a cache for part of the collected files.At the end of execution, each worker write their data to the same cache (overwriting previous writes) and, after that, the controller write to cache an empty cache.
https://github.com/tholo/pytest-flake8/blob/d730278626fe02a3545e9fc79999fa5ec9c30a29/pytest_flake8.py#L84