Repository navigation
ci: report test coverage for every Rust crate and the TypeScript SDK - #333
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
ci/coverage
branch
from
November 4, 2026 10:48
89600cd to
62f440c
Compare
The rust job runs its unit and database tests through cargo-llvm-cov with `just coverage`, printing line and function coverage per crate and uploading lcov.info. The TypeScript SDK's tests print Node's coverage. Nothing fails on coverage yet.
PiquelChips
force-pushed
the
ci/coverage
branch
from
November 4, 2026 13:59
2c8ff74 to
875e631
Compare
PiquelChips
enabled auto-merge (squash)
November 4, 2026 14:00
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.
Nothing measured how much of the code our tests exercise. Now CI reports it on every run, for Rust and for the TypeScript SDK. It only reports: no thresholds, no external service.
rustjob runs its unit and database tests through cargo-llvm-cov with a newjust coveragerecipe, in place ofjust test --workspace --run-ignored all, so the tests still run once. The job log gets a line and function summary per crate, andlcov.infois uploaded as therust-coverageartifact.just db prepare-checkstill runs right after, against the database those tests migrated. Doc tests stay a separate step. cargo-llvm-cov comes fromtaiki-e/install-action, like nextest and just, and adds thellvm-tools-previewcomponent itself, sorust-toolchain.tomlstays as it is.just coverageruns in a scratch cluster, asjust db testdoes, andcargo llvm-cov report --htmlrenders the result.just install-toolsnow installs cargo-llvm-cov.packages/auth'snode --testrun gets--experimental-test-coverage, which is still the flag's name in Node 24 (CI's version). Test files are excluded from the report, sojust web testprints line, branch and function coverage ofsrc/only.Current coverage
From this PR's CI run (all 418 tests, database tests included).
CI time
The
rustjob took 4m34s on this PR, against 3m40s–4m10s on main's last four runs, so about +30–55s:just test --workspace --run-ignored all→just coveragejust doc-testThat run built the instrumented tree from scratch, since main's cache has no
target/llvm-cov-targetyet. Once main saves a cache with it, the build should shrink, but rust-cache now stores two target trees, so restores get somewhat bigger.just doc-testnow builds the workspace's debug libraries itself, which the old test step used to leave behind. Thewebjob's test step went from 3s to 4s.Proof:
just coverageran locally against a scratch cluster and in this PR's CI against its PostgreSQL. Both runs passed all 418 tests and printed the table above.just db prepare-checkpassed after it in CI. The per-crate awk was also checked under mawk, the default awk on Ubuntu runners.Reviewed with review-loop: 1 round with 2× GPT 6.1 Sol and Claude Opus 5.5. Verdict: approved
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol and Claude Opus 5.5 (via T3 Code)
🤖 Generated with Claude Code