Skip to content

tests/coverage: Use tooling from toolshed - #48659

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:toolshed-coverage
Oct 26, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:toolshed-coverage

Conversation

@phlax

@phlax phlax commented Oct 24, 2026

Copy link
Copy Markdown
Member

No description provided.

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.

🟡 Changes recommended

Mobile coverage is blocked by a missing grcov repository import and test-only filtering of the runner target.

2 open issues
What changed in this PR

This PR migrates Envoy’s coverage generation and validation to shared toolshed tooling, replacing local scripts and templates for core and mobile builds.

Changes:

  • Replace local coverage implementations with toolshed report targets and runner commands.
  • Update CI workflows and coverage documentation.
  • Pin toolshed overrides across Bazel workspaces and update zstd in root and mobile modules.
File Description
tools/​coverage/​validate.sh Remove local threshold validator.
tools/​coverage/​templates/​macros.html Remove local report macros.
tools/​coverage/​templates/​index.html Remove local report index template.
tools/​coverage/​templates/​base.html Remove local report base template.
tools/​coverage/​report_generator.sh.template Remove local report generator.
tools/​coverage/​filter.jq Remove local coverage processing logic.
tools/​coverage/​BUILD Define the toolshed coverage report target.
test/​run_envoy_bazel_coverage.sh Remove the local coverage runner.
test/​fuzz/​README.md Document toolshed fuzz coverage commands.
MODULE.bazel Pin toolshed overrides and update zstd.
mobile/​test/​BUILD Add mobile coverage report targets.
mobile/​MODULE.bazel Pin toolshed overrides and update zstd.
mobile/​envoy_build_config/​MODULE.bazel Add toolshed overrides.
mobile/​.bazelrc Select the mobile coverage generator and config.
docs/​MODULE.bazel Add toolshed overrides.
ci/​osx-build-config/​MODULE.bazel Add toolshed overrides.
ci/​do_ci.sh Invoke the toolshed coverage runner.
bazel/​tests/​external/​MODULE.bazel Add toolshed overrides.
bazel/​tests/​codeql/​MODULE.bazel Add toolshed overrides.
bazel/​README.md Document the new coverage CLI.
api/​MODULE.bazel Add toolshed overrides.
.github/​workflows/​mobile-coverage.yml Launch mobile coverage through toolshed.
.github/​config.yml Remove the deleted runner from change triggers.
.bazelrc Select the toolshed-backed report target.

Review effort: Balanced

Comment thread .github/workflows/mobile-coverage.yml Resolved
Comment thread mobile/MODULE.bazel Resolved
@phlax
phlax force-pushed the toolshed-coverage branch 9 times, most recently from ffafef4 to 7519341 Compare October 24, 2026 22:04
@phlax
phlax requested a balanced review from Copilot October 24, 2026 22:05

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.

🟡 Changes recommended

The compatibility wrapper bypasses CI’s Bazel shell function, dropping configured startup options and using an unintended output tree.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread test/run_envoy_bazel_coverage.sh Resolved

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.

🔵 Needs a closer look

The compatibility wrapper bypasses CI’s Bazel function, dropping configured startup options and using a separate output tree.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@phlax phlax changed the title [WIP] tests/coverage: Use tooling from toolshed tests/coverage: Use tooling from toolshed Oct 24, 2026
@phlax
phlax marked this pull request as ready for review October 24, 2026 22:31
@phlax
phlax merged commit 02fe237 into envoyproxy:main Oct 26, 2026
31 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 9, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 02fe237)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 02fe237)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 02fe237)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 12, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 02fe237)
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