Repository navigation
ci: merge coverage with grcov instead of lcov - #125
Merged
Merged
Conversation
Installing lcov from apt took about 45 s per run, most of it downloading its 42 Perl dependencies from a slow mirror. Merge the three lcov files and build the HTML report with grcov instead, a single prebuilt binary installed by taiki-e/install-action in a few seconds. grcov also makes the file paths relative to the checkout, so the summary no longer strips the workspace prefix. test-linux installs cargo-llvm-cov the same way instead of building it with `cargo install`, which took about 45 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KzaQVQ6BqbHfXjsr8G5rP3
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.
Follow-up to #116 and #117 (issue #7).
What changed
coverage: merges the threelcov.infofiles and builds the HTML report with grcov 0.10.7 (MPL-2.0) instead of lcov/genhtml. Installing lcov from apt took about 45 s per run, mostly downloading 42 Perl dependencies from a slow mirror (28 s at 170 kB/s in the last main run). grcov is a single prebuilt binary, installed by taiki-e/install-action, which verifies the download's checksum.--source-dir .), so the summary's awk no longer strips the workspace prefix. diff-cover handles the relative paths.test-linux: installs cargo-llvm-cov 0.9.1 with install-action too, instead ofcargo install(about 45 s).actions.lock: addstaiki-e/install-action.The badge data step is unchanged; grcov also writes a
coverage.jsoninto the HTML folder, which that step overwrites. The HTML report's function column overcounts, as genhtml's would have with function coverage on: the library is built separately for the unit tests and each integration test binary. The job summary and the badge use lines only.Unchanged: the Docker image still builds cargo-llvm-cov with
cargo installfor the network test jobs; that is handled separately.Testing
Generated by Claude Code