You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Same or nearly same documentation with go version devel +154394f8d3 Sun Jul 29 15:42:29 2018 +0000 darwin/amd64
What did you do?
My team is trying to speed up our CI runs, and I wanted to investigate whether it would be safe for different Jenkins jobs, running go test concurrently, to share the same GOCACHE, to take advantage of test caching. I looked at the output of go help cache and didn't see any mention of expected behavior with concurrent runs of go with respect to the cache.
What did you expect to see?
I expected to see some mention of what is expected to happen when invoking go concurrently. Perhaps "it is safe" to do so, or "if concurrent runs of go attempt to warm the same cache entry, the last one wins", or "concurrent runs of go may fail if the same cache file is modified by a different go process".
What did you see instead?
No mention of expected behavior.
We're intending to assume the best behavior in the meantime, but I was slightly surprised that it wasn't mentioned in the docs.
rsc
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Aug 17, 2018
I think #26794 is somewhat-related. It's not talking about GOCACHE directly, but is another reason why concurrently running go commands may not be safe. Perhaps worth mentioning that in the documentation produced by this issue too.
What version of Go are you using (
go version
)?go version go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
Same or nearly same documentation with go version devel +154394f8d3 Sun Jul 29 15:42:29 2018 +0000 darwin/amd64
What did you do?
My team is trying to speed up our CI runs, and I wanted to investigate whether it would be safe for different Jenkins jobs, running
go test
concurrently, to share the same GOCACHE, to take advantage of test caching. I looked at the output ofgo help cache
and didn't see any mention of expected behavior with concurrent runs ofgo
with respect to the cache.What did you expect to see?
I expected to see some mention of what is expected to happen when invoking
go
concurrently. Perhaps "it is safe" to do so, or "if concurrent runs of go attempt to warm the same cache entry, the last one wins", or "concurrent runs of go may fail if the same cache file is modified by a different go process".What did you see instead?
No mention of expected behavior.
We're intending to assume the best behavior in the meantime, but I was slightly surprised that it wasn't mentioned in the docs.
/cc @rsc
The text was updated successfully, but these errors were encountered: