Closed kaaveland closed 5 months ago
Maybe the OS is cleaning up the dir underneath us before we're done using it? That seems unlikely. 🤔 Having no luck debugging this yet.
I think I've fixed this by fsyncing the temp directories and retrying the git
commands that would sometimes fail over in #102
There's some sort of race condition or concurrency issue going on with these.
If I run this:
I eventually get to where one or more of the tests that run git or postgres will fail in this way:
My hunch is that we're not using the tempfile crate correctly and we're somehow dropping the tempdir before we're done with it, or that we're concurrently generating the same tempdir name from two different tests. 🤔