Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fcb3c9c
docs(issues): [#2824] add the shared test plan guidance for the file …
josecelano-bot Nov 12, 2026
7cb507f
test(primitives): [#2824] test the peer module
josecelano-bot Nov 12, 2026
9c69c91
docs(issues): [#2824] record the S2 coverage and the F6 finding
josecelano-bot Nov 12, 2026
ab660dd
test(primitives): [#2824] cover the ReadInfo role predicates for ever…
josecelano-bot Nov 12, 2026
63a82e0
docs(issues): [#2824] fix the S2 records after review round 1
josecelano-bot Nov 12, 2026
1de3397
docs(issues): [#2824] re-check the mutation attributions of the peer.…
josecelano-bot Nov 12, 2026
dab8afd
docs(pr-reviews): [#2824] record the review of PR 2841 round 1
josecelano-bot Nov 12, 2026
547466b
docs(pr-reviews): [#2824] correct a log stamp of the PR 2841 audit
josecelano-bot Nov 12, 2026
33a3a0f
docs(issues): [#2824] correct the S2 record statuses, mutation cells …
josecelano-bot Nov 12, 2026
ae83bfe
docs(pr-reviews): [#2824] correct the PR 2841 audit facts after round 2
josecelano-bot Nov 12, 2026
43f76bf
test(primitives): [#2824] use nonzero transfer totals in the peer mut…
josecelano-bot Nov 12, 2026
70f1f05
docs(pr-reviews): [#2824] record round 2 of the PR 2841 review
josecelano-bot Nov 12, 2026
2b8dc59
docs(issues): [#2824] point the F6 records at #2850 and fix the S2 st…
josecelano-bot Nov 12, 2026
fc5458d
test(primitives): [#2824] point the negative-left test comment at #2850
josecelano-bot Nov 12, 2026
855b234
docs(pr-reviews): [#2824] record round 3 of the PR 2841 review
josecelano-bot Nov 12, 2026
d154907
test(primitives): [#2824] assert that Stopped and None peers are not …
josecelano-bot Nov 12, 2026
40631b1
docs(pr-reviews): [#2824] record Copilot's round 3 review of PR 2841
josecelano-bot Nov 12, 2026
fc15a1c
docs(issues): [#2824] re-measure the S2 coverage and fix the peer.md …
josecelano-bot Nov 12, 2026
cc2f2e2
docs(pr-reviews): [#2824] record round 4 of the PR 2841 review
josecelano-bot Nov 12, 2026
ade394d
docs(pr-reviews): [#2824] fix two severities of the PR 2841 audit
josecelano-bot Nov 12, 2026
436187b
docs(pr-reviews): [#2824] record round 5 of the PR 2841 review
josecelano-bot Nov 12, 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
2 changes: 2 additions & 0 deletions Cargo.lock

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

9 changes: 6 additions & 3 deletions docs/issues/open/1347-overhaul-packages-testing/EPIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`.
| 8 | #2301 - Review package coverage rollout | `docs/issues/open/2301-1347-review-package-coverage-rollout/ISSUE.md` | TODO | After the EPIC completes, review real rollout evidence before retaining, revising, or proposing a required coverage check. |
| 9 | #2361 - Keep the report-only package coverage summary from failing on a discovery failure | `docs/issues/open/2361-1347-package-coverage-summary-discovery-failure/ISSUE.md` | TODO | Bug follow-up of #2347 (`review-finding:pr-2293-f1`): the #2222 summary check goes red with a JSON parse error when discovery fails. |
| 10 | #2637 - Add tests to the axum-rest-api-server package | `docs/issues/closed/2637-1347-add-tests-axum-rest-api-server/ISSUE.md` | DONE | S0 (spec and T1 baseline) merged through #2638; S1 (authentication and shared responses) merged through #2667; S2 (routes) merged through #2687; S3 (auth-key and whitelist contexts) merged through #2702; S4 (torrent and stats contexts) merged through #2718; S5 (server lifecycle) merged through #2744; S6 (crate root, wiring and final tasks) merged through #2772; the issue is closed. Replaces the former draft that was misfiled under #1349. |
| 11 | #2824 - Add tests to the primitives package | `docs/issues/open/2824-1347-add-tests-primitives/ISSUE.md` | IN_PROGRESS | Spec-only PR carries the specification and the T1 baseline and inventory; S0 (the spec, #2828) is merged and S1 (the `PeerRole` JSON casing fix, #2834) is in review; S2-S4 follow. Findings F1 (fixed through #2811), F3 (#2804) and the `AddAssign` and `peer::Id::new` follow-ups are handed off to their own issues. |
| 11 | #2824 - Add tests to the primitives package | `docs/issues/open/2824-1347-add-tests-primitives/ISSUE.md` | IN_PROGRESS | Spec-only PR carries the specification and the T1 baseline and inventory; S0 (the spec, #2828) is merged and S1 (the `PeerRole` JSON casing fix, #2834) is merged and S2 (the `peer.rs` tests, #2841) is in review; S3-S4 follow. Findings F1 (fixed through #2811), F3 (#2804) and the `AddAssign` and `peer::Id::new` follow-ups are handed off to their own issues. |
| 12 | 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 @@ -121,7 +121,7 @@ level or determine whether unit coverage is adequate.
| `torrust-tracker-udp-core` | [#1348](../../closed/1348-1347-add-tests-udp-core/ISSUE.md) | Lines: 72.49%; regions: 78.56%; functions: 71.27% | Lines: 98.04%; regions: 98.15%; functions: 97.61% | Lines: +25.55 pp; regions: +19.58 pp; functions: +26.34 pp | [Coverage evidence](../../closed/1348-1347-add-tests-udp-core/coverage-evidence.md) |
| `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](../2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 62.73%; regions: 70.29%; functions: 59.49% | Lines: +2.17 pp; regions: +2.35 pp; functions: +2.26 pp | [Coverage evidence](../2824-1347-add-tests-primitives/coverage-evidence.md) |
| `torrust-tracker-primitives` | [#2824](../2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 85.23%; regions: 89.31%; functions: 82.99% | Lines: +24.67 pp; regions: +21.37 pp; functions: +25.76 pp | [Coverage evidence](../2824-1347-add-tests-primitives/coverage-evidence.md) |

### Unit-Only Coverage

Expand All @@ -136,7 +136,7 @@ weak unit-only result with aggregate, integration, example, or end-to-end covera
| `torrust-tracker-udp-core` | [#1348](../../closed/1348-1347-add-tests-udp-core/ISSUE.md) | Lines: 72.49%; regions: 78.56%; functions: 71.27% | Lines: 98.04%; regions: 98.15%; functions: 97.61% | Lines: +25.55 pp; regions: +19.58 pp; functions: +26.34 pp | [Coverage evidence](../../closed/1348-1347-add-tests-udp-core/coverage-evidence.md) |
| `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](../2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 62.73%; regions: 70.29%; functions: 59.49% | Lines: +2.17 pp; regions: +2.35 pp; functions: +2.26 pp | [Coverage evidence](../2824-1347-add-tests-primitives/coverage-evidence.md) |
| `torrust-tracker-primitives` | [#2824](../2824-1347-add-tests-primitives/ISSUE.md) | Lines: 60.56%; regions: 67.94%; functions: 57.23% | Lines: 85.23%; regions: 89.31%; functions: 82.99% | Lines: +24.67 pp; regions: +21.37 pp; functions: +25.76 pp | [Coverage evidence](../2824-1347-add-tests-primitives/coverage-evidence.md) |

## Delivery Strategy

Expand Down Expand Up @@ -344,6 +344,9 @@ For each subissue implementation, the completion policy is:
- 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-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`.
- 2026-11-12 14:10 UTC - Claude Code - #2824 S2 review round 1 of #2841: Copilot asked for trait-qualified `ReadInfo` role cases (positive, zero, negative `left`, and the stopped event, on `Peer` and `Arc<Peer>`); one test was added, so `primitives` unit-only (= aggregate) is lines 85.20% (846 / 993), regions 89.28%, functions 82.99%, 81 unit tests. Both "Latest" tables carry the new values.
- 2026-11-12 18:24 UTC - Claude Code - #2824 S2 review round 3 of #2841: two assertions were added to the `is_completed` test, so `primitives` unit-only (= aggregate) is lines 85.23% (848 / 995), regions 89.31%, functions 82.99%, 81 unit tests. Both "Latest" tables carry the new values.

## Acceptance Criteria

Expand Down
Loading
Loading