-
Notifications
You must be signed in to change notification settings - Fork 227
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
during cleanup when leftover is in directory, try again #1058
Conversation
if exclude: # but it is excluded | ||
pass | ||
else: # likely during Ctrl+C something additional data | ||
try_again = True |
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.
I suspect this could go into an infinite loop. Don't you want to give it some reasonable timeframe?
Resolves: RHBZ#1957384 When you Ctrl+C a child can still write something in directory, so try again. Previously this lead to traceback as we handled only this situation when the data were excluded.
Updated. |
Honestly, spending tens of minutes on the review, I fail to concentrate enough (tried several times) :-) I can't get myself comfortable with the rmtree() method. So I'm neutral on merging or not merging. The CTRL+C is not properly handled; if KeyboardInterrupt is raised, we don't do any special tasks - so I fail to confirm that it actually makes any sense to wait a bit here. It would be an interesting task to get rid of the custom rmtree() method. It shouldn't be needed at all (except for maybe the chattr hack). The thing is that these hacks/retries are here to solve some other issue with Mock code that should be fixed. |
By coincidence, I faced an in-ubi8 situation after failed cpio.src.rpm testsuite failure:
|
The last necessary bit was done in #1139 |
When you Ctrl+C a child can still write something in directory, so try again. Previously this lead to traceback as we handled only this situation when the data were excluded.
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=2186613