-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: cache coverage profile with tests #69339
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
cmd/go: cache coverage profile with tests #69339
Conversation
6c1e7be
to
cdd481a
Compare
This PR (HEAD: cdd481a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
cdd481a
to
bd314f3
Compare
This PR (HEAD: bd314f3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
bd314f3
to
233e83d
Compare
This PR (HEAD: 233e83d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from Ryan Currah: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from qiu laidongfeng2: Patch Set 3: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-09-08T02:10:10Z","revision":"b17804a47a2c088d0306e906e58bbfd8fc4b0c60"} Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from qiu laidongfeng2: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 3: This CL has failed the run. Reason: Tryjob golang/try/gotip-linux-386 has failed with summary (view all results):
Build or test failure, click here for results. To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
233e83d
to
69990a8
Compare
This PR (HEAD: 69990a8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
dbc5e2b
to
9b4a15c
Compare
This PR (HEAD: 9b4a15c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
9b4a15c
to
bf6ed10
Compare
This PR (HEAD: bf6ed10) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from Ryan Currah: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Than McIntosh: Patch Set 6: (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Ryan Currah: Patch Set 6: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
This PR (HEAD: 171ab52) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
This PR (HEAD: a75bc4d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
a75bc4d
to
6de06a9
Compare
This PR (HEAD: 6de06a9) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from Ryan Currah: Patch Set 12: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
03a56e6
to
0cd6a8c
Compare
This PR (HEAD: 0cd6a8c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
0cd6a8c
to
b960982
Compare
This PR (HEAD: b960982) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
… profile cache data
b960982
to
a3c9197
Compare
This PR (HEAD: a3c9197) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from علي نور: Patch Set 15: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from علي نور: Patch Set 15: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from علي نور: Patch Set 15: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Than McIntosh: Patch Set 15: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
This PR (HEAD: a5a1d1b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/610564. Important tips:
|
Message from Michael Matloob: Patch Set 16: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Ryan Currah: Patch Set 16: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Michael Matloob: Patch Set 16: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Michael Matloob: Patch Set 16: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Gopher Robot: Patch Set 16: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Michael Matloob: Patch Set 16: -Run-TryBot Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 16: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-03-05T20:27:28Z","revision":"bc0ae3e5f0c1c4edb982f256029214b23debff00"} Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Michael Matloob: Patch Set 16: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 16: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Go LUCI: Patch Set 16: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Michael Matloob: Patch Set 16: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Than McIntosh: Patch Set 16: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
Message from Junyang Shao: Patch Set 16: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/610564. |
This CL stores coverage profile data in the GOCACHE under the 'coverprofile' subkey alongside tests. This makes tests which use coverage profiles cacheable. The values of the -coverprofile and -outputdir flags are not included in the cache key to allow cached profile data to be written to any output file. Note: This is a rebase and squash from the original PRs below that was created/closed/abandoned by @jproberts and @macnibblet that I plan to maintain. - #50483 - #65657 I made improvements to the change based on feedback from @bcmills in Gerrit https://go-review.googlesource.com/c/go/+/563138. From @macnibblet: I don't know if anyone has considered the environmental impact (Yes, of course, dev experience too), but on a team with 3 backend developers, when I replaced our CI Golang version with this build, it reduced the build time by 50%, which would have equated to about 5000 hours of CI reduced in the past year. Fixes #23565 Change-Id: I59a20af5ea156f990a17544cf06dc667ae7f8aa3 GitHub-Last-Rev: a5a1d1b GitHub-Pull-Request: #69339 Reviewed-on: https://go-review.googlesource.com/c/go/+/610564 Reviewed-by: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Reviewed-by: Junyang Shao <[email protected]>
This PR is being closed because golang.org/cl/610564 has been merged. |
This CL stores coverage profile data in the GOCACHE under the
'coverprofile' subkey alongside tests. This makes tests which use
coverage profiles cacheable. The values of the -coverprofile and
-outputdir flags are not included in the cache key to allow cached
profile data to be written to any output file.
Note: This is a rebase and squash from the original PRs below that
was created/closed/abandoned by @jproberts and @macnibblet that I
plan to maintain.
I made improvements to the change based on feedback from @bcmills in Gerrit
https://go-review.googlesource.com/c/go/+/563138.
From @macnibblet:
I don't know if anyone has considered the environmental impact
(Yes, of course, dev experience too), but on a team with 3 backend
developers, when I replaced our CI Golang version with this build,
it reduced the build time by 50%, which would have
equated to about 5000 hours of CI reduced in the past year.
Fixes #23565