-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Could not remove pg_stat - unsatisfied constraints (Directory not empty) #251
Comments
ah crap. This is a bug I'm really struggling to kill. I think that as removeDirectoryRecursive is running new files are being added to the directory. This is the silly hack I have left in. The other thing I have tried is rename folder before removing but that also did not work. I guess I should try the idea I had of locking the directories ... but I am not really sure what I was thinking because I would lock in the I could also just try deleting over and over again for some amount of time. |
Ah, you have experienced this too then? |
Not recently but yes. I was pretty sure I had not solved it. |
We're hitting this a lot at the moment, so I'm doing some investigation into this. Some findings:
I think my sandboxing stuff is just luck that causes the exception to happen less frequently. I suggest that #215 is reverted, or least configurable. I'll live with an 8ms penalty if tests actually work reliably. Also, this time is spent per test, and we run tests in parallel anyway |
As a temporary hack for anyone who have same issue: If there is a better solution, I'd be happy to see. |
The better solution is to just revert b90ed91 |
@jfischoff Do you still plan to revert the above mentioned commit? We haven't had any more problems since we reverted it (we've been running https://github.com/circuithub/tmp-postgres since my last comment) |
@jfischoff My team is also affected by this, it looks like our fix will be a temporary fork of tmp-postgres reverting b90ed91 since @ocharles said it's been working for some time. This error started showing up for us seemingly out of nowhere. |
At least, from context that seems an accurate summary of what's happening. This was recommended by @ocharles and has been working for CircuitHub per: jfischoff#251 (comment)
The sandbox was (probably) enabled due to the .stack/shell.nix files: it made use of buildStackProject, which requires to run outside of the sandbox for some reason ( https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/generic-stack-builder.nix#L25 ). Now that this file is not used anymore, we can reenable the sandbox. It should help fix in particular this recent issue we’re facing in the CI: jfischoff/tmp-postgres#251
@jfischoff Polite ping. I still think reverting #215 is worth doing. |
@ocharles I haven't had time to work on this project recently, but I should have time this week. I'll take a look. Thanks for the ping. |
I just received our first report on this. Is there anything I can do to help diagnose or get the #215 revert moving along? |
I have been happily using
tmp-postgres
locally, but on CI I got:I've never seen this before, any idea what could have happened?
The text was updated successfully, but these errors were encountered: