Skip to content

coverage: Merge the per-test reports with lcov-merge before rendering - #49140

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:coverage-lcov-merge
Nov 10, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:coverage-lcov-merge

Conversation

@phlax

@phlax phlax commented Nov 10, 2026

Copy link
Copy Markdown
Member

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.

@repokitteh-read-only

Copy link
Copy Markdown

Coverage for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/49140/coverage/index.html

For comparison, current coverage on main branch is here:

https://storage.googleapis.com/envoy-cncf-postsubmit/main/coverage/index.html

The coverage results are (re-)rendered each time the CI Envoy/Checks (coverage) job completes.

🐱

Caused by: #49140 was opened by phlax.

see: more, trace.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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
phlax force-pushed the coverage-lcov-merge branch from cff5ec0 to 2588c9e Compare November 10, 2026 15:29
@phlax
phlax merged commit 05e19d8 into envoyproxy:main Nov 10, 2026
29 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants