When a TIME OUT occurs we do not clean the go build folders in /tmp #175
alessio-perugini
started this conversation in
Development
Replies: 1 comment 1 reply
-
I would say we have a bug here. If this happens with tests I assume it happens also during a run with timeouts. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that when we have a TIME OUT we do not clean the folder created by go test in /tmp dir.
You can easily reproduce the behavior running gremlin with multiple workers in a big pkg. I tested on ./internal/coverage.
Checking the /tmp we can see that are left some folders like
go-build19625282
.Step I did:
Moreover, each TIMED OUT corresponds to a unique folder. If we have 5 TIMED OUT we will have 5 corresponding go-build* folder left in /tmp. You can lazy checking this by doing:
I'm not sure if we can have complete control over this. I think the problem is that we cannot know upfront the directory name created by
go test
. When the timeout occurs we shut down the command and the folder won't be cleaned up.Solutions
go-build*
, put them in a map and clear all the go-build folder not already there.Beta Was this translation helpful? Give feedback.
All reactions