]> Cypherpunks repositories - gostls13.git/commit
cmd/go: split generating cover files into its own action
authormatloob <matloob@golang.org>
Mon, 18 Aug 2025 20:41:06 +0000 (16:41 -0400)
committerMichael Matloob <matloob@google.com>
Tue, 9 Sep 2025 17:49:10 +0000 (10:49 -0700)
commite3223518b860132e3711602485922a8fa3805224
tree47c9cf075923a9019f754828178a91b342100318
parentaf03343f934b50f64389aa4222a2a111a125f69f
cmd/go: split generating cover files into its own action

This change breaks up the build action into multiple actions: a first
action checks to see what's cached and determines what the following
actions need to do. Then the optional cover action will generate cover
instrumented files if this is a cover build. Finally the build action
does the rest of this work. For simplicity of implementation, the new
actions do not cache their outputs separately from the build action
itself. It might be better to make changes in future CLs to enable that,
but it does add a reasonable amount of complexity. The purpose of this
CL is to split up the cover and build actions, so that in the next CL we
can insert cgo actions in the middle to enable running the cgo compile
actions in parallel.

For #9887

Change-Id: I6a6a696459feade17a144e5341096475676ae99f
Reviewed-on: https://go-review.googlesource.com/c/go/+/697135
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/exec.go