Skip to content

testing: TempDir RemoveAll cleanup failures with "The process cannot access the file because it is being used by another process." #51442

@bcmills

Description

@bcmills
--- FAIL: TestRWithNonexistentFile (0.83s)
    testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\gopher\AppData\Local\Temp\1\TestRWithNonexistentFile1599077814\001\pack.exe: The process cannot access the file because it is being used by another process.
FAIL
FAIL	cmd/pack	4.916s

This can probably be fixed by expanding the set of errors handled by the retry loop added for #50051.

greplogs --dashboard -md -l -e 'TempDir RemoveAll cleanup: .* The process cannot access the file because it is being used by another process\.'

2022-02-25T23:38:11-01e522a/windows-amd64-2012
2021-10-28T18:10:50-2bc8ed8/windows-amd64-2012
2021-10-14T18:43:59-765c911/windows-amd64-2012
2021-09-30T19:56:27-70b1a45/windows-amd64-2012
2021-09-17T19:32:44-74e384f/windows-amd64-2012
2021-03-09T08:19:14-b70a2bc/windows-386-2008
2021-03-09T08:19:14-b70a2bc/windows-amd64-2008
2021-03-09T08:19:14-b70a2bc/windows-amd64-2012
2021-03-09T08:19:14-b70a2bc/windows-amd64-2016
2021-03-09T08:19:14-b70a2bc/windows-amd64-longtest
2021-03-09T08:19:14-b70a2bc/windows-amd64-race
2021-03-09T08:19:14-b70a2bc/windows-arm-zx2c4
2021-03-09T07:44:18-437d229/windows-amd64-2008
2021-03-09T07:44:18-437d229/windows-amd64-2012
2021-03-09T07:44:18-437d229/windows-amd64-race
2021-03-09T07:44:18-437d229/windows-arm-zx2c4
2021-03-09T02:20:55-618b66e/windows-amd64-2008
2021-03-09T02:20:55-618b66e/windows-amd64-2012
2021-03-09T02:20:55-618b66e/windows-amd64-2016
2021-03-09T02:20:55-618b66e/windows-amd64-race
2021-03-09T02:20:55-618b66e/windows-arm-zx2c4
2021-03-08T23:13:52-b6def6a/windows-amd64-2008
2021-03-08T23:13:52-b6def6a/windows-amd64-2012
2021-03-08T23:13:52-b6def6a/windows-amd64-2016
2021-03-08T23:13:52-b6def6a/windows-amd64-race
2021-03-08T20:41:06-a08adda/windows-386-2008
2021-03-08T20:41:06-a08adda/windows-amd64-2008
2021-03-08T20:41:06-a08adda/windows-amd64-2016
2021-03-08T20:41:06-a08adda/windows-amd64-longtest
2021-03-08T20:41:06-a08adda/windows-amd64-race
2021-03-08T20:03:01-bd37284/windows-386-2008
2021-03-08T20:03:01-bd37284/windows-amd64-2008
2021-03-08T20:03:01-bd37284/windows-amd64-2012
2021-03-08T20:03:01-bd37284/windows-amd64-2016

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions