Skip to content
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

Does not work with pytest-xdist #94

Open
iurisilvio opened this issue Feb 4, 2023 · 0 comments · May be fixed by #95
Open

Does not work with pytest-xdist #94

iurisilvio opened this issue Feb 4, 2023 · 0 comments · May be fixed by #95

Comments

@iurisilvio
Copy link

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.

config.cache.set(HISTKEY, config._flake8mtimes)

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 a pull request may close this issue.

1 participant