Repository navigation
docs(issues): [#2222] define package coverage regression check - #2223
josecelano merged 8 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved specification and metadata issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds a specification for report-only per-package coverage-regression checks and registers Issue #2222 under EPIC #1347.
Changes:
- Defines scope, implementation plan, acceptance criteria, and verification scenarios.
- Documents coverage comparison, baseline, and rollout behavior.
- Registers Issue #2222 in the EPIC subissue table.
File summaries
| File | Summary |
|---|---|
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md |
New coverage-regression implementation specification |
docs/issues/open/1347-overhaul-packages-testing/EPIC.md |
Registers Issue #2222 as an EPIC subissue |
Review details
Suppressed comments (7)
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:148
- This is a coverage-focused EPIC subissue, but T1 does not require an issue-local human-readable coverage-evidence record or an exact reproducible coverage command and scope. Without that evidence, the prototype's base/head counts and the aggregate versus unit-only/integration-only boundaries cannot be audited or reproduced; add the evidence deliverable and its required scope tables.
| T1 | TODO | Revalidate strategy and prototype alternatives | Recheck current Codecov component/status behavior, GitHub artifact APIs/retention, `cargo llvm-cov` JSON semantics, package layout, and security constraints. Prototype Codecov-component and one-build artifact-summary paths using a controlled package change; record runtime, availability, and failure behavior. |
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:152
- T5 adds automated tests, but the specification does not define the repository-required progressive test-development loop: behavior-focused increments, prose-first Arrange/Act/Assert review, focused validation, and the maintainer stop after the final test increment. Add those gates so the planned tests are reviewed for design rather than only counted as coverage.
| T5 | TODO | Add focused automated coverage | Test discovery, report filtering, artifact/base-summary selection, and ratio decisions: equal, increased, decreased, zero-total, new, removed, renamed, and unavailable baseline. |
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:4
- This spec is already an assigned, approved issue under
docs/issues/open/, but its frontmatter still saysstatus: draft. Open issue examples useplannedfor this post-creation/pre-implementation state; update the status so metadata matches the lifecycle recorded below.
status: draft
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:152
- T5 requires a zero-total ratio test but never defines its expected outcome. Specify whether a package with zero instrumented lines is non-comparable/baseline-unavailable and non-gating (or another explicit rule), and require that status in the summary; otherwise implementations may divide by zero or treat 0/0 inconsistently.
| T5 | TODO | Add focused automated coverage | Test discovery, report filtering, artifact/base-summary selection, and ratio decisions: equal, increased, decreased, zero-total, new, removed, renamed, and unavailable baseline. |
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:281
coverage.yamlis not a main-branch workflow in this repository; it is triggered only by pushes todevelop(.github/workflows/coverage.yaml:7-10). Calling it “Main-branch” conflicts with thedevelopbaseline described above and could lead the implementation to publish from the wrong branch.
- Main-branch coverage workflow: `.github/workflows/coverage.yaml`
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:40
- This applicability statement conflicts with the proposed one-build design: it says aggregate, unit-only, and integration-only reporting still applies, but T1–T7 and AC1–AC11 only define one source-only summary from the existing workspace report. Clarify that this infrastructure comparison is exempt and record its aggregate scope, or add explicit separate-scope deliverables; otherwise implementation has incompatible requirements.
post-vertical-slice review. The remaining guidelines apply: toolchain-pinned validation, explicit
manual verification, a final reconciliation task, issue-local lessons, rebase-stable evidence,
and separate aggregate/unit-only/integration-only reporting where coverage is measured.
docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md:232
- The canonical template defines
Acceptance Verificationas a###subsection ofVerification Plan; using##makes it a top-level section and breaks the issue-spec heading hierarchy. Change this heading to###.
## Acceptance Verification
- Files reviewed: 2/2 changed files
- Comments generated: 6
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
c5ba770 to
10e9b31
Compare
|
ACK 10e9b31 |
Summary
Adds the implementation-ready specification for Issue #2222, an EPIC #1347 subissue that researches and rolls out a report-only per-package coverage-regression comparison for pull requests. It compares directly changed workspace packages with their PR-base measurement using exact source-only covered/instrumented line counts, without an absolute target or required status until controlled rollout evidence supports a later decision.
Scope
docs/issues/open/2222-1347-package-coverage-regression-ci/Validation
cargo machete, layer-boundary bans,linter all, Containerfile lint, and documentation testsRelated to #2222