Closed WolfgangFahl closed 1 year ago
Given that...
with tempfile.TemporaryDirectory()...
context is triggering a cleanup from Python's internals. ...this is most likely a problem with your project, platform, or CI setup. Perhaps you are changing permissions of a file at some point so that it cannot be deleted? Or perhaps you have some subprocess that doesn't get killed that keeps adding files even while things are getting cleaned up? If you printed a recursive directory listing of the temporary directory after hitting this error, that may shed some light on the problem.
I'm going to go ahead and close this for now, as I don't think it's Green's problem, but feel to reopen it if you discover any evidence to the contrary so we can look into it.
Or perhaps you have some subprocess that doesn't get killed that keeps adding files even while things are getting cleaned up?
Yes due to a problem in another upstream library we have processes still running and we want to ignore this for the time being. Thats's why we'd love to catch this instead of having it flagged as an error. There is no "reopen" button available.
There is no "reopen" button available.
My apologies! I thought that the person who created an issue would have access to the Reopen button! I guess it only shows up for me.
Green 3.4.3 (just released) treats the inability to clean up a temp directory that it created as a warning instead of a crash...I hope. I couldn't find a sane way to test this.
@CleanCut excellent - since the CI picks up the latest green anyway we might see the warning sooner or later. If i spot in the logs I'll let you know.
is this an upstream problem or would you be able to catch this? Our tests are marked as failures when this happens ...