Repository navigation
bazel: Backport the coverage merger and llvm-cov wrapper to WORKSPACE - #5588
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Port `//coverage:lcov_merger` and `//coverage:llvm_support` (the `llvm-cov` wrapper), with their tests, from `main` at bazel-v0.5.20, so that WORKSPACE consumers can postprocess coverage inside the test action as `main` does (envoyproxy#5580, envoyproxy#5582). With split postprocessing, each test uploads its raw profile for a separate action to download again. For Envoy that is about 140MB per integration test and 130GB per full coverage run. Inside the test action, the wrapper exports line coverage for workspace sources only, and the merger strips the records the report does not read and removes the coverage directory's intermediates before the test's outputs are uploaded. The files are unchanged from `main`. The report generation that came with them on `main` (`run`, `coverage_report`, the grcov and lcov merge repositories) is left out: WORKSPACE consumers have their own. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
workspace-coverage
branch
from
November 13, 2026 10:29
fcbe0a6 to
8d2f4c1
Compare
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
For the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used by the following change to postprocess coverage inside the test action. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
0.4.13.post2 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
0.4.13.post2 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to envoyproxy/envoy
that referenced
this pull request
Nov 17, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
0.4.13.post3 has the coverage merger and llvm-cov wrapper backported to the WORKSPACE line (envoyproxy/toolshed#5588), used to postprocess coverage inside the test action, and its merge for Bazel 7, which does not stage Bazel's own merger in the test action (envoyproxy/toolshed#5591). Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port
//coverage:lcov_mergerand//coverage:llvm_support(thellvm-covwrapper), with their tests, frommainat bazel-v0.5.20 (#5580, #5582), so WORKSPACE consumers can postprocess coverage inside the test action asmaindoes.With split postprocessing, each test uploads its raw profile for a separate action to download again. For Envoy that is about 140MB per integration test. Inside the test action, the wrapper exports line coverage for workspace sources only, and the merger strips the records the report does not read and removes the coverage directory's intermediates before the test's outputs are uploaded.
The files are unchanged from
main. The report generation that came with them onmain(run,coverage_report, the grcov and lcov merge repositories) is left out: WORKSPACE consumers have their own.Tested with Envoy's
release/v1.39on envoy-ci-staging (envoyproxy/envoy-ci-staging#2163), pinned to this commit with--noexperimental_split_coverage_postprocessing,--coverage_support=@envoy_toolshed//coverage:llvm_support,--coverage_output_generator=@envoy_toolshed//coverage:lcov_mergerandLLVM_COV=external/envoy_toolshed/coverage/llvm/llvm-cov.sh: