Repository navigation
coverage: Merge the per-test reports with lcov-merge before rendering - #49140
Merged
Merged
Conversation
|
Coverage for this Pull Request will be rendered here: For comparison, current coverage on The coverage results are (re-)rendered each time the CI |
phlax
force-pushed
the
coverage-lcov-merge
branch
from
November 10, 2026 15:13
87eb24b to
cff5ec0
Compare
phlax
requested review from
RyanTheOptimist,
abeyad and
danzh2010
as code owners
November 10, 2026 15:13
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the integration of the prebuilt lcov merger into coverage reporting.
No open issues 🎉
What changed in this PR
This PR wires a prebuilt lcov-merge into Envoy’s coverage reporting to reduce tracefile processing time before grcov renders the report.
Changes:
- Registers the lcov merger extension using toolshed bins release
0.2.32. - Passes the merger to the coverage report target.
- Updates root and downstream workspace lockfiles with the new extension.
| File | Description |
|---|---|
tools/coverage/BUILD |
Enables pre-merging for coverage reports. |
MODULE.bazel.lock |
Records the merger extension for the root workspace. |
MODULE.bazel |
Registers and exposes the prebuilt merger repository. |
mobile/MODULE.bazel.lock |
Records the extension for Mobile. |
docs/MODULE.bazel.lock |
Records the extension for documentation builds. |
bazel/tests/external/MODULE.bazel.lock |
Records the extension for downstream build tests. |
bazel/tests/codeql/MODULE.bazel.lock |
Records the extension for CodeQL builds. |
Review effort: Balanced
The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
coverage-lcov-merge
branch
from
November 10, 2026 15:29
cff5ec0 to
2588c9e
Compare
jwendell
approved these changes
Nov 10, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
…envoyproxy#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
…envoyproxy#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
…envoyproxy#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 11, 2026
…envoyproxy#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 12, 2026
…envoyproxy#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 12, 2026
…#49140) The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged. Requires envoy_toolshed 0.5.20.envoy. 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.
The coverage report (grcov) spent ~30s of its ~44s parsing and merging the ~1,600 per-test tracefiles, on the critical path after the last test finishes; the baseline report rendered a second time for nothing. toolshed 0.5.20's coverage_report takes a prebuilt lcov-merge (bins release 0.2.32) that merges them in a few seconds and hands grcov one file; the baseline report becomes the merged tracefile. On platforms without the prebuilt (s390x, ppc64le, macOS) the report is unchanged.
Requires envoy_toolshed 0.5.20.envoy.