-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
With the release of pytest-ruff 0.4, when running a sizeable test suite under pytest-xdist on Windows, many failures are emitted. This issue was reported in pypa/setuptools#4467.
It seems that there's a race condition when ruff is invoked in parallel on the same project on Windows. The cache files collide and fail to be saved.
This issue was masked in 0.3.2 because the exit code from ruff was 2 and ignored.
I wonder if pytest-ruff should detect these "errors saving cache" and continue to suppress them. Or maybe ruff should have a separate exit code for "access denied when saving cache" so that "pytest-ruff" can suppress that code.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels