Skip to content

docs(issues): [#2222] define package coverage regression check - #2223

Merged
josecelano merged 8 commits into
torrust:developfrom
josecelano:2222-1347-package-coverage-regression-ci-spec
Sep 15, 2026
Merged

josecelano merged 8 commits into
torrust:developfrom
josecelano:2222-1347-package-coverage-regression-ci-spec

Conversation

@josecelano

Copy link
Copy Markdown
Member

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

Validation

  • Full pre-commit gate passed: dictionary formatting, documented Clippy allows, cargo machete, layer-boundary bans, linter all, Containerfile lint, and documentation tests

Related to #2222

Copilot AI lite review requested due to automatic review settings September 15, 2026 10:10
@josecelano josecelano self-assigned this Sep 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 says status: draft. Open issue examples use planned for 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.yaml is not a main-branch workflow in this repository; it is triggered only by pushes to develop (.github/workflows/coverage.yaml:7-10). Calling it “Main-branch” conflicts with the develop baseline 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 Verification as a ### subsection of Verification 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.

@josecelano
josecelano force-pushed the 2222-1347-package-coverage-regression-ci-spec branch from c5ba770 to 10e9b31 Compare September 15, 2026 11:50
@josecelano

Copy link
Copy Markdown
Member Author

ACK 10e9b31

@josecelano
josecelano merged commit 8bb3ad9 into torrust:develop Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants