feat(enrichment): add changed-line coverage-delta analyzer#3652
Conversation
Adds a coverageDelta REES analyzer that flags added lines a PR introduces which the repo's own latest successful CI coverage report records as executed zero times, parsed from the head commit's GitHub Actions coverage artifact (lcov / Istanbul coverage-final.json / Cobertura XML) and intersected with the patch's added lines. Additive and fail-safe: any missing token, absent artifact, unparseable report, or fetch error yields no finding rather than a false one. Self-contained in review-enrichment/. Closes JSONbored#1516
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 23:21:13 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3652 +/- ##
=======================================
Coverage 93.28% 93.28%
=======================================
Files 314 314
Lines 32054 32054
Branches 11747 11747
=======================================
Hits 29903 29903
Misses 1517 1517
Partials 634 634
🚀 New features to boost your workflow:
|
Summary
Adds a
coverageDeltaREES analyzer (#1516) that flags the lines a PR adds which the project's own latest successful CI coverage report records as executed zero times — real measured test gaps on exactly the touched lines, not a heuristic about whether tests "look" present. This is heavy/external analysis the no-checkout in-prompt reviewer cannot run; the service returns it as an additive, fail-safe brief block the engine splices into the review.How it works
node:zlib), parses the first recognized report — lcovlcov.info, Istanbulcoverage-final.json, or Cobertura XML — into per-file zero-hit lines, and intersects with the PR's added lines.{ file, uncoveredLines }— never file contents.Safety / bounds
review-enrichment/(outside the engine tsc/vitest/codecov scope); zero engine conflict.Tests
node:testunits covering the patch parser, all three coverage-format parsers, the zip reader (deflated + stored + non-zip), path matching, the full scan (lcov + Istanbul happy paths, fully-covered negative, token/head-sha/slug guards, no-run/no-artifact/oversize/wrong-file, runs-fetch and zip-download failure, aborted signal), and both render branches. A real deflated zip is built in-test fromnode:zlib.Closes #1516