Closed anmolbabu closed 4 years ago
Please provide more detailed instructions on how to reproduce the situation. When I run gobco, everything is cleaned up as it should.
Please try again by installing gobco commit d7b2b5dde951c1693fa98ea36b7f3acf98211815 and then running gobco -verbose
.
Ack will retry once again
Also, just out of curiosity why does it create another directory under /var/folders/dc as above? Sorry I really don't know if same is the case even with go test
I have atleast not realised it with go test
so far
Still... I see folders not being deleted on failed runs
When I took over gobco, it modified and instrumented the source code in-place, which was a terrible idea from the beginning.
I later fixed this by creating a temporary directory where I copied all the files that could be modified. To make this as realistic as possible, I had to create a complete GOROOT directory structure. This is probably what you mean by the "another directory".
I haven't looked at either vendoring or modules, therefore I may have missed the latest developments there. For me, copying the directories works fine though.
Regarding the "folders not being deleted", you still have to provide more details. I added some more debugging output in the commit I mentioned, to help you track down the cause. Could it be that your tests open a file but forget to close it again? Or they Chdir
into a directory and then stay there? All these could be reasons why the folders are still kept. In any case, I need to see the output of gobco -verbose
to continue guessing.
Feedback timeout.
I have observed this too. I'm not 100% sure of the reason. It may be certain kinds of test failure short-cut the clean up. You might also want to add a signal handler to ensure clean-up still happens if you press control ctrl-C. Something like https://stackoverflow.com/a/11131948/1569204