Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c4f9720
docs(issues): [#2902] skip merge commits in the S0 commit lookup
josecelano-bot Nov 17, 2026
e7fe4bd
docs(pr-reviews): [#2902] record the post-merge finding F20 of #2903
josecelano-bot Nov 17, 2026
132bf56
docs(issues): [#2902] add the S1 plan guidance and the statistics rep…
josecelano-bot Nov 17, 2026
0a06dd3
docs(issues): [#2902] record the maintainer's answers to Q2-Q7 and D1
josecelano-bot Nov 17, 2026
f3e70fa
test(tracker-core): [#2902] cover the statistics repository writes an…
josecelano-bot Nov 17, 2026
f1f4c95
docs(issues): [#2902] record the merged temporary-database fix in the…
josecelano-bot Nov 17, 2026
7d9d91b
docs(issues): [#2902] record the no-change decision for the statistic…
josecelano-bot Nov 18, 2026
98676ab
docs(issues): [#2902] add the plan for the persisted statistics loade…
josecelano-bot Nov 18, 2026
9a63635
test(tracker-core): [#2902] cover the persisted statistics loader
josecelano-bot Nov 18, 2026
8680f37
docs(issues): [#2902] record the results of the persisted statistics …
josecelano-bot Nov 18, 2026
20a09c6
docs(issues): [#2902] add the plan for the statistics event listener …
josecelano-bot Nov 18, 2026
d3cba09
docs(issues): [#2902] re-measure the coverage with Rust 1.100.0
josecelano-bot Nov 18, 2026
00d79fd
test(tracker-core): [#2902] cover the public statistics listener entr…
josecelano-bot Nov 18, 2026
d480587
docs(issues): [#2902] record the results of the statistics listener t…
josecelano-bot Nov 18, 2026
572dd85
docs(issues): [#2902] add the plan for the statistics event handler t…
josecelano-bot Nov 18, 2026
aa1d631
test(tracker-core): [#2902] cover every event kind and the global sav…
josecelano-bot Nov 18, 2026
75a4439
docs(issues): [#2902] record the results of the statistics event hand…
josecelano-bot Nov 18, 2026
8b1f8fa
docs(issues): [#2902] add the plan for the persisted downloads reposi…
josecelano-bot Nov 18, 2026
f4bf930
test(tracker-core): [#2902] pin that the persisted downloads are incr…
josecelano-bot Nov 18, 2026
74fdef8
docs(issues): [#2902] record the results of the persisted downloads r…
josecelano-bot Nov 18, 2026
95499fa
docs(issues): [#2902] add the plan for the statistics module tests
josecelano-bot Nov 18, 2026
cf80a03
test(tracker-core): [#2902] pin which downloads totals each statistic…
josecelano-bot Nov 18, 2026
adf964a
docs(issues): [#2902] record the results of the statistics module tests
josecelano-bot Nov 18, 2026
f9a3702
docs(issues): [#2902] close slice S1 with its coverage measurement
josecelano-bot Nov 21, 2026
09b91fe
docs(issues): [#2902] record the S1 pull request and close the F20 fo…
josecelano-bot Nov 21, 2026
7c64de5
test(tracker-core): [#2902] turn the statistics table tests into rste…
josecelano-bot Nov 22, 2026
1b6b350
test(tracker-core): [#2902] check that no torrent row is persisted fo…
josecelano-bot Nov 22, 2026
18fdd89
test(tracker-core): [#2902] name the global downloads failure test af…
josecelano-bot Nov 22, 2026
7dd2f18
docs(issues): [#2902] move the S1 close entry into the EPIC progress log
josecelano-bot Nov 22, 2026
f788cb0
docs(issues): [#2902] return a stray #2637 entry to the EPIC progress…
josecelano-bot Nov 22, 2026
0a746a5
docs(issues): [#2902] reconcile the listener and repository plans wit…
josecelano-bot Nov 22, 2026
f9c1ea3
docs(issues): [#2902] record the review changes of the statistics tab…
josecelano-bot Nov 22, 2026
a05b5a0
docs(pr-reviews): [#2902] record the first review round of #2988
josecelano-bot Nov 22, 2026
5ccaef5
docs(issues): [#2902] point the table test designs at their rstest cases
josecelano-bot Nov 22, 2026
d274972
docs(pr-reviews): [#2902] record the second review round of #2988
josecelano-bot Nov 22, 2026
97e9699
test(tracker-core): [#2902] expect one torrent read in the global dow…
josecelano-bot Nov 22, 2026
31342ce
chore(tracker-core): [#2902] build rstest without its default features
josecelano-bot Nov 22, 2026
71c0a0f
docs(pr-reviews): [#2902] record the third review round of #2988
josecelano-bot Nov 22, 2026
2da9871
docs(pr-reviews): [#2902] map the F23 severity from the Copilot overview
josecelano-bot Nov 22, 2026
5186511
docs(pr-reviews): [#2902] record the fourth review round of #2988
josecelano-bot Nov 22, 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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 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-18 10:20"
last-updated-utc: "2026-11-21 13:24"
semantic-links:
skill-links:
- create-issue
Expand Down Expand Up @@ -99,7 +99,7 @@ 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 | #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. |
| 14 | #2902 - Add tests to the tracker-core package | `docs/issues/open/2902-1347-add-tests-tracker-core/ISSUE.md` | IN_PROGRESS | Lowest unit-only lines of the packages in the EPIC coverage table: 79.32% (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. |

**Publishing gate (maintainer decision of 2026-11-18).** A workspace crate may be published
Expand Down Expand Up @@ -134,7 +134,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) |
| `torrust-tracker-core` | [#2902](../2902-1347-add-tests-tracker-core/ISSUE.md) | Lines: 81.15%; regions: 79.59%; functions: 73.35% | Lines: 84.41%; regions: 82.63%; functions: 75.96% (after S1) | Lines: +3.26 pp; regions: +3.04 pp; functions: +2.61 pp | [Coverage evidence](../2902-1347-add-tests-tracker-core/coverage-evidence.md) |

### Unit-Only Coverage

Expand All @@ -150,7 +150,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) |
| `torrust-tracker-core` | [#2902](../2902-1347-add-tests-tracker-core/ISSUE.md) | Lines: 79.32%; regions: 78.62%; functions: 71.98% | Lines: 84.41%; regions: 82.63%; functions: 75.96% (after S1) | Lines: +5.09 pp; regions: +4.01 pp; functions: +3.98 pp | [Coverage evidence](../2902-1347-add-tests-tracker-core/coverage-evidence.md) |

## Delivery Strategy

Expand Down Expand Up @@ -356,6 +356,7 @@ For each subissue implementation, the completion policy is:
- 2026-11-06 09:06 UTC - Claude Code - #2637 S5 (the `server.rs` lifecycle) pull request #2744 opened.
- 2026-11-06 10:31 UTC - Claude Code - #2637 S5 merged through #2744 (2026-11-06 10:26 UTC). S6 (rows 19-31, then the final tasks) started; its baseline is the S5 re-measurement (unit-only lines 96.71%, aggregate 97.71%).
- 2026-11-06 16:37 UTC - Claude Code - #2637 S6 (crate root, wiring and final tasks) finished: ledger rows 19-31 done, one test added (`authenticate` with a duplicated token value, found by the mutation run), manual scenarios M1-M5 passed. Final figures: unit-only lines 96.67% (170 unit tests), aggregate 97.67%; both "Latest" tables carry them.
- 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`.
- 2026-11-11 11:22 UTC - Claude Code - Created #2824 (`primitives`) as a subissue of this EPIC (the link under #1347 is set by the maintainer). Clean baseline at `eaae0e487`, filtered to the package source: unit-only = aggregate lines 60.56% (453/748), regions 67.94% (712/1,048), functions 57.23% (91/159), 47 unit tests, no integration tests. Delivered in slices S0-S4; the row stays `TODO` until the first implementation slice starts.
- 2026-11-11 14:32 UTC - Claude Code - #2824 S1 (PR #2834) re-measured `primitives` unit-only (= aggregate) at lines 62.73% (468 / 746), regions 70.29%, functions 59.49%, 49 unit tests. The figures include the changes merged to `develop` since the baseline (`Peer` lost `Ord`, the unused `AddAssign` was deleted), not only the slice. Both "Latest" tables carry them; the row is `IN_PROGRESS`.
- 2026-11-12 13:40 UTC - Claude Code - #2824 S2 (`peer.rs` tests, 31 added) re-measured `primitives` unit-only (= aggregate) at lines 84.86% (824 / 971), regions 88.93%, functions 82.90%, 80 unit tests; the figures include the added in-file test code. Both "Latest" tables carry them; the row stays `IN_PROGRESS`.
Expand All @@ -369,7 +370,9 @@ For each subissue implementation, the completion policy is:
- 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).
- 2026-11-18 09:10 UTC - Claude Code (Opus 5.5) - #2902 re-measured its baseline with stable Rust 1.100.0 and `cargo-llvm-cov 0.9.1` (Rust 1.99.1 with `cargo-llvm-cov 0.6.16` cannot measure after the Cargo 1.100.0 test-binary layout change): `tracker-core` unit-only lines 79.32% (was 80.31%), aggregate 81.15% (was 82.15%), container-gated 92.67% (was 93.80%), at the same commit. The other packages' rows keep their own toolchains.
- 2026-11-18 10:20 UTC - Claude Code (Claude Fable 5.2) - Added the "Publishing gate" paragraph under the `Subissues` table through PR torrust/torrust-tracker#2935 (issue #2583): by the maintainer's decision of 2026-11-18, a crate may be published under #2583 once its own package-testing subissues are closed, and EPIC #1669 no longer waits for this EPIC to close as a whole. No subissue was created or changed.
- 2026-11-21 13:24 UTC - Claude Code (Opus 5.5) - #2902 S1 (`statistics/`) closed, measured on its `develop` base `44ce734fe`: `tracker-core` unit-only lines 84.41% (79.45% on the base), aggregate 84.41% (81.27% on the base); the aggregate now equals unit-only, so the integration binary covers no line the unit tests miss. Row 14 is `IN_PROGRESS`.

## Acceptance Criteria

Expand Down Expand Up @@ -409,7 +412,6 @@ For each subissue implementation, the completion policy is:

- GitHub EPIC: https://github.com/torrust/torrust-tracker/issues/1347
- 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/`
- Coverage tooling: `cargo llvm-cov`
Expand Down
Loading
Loading