-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share Go's test cache in CI between jobs to reduce latency for getting the results #1229
Comments
This PR caches the entire go build directory, I don't know if the folder pointed to contains test cache on the CI system: #1583 On inspection of jobs in that PR, tests weren't cached on repeated runs of the same logic. If we see test runs speedup dramatically below 3 minutes, that'd be a good sign caching of tests is happening. The default go test cache location does appear to be getting cached in that PR though. Perhaps the Though tbh, if this stays at/under 3 minutes, I think its fine. Will get sped up further when we reduce the overhead of CLI tests. |
Ah indeed, golang/go#23565 coverprofile does not get cached with tests at the moment, hence tests are not getting cached. So the decision matrix for this issue is then:
I don't think I ever look at codecov comments on PRs / coverprofile personally, but I'm also fine with the current CI time / further speedups by eliminating more CI tests. How do others feel? |
I personally don't either, but it can be good to know how much coverage we have at any given moment. I'm in favor of caching, i.e. removing |
Sweet, I'm down to remove |
Ah the other benefit of removing this: No more noise notifications from codecov on your PRs 😂 |
Context
We would like to investigate and implement, if possible, the solution for sharing Go's test cache between test CI jobs to reduce the number of redundant runs
Initial Investigation
GOCACHE
environment variableRisks
Acceptance Criteria
The text was updated successfully, but these errors were encountered: