-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
OSError: [Errno 2] No such file or directory .lock #4199
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
Comments
the filename |
Oops, sorry. I had the full traceback and failed to paste it:
|
thanks, now that makes sense - i believe this is a race condition at folder creation vs cleanup in others - i believe i can set up a way to resolve it cleanly |
@reaperhulk I see you are using Python 2.7, do you have the same problem if you use Python 3 (assuming you also execute your code on that version)? |
We do execute our test suite against 2.7 and 3.4+ (the cryptography test matrix is unfortunately enormous). However, this bug was resolved in pytest 3.9.3 I believe. We blacklisted 3.9.0, 3.9.1, and 3.9.2 but we haven't had any issue with any more recent release. I apologize for not closing this 😄 |
No worries, thanks! |
This is likely a new pathlib bug and potentially related to #4181. I suspect this may be occurring because the Jenkins builders where this is happening are running up to 5 concurrent pytest instances. Is there any randomness used to prevent tmpname conflicts or could one process be deleting another's lock?
Example of error:
The text was updated successfully, but these errors were encountered: