-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Issue 1120 Cleaning up tmpdir's #6944
Conversation
keep=keep, | ||
consider_lock_dead_if_created_before=consider_lock_dead_if_created_before, | ||
# Register a cleanup for program exit | ||
atexit.register( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might still fail because some pytest process will finish before others so they might still step in each others toes, I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean one of the race condition cases mentioned in maybe_delete_a_numbered_dir()? I thought try_cleanup() invoked from cleanup_numbered_dir() is preventing from such case or at least we have some guarantees - based on comments from maybe_delete_a_numbered_dir().
@RonnyPfannschmidt gentle ping. |
I guess this is very hard to add a test for right? Rebased. |
Hi @piotrhm! Thanks again and sorry for the long delay! |
Hi,
I combined work done by @bitmuster and @caitelatte which close #1120. Solution is a proposition which addresses @RonnyPfannschmidt comments available here.