Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
690cfb5
docs(issues): [#2902] specify the tracker-core package tests
josecelano-bot Nov 17, 2026
2b0c3fe
docs(issues): [#2902] record the container-gated coverage measurement
josecelano-bot Nov 17, 2026
d6e004d
docs(issues): [#2902] count 155 unit tests in the scope without the f…
josecelano-bot Nov 17, 2026
2d175da
docs(issues): [#2902] add the container-gated command and per-file co…
josecelano-bot Nov 17, 2026
0837f90
docs(issues): [#2902] separate production and test-module uncovered l…
josecelano-bot Nov 17, 2026
28037cb
docs(issues): [#2902] cite the exact parse_valid_until line ranges
josecelano-bot Nov 17, 2026
b438935
docs(issues): [#2902] state the coverage ranking from the EPIC table
josecelano-bot Nov 17, 2026
058b52a
docs(issues): [#1347] restore the 10:57 EPIC log entry and append T1b
josecelano-bot Nov 17, 2026
4ce9553
docs(issues): [#2902] define the async, cleanup and fixture rules
josecelano-bot Nov 17, 2026
3d20b52
docs(issues): [#2902] correct the log entry that missed the first review
josecelano-bot Nov 17, 2026
37d9b12
docs(issues): [#2902] state the measured run times behind finding F1
josecelano-bot Nov 17, 2026
2c3d8ed
docs(pr-reviews): [#2902] record the review rounds of #2903
josecelano-bot Nov 17, 2026
8c64552
docs(issues): [#2902] label production and test-module uncovered lines
josecelano-bot Nov 17, 2026
8f42a03
docs(issues): [#2902] record the full commit SHAs of the measurements
josecelano-bot Nov 17, 2026
289cf16
docs(pr-reviews): [#2902] record Copilot's review of #2903
josecelano-bot Nov 17, 2026
798d53f
docs(issues): [#2902] label the last unlabeled uncovered-line cells
josecelano-bot Nov 17, 2026
7c835dd
docs(issues): [#2902] cite the container-gated run by commit subject
josecelano-bot Nov 17, 2026
9d53ef4
docs(pr-reviews): [#2902] record the fourth review round of #2903
josecelano-bot Nov 17, 2026
10aab47
docs(pr-reviews): [#2902] record the round 4 replies of #2903
josecelano-bot Nov 17, 2026
7f716f6
docs(pr-reviews): [#2902] record Copilot's fifth-round finding of #2903
josecelano-bot Nov 17, 2026
0a46512
docs(issues): [#2902] name the S0 commit in the unchanged-source check
josecelano-bot Nov 17, 2026
0eb2ac6
docs(pr-reviews): [#2902] record the sixth review round of #2903
josecelano-bot Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docs/issues/open/1347-overhaul-packages-testing/EPIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ epic: null
github-issue: 1347
spec-path: docs/issues/open/1347-overhaul-packages-testing/EPIC.md
epic-owner: josecelano
last-updated-utc: "2026-11-17 07:45"
last-updated-utc: "2026-11-17 12:43"
semantic-links:
skill-links:
- create-issue
Expand Down Expand Up @@ -99,7 +99,8 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`.
| 11 | #2824 - Add tests to the primitives package | `docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md` | DONE | S0 (the spec, #2828), S1 (the `PeerRole` JSON casing fix, #2834), S2 (the `peer.rs` tests, #2841), S3 (the configuration defaults and bounded values, #2852) and S4 (`swarm_metadata.rs`, the no-change files, the mutation run, the manual checks, #2864) are merged; the issue is closed. Unit-only lines 60.56% → 94.07%. Findings F1 (fixed through #2811), F2 (fixed in S1), F3 (#2804), F4 (#2823), F6 (#2838, #2850) and F5 (#2876, drafted through #2865) have owners. |
| 12 | #2838 - UDP tracker accepts announces with a negative left, uploaded or downloaded | `docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md` | DONE | Bug found by the #2824 primitives tests work. Fixed by the standalone issue #2850 (`docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md`): its implementation PR #2872 merged on 2026-11-16 and closed this issue. The patch of PR #2839 was not merged; its tests were taken over by PR #2872. |
| 13 | #2876 - Move `peer::Id::new` to a realistic test helper and decide whether `peer::fixture` goes behind a `testing` feature | `docs/issues/closed/2876-1347-peer-id-test-helper/ISSUE.md` | DONE | Finding F5 of #2824. Spec through #2878, implementation through #2888: `Id::new` removed, `qbittorrent_peer_id` helper, `peer::fixture` behind the new `testing` feature of `primitives`, test-support ADR amended. Breaking for the published `primitives` 3.0.0; adds to the 4.0.0 it owes (#2583). |
| 14 | Additional package-testing subissues | Create a folder-style spec when a concrete package need is identified | TODO | Permitted but not required upfront; retain scope in this EPIC. |
| 14 | #2902 - Add tests to the tracker-core package | `docs/issues/open/2902-1347-add-tests-tracker-core/ISSUE.md` | TODO | Lowest unit-only lines of the packages in the EPIC coverage table: 80.31% (MySQL/PostgreSQL drivers 0-4%, SQLite failure branches, `statistics/` reached only by the integration binary). Slices S0-S5 proposed; S0 is the spec-only PR. |
| 15 | Additional package-testing subissues | Create a folder-style spec when a concrete package need is identified | TODO | Permitted but not required upfront; retain scope in this EPIC. |

## Package Coverage Tracking

Expand All @@ -124,6 +125,7 @@ level or determine whether unit coverage is adequate.
| `torrust-tracker-http-core` | [#1349](../../closed/1349-1347-add-tests-http-core/ISSUE.md) | Lines: 88.88%; regions: 90.41%; functions: 84.29% | Lines: 99.28%; regions: 99.25%; functions: 99.74% | Lines: +10.40 pp; regions: +8.84 pp; functions: +15.45 pp | [Coverage evidence](../../closed/1349-1347-add-tests-http-core/coverage-evidence.md) |
| `torrust-tracker-axum-rest-api-server` | [#2637](../../closed/2637-1347-add-tests-axum-rest-api-server/ISSUE.md) | Lines: 87.98%; regions: 84.10%; functions: 83.42% | Lines: 97.67%; regions: 97.13%; functions: 95.48% | Lines: +9.69 pp; regions: +13.03 pp; functions: +12.06 pp | [Coverage evidence](../../closed/2637-1347-add-tests-axum-rest-api-server/coverage-evidence.md) |
| `torrust-tracker-primitives` | [#2824](../../closed/2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 94.07%; regions: 95.30%; functions: 94.17% | Lines: +33.51 pp; regions: +27.36 pp; functions: +36.94 pp | [Coverage evidence](../../closed/2824-1347-add-tests-primitives/coverage-evidence.md) |
| `torrust-tracker-core` | [#2902](../2902-1347-add-tests-tracker-core/ISSUE.md) | Lines: 82.15%; regions: 81.23%; functions: 73.38% | Not yet measured | Not yet measured | [Coverage evidence](../2902-1347-add-tests-tracker-core/coverage-evidence.md) |

### Unit-Only Coverage

Expand All @@ -139,6 +141,7 @@ weak unit-only result with aggregate, integration, example, or end-to-end covera
| `torrust-tracker-http-core` | [#1349](../../closed/1349-1347-add-tests-http-core/ISSUE.md) | Lines: 88.88%; regions: 90.41%; functions: 84.29% | Lines: 99.28%; regions: 99.25%; functions: 99.74% | Lines: +10.40 pp; regions: +8.84 pp; functions: +15.45 pp | [Coverage evidence](../../closed/1349-1347-add-tests-http-core/coverage-evidence.md) |
| `torrust-tracker-axum-rest-api-server` | [#2637](../../closed/2637-1347-add-tests-axum-rest-api-server/ISSUE.md) | Lines: 63.87%; regions: 63.98%; functions: 51.34% | Lines: 96.67%; regions: 96.38%; functions: 93.97% | Lines: +32.80 pp; regions: +32.40 pp; functions: +42.63 pp | [Coverage evidence](../../closed/2637-1347-add-tests-axum-rest-api-server/coverage-evidence.md) |
| `torrust-tracker-primitives` | [#2824](../../closed/2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 94.07%; regions: 95.30%; functions: 94.17% | Lines: +33.51 pp; regions: +27.36 pp; functions: +36.94 pp | [Coverage evidence](../../closed/2824-1347-add-tests-primitives/coverage-evidence.md) |
| `torrust-tracker-core` | [#2902](../2902-1347-add-tests-tracker-core/ISSUE.md) | Lines: 80.31%; regions: 80.20%; functions: 72.01% | Not yet measured | Not yet measured | [Coverage evidence](../2902-1347-add-tests-tracker-core/coverage-evidence.md) |

## Delivery Strategy

Expand Down Expand Up @@ -355,6 +358,8 @@ For each subissue implementation, the completion policy is:
- 2026-11-15 21:22 UTC - Claude Code (Opus 5.5) - Row 12 (#2838): the fix is the implementation of the standalone issue #2850, PR #2872 (open), which closes #2838 on merge. It removes the `primitives` test that pinned a negative `left` as a seeder (finding F6 of #2824) and the `-1` rows of the role table.
- 2026-11-16 14:07 UTC - Claude Code (Opus 5.5) - #2838 closed by PR #2872 (merged 2026-11-16 14:05 UTC); row 12 set to `DONE` and the specifications of #2838 and #2850 archived to `docs/issues/closed/`.
- 2026-11-16 21:52 UTC - Claude Code (Opus 5.5) - #2876 closed by PR #2888 (merged 2026-11-16 21:49 UTC); row 13 set to `DONE` and the spec archived to `docs/issues/closed/2876-1347-peer-id-test-helper/`.
- 2026-11-17 10:57 UTC - Claude Code (Sonnet 5.5) - Created #2902 (`tracker-core`, row 14; the link under #1347 is set by the maintainer). Clean baseline at `5833cdae9`, filtered to the package source: unit-only (`--all-features --lib`) lines 80.31% (4,099 / 5,104), regions 80.20%, functions 72.01%, 157 unit tests; aggregate lines 82.15%; integration-only 44.05% (12 tests). The MySQL and PostgreSQL driver suites skip themselves without Docker and two environment variables, so those 10 files count as 0-4% covered; the container-gated scope is not yet measured. Delivered in slices S0-S5; the row stays `TODO` until the first implementation slice starts.
- 2026-11-17 12:43 UTC - Claude Code (Opus 5.5) - #2902 T1b, measured on 2026-11-17 after the maintainer allowed pulling the `mysql:8.0` and `postgres:16` images: with both driver suites running, the `tracker-core` aggregate is lines 93.80% (4,830 / 5,149). Correction: the commit that recorded T1b edited the 10:57 entry above in place; its original text is restored (review finding F9 of #2903).

## Acceptance Criteria

Expand Down Expand Up @@ -393,7 +398,7 @@ For each subissue implementation, the completion policy is:
## References

- GitHub EPIC: https://github.com/torrust/torrust-tracker/issues/1347
- Related issues: #1348, #1349, #2136, #2149, #2637, #2824
- Related issues: #1348, #1349, #2136, #2149, #2637, #2824, #2902
- 2026-11-09 12:10 UTC - Claude Code - #2637 S6 merged through #2772 (2026-11-09 12:08 UTC) and issue #2637 closed: the `axum-rest-api-server` package is DONE. Final figures (unchanged): unit-only lines 96.67%, aggregate 97.67%. The spec was archived to `docs/issues/closed/` and the subissue row is `DONE`.
- Package inventory: `docs/packages.md`
- Reference package: `packages/tracker-core/`
Expand Down
Loading
Loading