Repository navigation
ci: use cargo-llvm-cov 0.9.2 so coverage works with @argfile - #15
Merged
Merged
Conversation
On Windows, cargo hands rustc its arguments via an @argfile when the command line gets too long (many dependencies plus the longer Rust 1.100 build-dir paths). cargo-llvm-cov 0.9.1's rustc wrapper does not read @argfile, so it never sees --crate-name, does not instrument code_signer, and the report fails with "no coverage data found". 0.9.2 adds @argfile support. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tntrock
force-pushed
the
ci/fix-llvm-cov-stale-cache
branch
from
December 2, 2026 02:46
8817047 to
6af3d19
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Problem
Since Rust 1.100 reached the runners,
Test with coveragefails on every PR (#12, #14) even though all tests pass:Root cause
A diagnostic run showed the
code_signertest binaries had no coverage sections at all, while dependency build scripts did. In other words, the crate was never instrumented.On Windows, cargo hands rustc its arguments via an
@argfilewhen the command line gets too long. This crate has many dependencies, and the v2 build-dir paths in Rust 1.100 are longer, so it now crosses that limit. cargo-llvm-cov 0.9.1's rustc wrapper does not read@argfile, so it never sees--crate-name code_signerand skips adding-C instrument-coverage. Build scripts have short command lines, which is why only they were instrumented. msu-inspector has fewer dependencies and still passes on 0.9.1.cargo-llvm-cov 0.9.2 adds
@argfilesupport (taiki-e/cargo-llvm-cov#533).Fix
taiki-e/install-actionto v2.90.12, the first release whose manifest includes cargo-llvm-cov 0.9.2.tool: cargo-llvm-cov@0.9.2.(The earlier cache-key idea in this PR was wrong and has been dropped.)
🤖 Generated with Claude Code