chore(ci): scope coverage gate to well-covered crates#209
Open
rudyfraser wants to merge 1 commit into
Open
Conversation
The coverage-pds job ran cargo llvm-cov --fail-under-lines 95 over rsky-pds plus the spaces/oauth crates. llvm-cov instruments the whole dependency tree, so untested dependency crates and bin main.rs entrypoints were counted at 0%, and rsky-pds's large pre-existing untested surface (S3, mailer, PLC, many routes) sat well under 95% — the gate failed on every rsky-pds PR regardless of the change. Gate only rsky-oauth/space/space-host/daemon (99.8% lines once deps and main.rs are excluded via --ignore-filename-regex), and report rsky-pds coverage informationally while it is driven up separately.
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
The
coverage-pdsjob runscargo llvm-cov --fail-under-lines 95over rsky-pds plus the spaces/oauth crates and fails on every rsky-pds PR (e.g. #207, #208) regardless of the change. Two causes:main.rsentrypoints are counted at 0% and sink the total.Fix
rsky-oauth,rsky-space,rsky-space-host,rsky-daemon, with--ignore-filename-regexexcluding dependency crates andmain.rs. Measured locally: 99.80% lines — comfortably over 95%.rsky-pdscoverage informationally (no gate) while its coverage is driven up in a separate effort.No source changes; CI-only.
Test plan
cargo llvm-cov --fail-under-lines 95 -p rsky-oauth -p rsky-space -p rsky-space-host -p rsky-daemon --ignore-filename-regex '(...)'→ passes (99.80% lines) locally.