SMOODEV-2721: th testing coverage report/diff (LCOV upload + baseline diff)#252
Merged
Conversation
🦋 Changeset detectedLatest commit: 6cff46c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…e diff Coverage had no CLI surface: CI generates lcov per package and discards it. Adds 'th testing coverage report <lcov> --scope X' (in-CLI LCOV parser with DA-fallback, per-file detail capped to the API's 5000-file limit, branch/ commit defaulted from GitHub Actions env) and 'th testing coverage diff' (latest-per-scope vs a base branch, table or GitHub-markdown output for the sticky PR comment). Pairs with the /testing/coverage routes shipped in SmooAI/smooai#3389.
brentrager
force-pushed
the
testing-coverage-cli
branch
from
July 24, 2026 00:05
6519e7a to
6cff46c
Compare
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.
Coverage half of the testing-platform feature (pairs with SmooAI/smooai#3389 routes and SmooAI/testing#12 SDK):
th testing coverage report <lcov> --scope X [--branch --commit --run-id --no-files]— in-CLI LCOV parser (LF/LH preferred, DA-line fallback), per-file[lh,lf,bh,bf,fh,ff]counters capped to the API's 5000-file limit (drops detail + warns instead of 400ing), branch/commit defaulted from GitHub Actions env, POSTs to/organizations/{org}/testing/coverage.th testing coverage diff --branch X --base main --format table|md— fetches latest-per-scope for both branches, renders per-scope lines/branches/functions with Δ vs base (new/gonemarkers);mdemits the GitHub table the monorepo's sticky PR comment will post. Always exits 0 — signal, not gate.Unit tests: lcov fixtures (LF/LH + DA-fallback, non-lcov rejection), markdown/delta rendering.
cargo test -p smooai-smooth-cli testinggreen; the clippyexpect_usedhit under-D warningsis pre-existing in smooth-web's build.rs, untouched here.🤖 Generated with Claude Code
https://claude.ai/code/session_01H9YdTv1LgxPAsYJpgu5Aak