Bug#924800: [PATCH] resolve race in test cleanup by making second attempt more forceful

Sean Whitton spwhitton at spwhitton.name
Mon Apr 1 23:24:22 BST 2019


Hello Joey,

Thank you for your reply.

On Mon 01 Apr 2019 at 11:28AM -04, Joey Hess wrote:

> I'd certianly like to use removePathForcibly -- after all it was added
> in response to a bug report I filed about this very kind of problem.
>
> But, the first version of ghc to include it was 8.4.2, which is newer
> than the 8.0 minimum I think git-annex supports now, and also newer than
> what's in Debian stable. So it would need to be
> #if MIN_VERSION_directory(1,2,7)

Okay, fair enough, it makes sense for this hotfix for the Debian buster
release not to make it upstream.

> It also seems very unlikely that something would wait around for 10
> seconds while git-annex is delaying to let any processes that might be
> running finish their cleanup, and then run at exactly the same time as
> the removeDirectoryRecursive. Since the earlier removeDirectoryRecursive
> failed on the same file, I have the feeling the problem is not actually
> with the file vanishing out from under it, but something else to do with
> it being a socket..

Yes, this line of thought occurred to me as well.

> It seems to me that removePathForcibly would probably at best ignore
> the error in removal and so leave a .t directory hanging around at the
> end?

I just tested this -- `dgit build && ls .t` -- and it does not leave it
hanging around.

-- 
Sean Whitton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20190401/6c982f27/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list