Add code coverage CI (cargo-llvm-cov + Codecov)#12
Merged
Conversation
Adds a new GitHub Actions workflow that runs `cargo llvm-cov` against
each in-tree Rust crate (`release-manager`, `mina-bench-upload`,
`buildkite-cache-manager`) and uploads LCOV reports to Codecov.
Matrix-per-crate setup:
* Each crate runs as its own job so one crate's failure doesn't
poison the others.
* Each upload is tagged with a Codecov *flag* matching the crate
name, so PRs see per-crate coverage deltas in the comment.
* `fail-fast: false` and `fail_ci_if_error: false` keep the workflow
advisory — coverage is observation, not a gate (yet).
`codecov.yml` defines the per-crate flags + paths, ignores the three
submodules (their coverage lives in their own repos), and sets the
informational project / patch thresholds:
* project: target auto, threshold 1% (allows small drift)
* patch: target 70% on new code
Both with `if_ci_failed: ignore` so the build stays green while we're
still calibrating. Once we have a few weeks of trend data per crate
we can tighten these to enforceable thresholds.
The Codecov action accepts uploads from public-repo PRs without a
token. A `CODECOV_TOKEN` repo secret can be added later to avoid rate
limits at higher volume.
Per-crate README badges are intentionally not added here — they'd be
noise until Codecov has actually ingested a run. Add them in a
follow-up once data lands.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 tasks
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.
Summary
New `.github/workflows/coverage.yml` running `cargo llvm-cov` against each in-tree Rust crate (`release-manager`, `mina-bench-upload`, `buildkite-cache-manager`) and uploading LCOV reports to Codecov with per-crate flags.
What's in the workflow
codecov.yml
Sits at the repo root. Defines:
Once each crate has a few weeks of trend data we can tighten these into real gates.
Codecov token
The workflow references `secrets.CODECOV_TOKEN` but tolerates its absence — Codecov accepts uploads from public-repo PRs token-free. Add the secret later if uploads start being rate-limited.
Not in this PR
Test plan
🤖 Generated with Claude Code