Repository navigation
docs(issues): [#2902] specify the tracker-core package tests - #2903
josecelano merged 22 commits into
Conversation
Add the sub-issue specification and the baseline coverage evidence for torrust-tracker-core (EPIC torrust#1347), and register the sub-issue in the EPIC. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 690cfb5f5d2dbd061fdfe47a9353be608544966a. Recomputed from the bytes at this head, against the merge base 5833cdae9; git merge-tree against develop 5833cdae9 writes the head's own tree, so the change merges with no conflict.
Process: a spec-only PR, governed by the create-issue skill (folder spec, template frontmatter, spec-first Related to, EPIC registration), the EPIC's subissue-spec-guidelines.md, and the open-pull-request skill for the title, body and keyword rules. The frontmatter follows docs/templates/ISSUE.md, branch: matches the PR head, and the EPIC registration follows the earlier primitives spec commit.
The change against its claim: the 62 files and 11,369 lines, 157 unit and 12 integration tests, the 51-row inventory (its columns sum to 4,099 / 5,104, 841 / 1,909 and 4,230 / 5,149; every percentage recomputes), the 26 files at or above 98%, the 728 driver lines, the five statistics/ files where aggregate exceeds unit-only, and the ledger (all 62 files once each, unit-only figures equal to the inventory) hold. The spec's findings F1, F3 and F4 cite the right code; the five ADRs and every related artifact exist.
Consistency: the relative links and the three anchors resolve; the EPIC row, both coverage-table rows and the progress-log figures agree with the evidence; the placeholder moves to row 15; no dictionary change, and no word new to the tree beyond a hex id and plain English.
Hygiene: one commit, docs(issues): [#2902] specify the tracker-core package tests, body matching the diff, author = committer, one attribution footer that no rule in the tree forbids; git diff --check clean; the commit-id check prints nothing; no closing keyword in the title, body or commit.
Findings: F1-F3 Minor, F4-F6 Nit, inline. None blocks: the spec is a plan the maintainer approves before any test is written, and each is repairable in a later slice.
Checked, no finding: the [#2902] title (the PR delivers slice S0 of that issue, as earlier spec PRs did); Related to #2902; the skip at mysql/mod.rs:204-207 and postgres/mod.rs:185-188; peer_key.rs:127; whitelist/repository/persisted.rs:29-54; the testing dev-dependency that gives the package's own tests the mock.
Checks
On the loop's compute node at this head, against the merge base 5833cdae9 (receipt server-gates-kranich-1055): the repository's pre-commit gate and lint roster exit 0 (221 s wall). The PR changes documentation only, so no package tests apply. F2 checked against the bytes at posting: packages/tracker-core/src holds 157 #[test]/#[tokio::test] attributes, and databases/driver/mysql/mod.rs:77 gates its test module on db-compatibility-tests. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5833cdae9.
|
ACK 690cfb5 — spec, inventory sums, ledger coverage of all 62 files, code references, links and EPIC registration recomputed at this head |
|
ACK 690cfb5 |
…urement The maintainer allowed the Docker image pull; with the MySQL and PostgreSQL driver suites running the aggregate is 93.80% of lines. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 2b0c3fe36b09917cc4e0850a476f934e34e46ddf. Recomputed from the bytes at this head, against the merge base 5833cdae9; git merge-tree against develop 5833cdae9 writes the head's own tree, so the change merges with no conflict.
Process: the same governing skills as the previous round (create-issue, the EPIC's subissue-spec-guidelines.md, open-pull-request), plus process-pr-review for the threads. One new commit, a fast-forward of 690cfb5f5.
The change against its claim: 2b0c3fe36 records T1b. It adds a fifth scope row (4,830 / 5,149 = 93.80%, 6,723 / 7,182 = 93.61%, 809 / 958 = 84.45%, on the aggregate's denominators) with matching prose in both files, marks T1b DONE and Q1 answered, appends a spec log entry and rewrites the EPIC one. The percentages recompute; mysql:8.0 and postgres:16 are the tests' default tags (mysql/mod.rs:115, postgres/mod.rs:102); the per-file driver ranges fit the 600-line gain. The maintainer's permission is not in the PR record, so it rests on the commit.
Consistency: links unchanged and resolving; both EPIC coverage tables keep the default-scope figures, as the spec's own recommendation says.
Hygiene: docs(issues): [#2902] record the container-gated coverage measurement, body matching the diff, author = committer, one attribution footer line (no rule in the tree on it); the description carries one attribution footer line too. git diff --check clean; the commit-id check prints nothing; no closing keyword in the title, body or commits.
Earlier findings: F1-F6 stand unchanged at this head (ISSUE.md:464; coverage-evidence.md:34 and ISSUE.md:80; coverage-evidence.md:143; ISSUE.md:227; EPIC.md:362; ISSUE.md:479). Their six threads have no reply, no resolution and no PR-REVIEW.md row.
Verdict: COMMENT, no ACK. No finding is Major, but the six threads above are unanswered and unrecorded (process-pr-review asks for a reply to every resolvable thread).
Findings: F7, F8 and F10 Minor, F9 Nit, inline; F10 concerns the description and is anchored on the Q1 row.
Checked, no finding: the fifth row counts the two driver tests inside its 157; the remaining Q1 mentions are the 10:57 spec log entry and objective 4; the previous approval was dismissed by the push itself.
Checks
On the loop's compute node at this head, against the merge base 5833cdae9 (receipt server-gates-kranich-1058): the repository's pre-commit gate and lint roster exit 0 (63 s wall). The PR changes documentation only, so no package tests apply. The thread state was checked on the forge at posting: the six round-1 threads (F1-F6, opened 12:08:23Z) are all unresolved with no reply, and this head has no docs/pr-reviews/pr-2903-review/ record. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5833cdae9.
|
ACK 2b0c3fe |
…t the feature The MySQL and PostgreSQL driver tests sit in modules gated on the db-compatibility-tests feature, so a plain --lib run compiles 155 tests, as its coverage log shows. Review finding F2 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
3 open issues
What changed in this PR
Adds a new EPIC subissue specification for improving torrust-tracker-core test coverage, including baseline coverage evidence and EPIC tracking updates.
Changes:
- Add a detailed subissue spec for #2902, including scope, slicing plan, ledger, and verification criteria.
- Add baseline
cargo-llvm-covcoverage evidence (multiple scopes + per-file inventory). - Register #2902 in EPIC #1347 status table and coverage tracking tables.
| File | Description |
|---|---|
| docs/issues/open/2902-1347-add-tests-tracker-core/coverage-evidence.md | New baseline coverage evidence and uncovered-line inventory for tracker-core. |
| docs/issues/open/2902-1347-add-tests-tracker-core/ISSUE.md | New spec/task document defining goal, plan, slices, ledger, and acceptance criteria for #2902. |
| docs/issues/open/1347-overhaul-packages-testing/EPIC.md | Adds #2902 to the EPIC’s tracking tables and updates timestamps/log entries. |
Review effort: Lite
…file column The fifth coverage scope had no reproducible command and no per-file figures, and the reading note still said the figures above excluded the drivers. Review finding F8 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…vered lines Several uncovered-line groups counted test-module lines as production regions and one production region as a test assertion. Each group now lists production lines first and test-module lines after a slash, and the ledger hypotheses follow. The sweep also reclassified statistics/mod.rs:49 (usage statistics disabled), peer_key.rs:64 and torrent/manager.rs:66 as production regions. Review finding F3 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nges Review finding F4 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… table The ranking cited a git-ignored assessment no reader can open; it now gives the unit-only figures of the EPIC coverage table. Review finding F6 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…end T1b The T1b commit rewrote the 10:57 entry in place; its original text is restored and a dated entry records T1b. The blank line that split the progress log into a loose list is removed. Review findings F5 and F9 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the responsibility and ownership map, the normal and failure-path lifetime invariants, the absolute deadlines and the design-review checkpoint (T2b) that create-issue requires for listener and temporary database tests. Record the temporary SQLite file leak of the existing tests as finding F5 with question Q7. Review finding F1 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rst review Append a correction: the first review of torrust#2903 arrived at 12:08:23 UTC, before the 12:16 entry said no review had arrived. Review finding F7 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing F1 The F1 evidence claimed a per-test time of 0.00 s that no log shows; it now cites the whole-run times of both logs. Found by the sweep for review finding F7 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
F10 (review 5938377458, thread on |
…2903 Audit record for the two review rounds of torrust#2903 (findings F1-F10): every finding fixed, replied to and resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed lines The slash between production and test-module lines read like a fraction and did not say which file a set belonged to in the multi-file rows. Each lines cell now labels its production and test-module lines, and the multi-file rows are split per file. Copilot review comments on torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 289cf16da04557cf9a6d499de2d7adab3986a898. Recomputed from the bytes at this head, against the merge base 5833cdae9; git merge-tree against develop 5833cdae9 writes the head's own tree, so the change merges with no conflict.
Process: thirteen commits on 2b0c3fe36: nine fixes, two audit commits (2c3d8ed11, 289cf16da) and two fixes for the automated review (8c64552f1, 8f42a03a6). process-pr-review governs the replies and the record; create-issue and open-pull-request govern the bytes. This review numbers its findings from F14, because the record uses F11-F13 for the automated review.
The change against its claim: each commit does what its subject says. The container column sums to 4,830 / 5,149 (93.80%). The restored 10:57 EPIC entry is byte-identical to the one at 690cfb5f5. Every production: and test module: label agrees with its file's #[cfg(test)] line, and no / between line sets remains. Both full ids resolve.
Threads and record: all thirteen threads (F1-F10 from the two earlier reviews, F11-F13 from the automated one) have a reply, a row and a resolution. The duplicate F13 is RE_RAISE_OF:F12, NO_ACTION/SUPERSEDED, and is answered with the prescribed Superseded by F12: reply. The validator's logic, run offline against the captured comments and the branch's commit subjects, reports 13 rows, 4 log entries and no failure.
Hygiene: thirteen commits with Conventional subjects, bodies matching their diffs, author = committer, one attribution footer line each (no rule in the tree on it); the description carries one attribution footer line too. git diff --check is clean, and there is no closing keyword in the title, body or commits. The commit-id check prints five tokens (F14).
Verdict: APPROVE. Every thread has a reply, a row and a resolution, the validator passes, and nothing blocks. F14 and F16 are Minor and F15 is a Nit, inline; each can be repaired later, and none makes the merged spec or evidence wrong.
Checked, no finding: the automated review body is a summary with no request, so it needs no row; the log entries are in order; the 155 count and the ownership map, as before.
Checks
On the loop's compute node at this head, against the merge base 5833cdae9 (receipt server-gates-kranich-1067): the repository's pre-commit gate and lint roster exit 0 (103 s wall), and the audit validator passes the record (13 rows, 4 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked on the forge at posting: no review thread of this pull request is unresolved, and review 5938522893 (the automated review) has commit_id 690cfb5f5, as F16 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5833cdae9.
|
ACK 289cf16 — every thread's reply, audit row and resolution, the validator logic, the inventory sums and labels, and the trial merge recomputed at this head |
…cells error.rs and statistics/repository.rs have test modules but their cells had no production label; test_helpers.rs is test support. Review finding F15 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ubject The evidence cited a branch commit id that a rebase can rewrite; it now names the commit by subject and the unchanged develop source by its full id. Review finding F14 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rrust#2903 Add F14-F16 from da2ce7's review 5939100172, cite heads and commits by subject in the round descriptions and details, and correct the description of Copilot's review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t#2903 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of torrust#2903 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 10aab479029e954f1ddb1b1c1c7b9fbbbf114800. Recomputed from the bytes at this head, against the merge base 5833cdae9; git merge-tree against develop 5833cdae9 writes the head's own tree, so the change merges with no conflict.
Process: four commits on 289cf16da. 798d53f74 and 7c835ddff fix F15 and F14, 9d53ef493 records the fourth round, and 10aab4790 fills in its reply URLs. process-pr-review governs the record; open-pull-request governs the commit-id rule.
The change against its claim: every cell of a file with a test module is labeled. The evidence and the record name commits by subject. Line 47 now describes the automated review correctly, so F16 is fixed. The remaining branch ids sit only in append-only log entries and in the F14 entry that quotes them, which the record argues is unavoidable under its own rules; the commit-id check prints 2b0c3fe36, 37d9b1218, 690cfb5f5 and 8f42a03a6.
Threads and record: all sixteen threads opened before the record's last commit (13:25:46 UTC) have a reply, a row and a resolution. Rows F14-F16 cite r4600182264, r4600182958 and r4600183671, each on its own thread. The validator's logic, run offline against the captured comments and the branch's commit subjects, reports 16 rows, 6 log entries and no failure. A later automated review (13:30:51 UTC, of 9d53ef493) labels its one comment [Minor][F17] and asks for the reply URLs that this head already fills in. Its thread is still unanswered (F19), but because it was opened after the record's last commit it does not hold the verdict.
Hygiene: four commits with Conventional subjects, bodies matching their diffs, author = committer, one attribution footer line each (no rule in the tree on it); the description carries one attribution footer line too. git diff --check is clean, and there is no closing keyword in the title, body or commits.
Verdict: APPROVE. Every earlier thread has a reply, a row and a resolution, the validator passes, and nothing blocks.
Findings: F18 and F19 are Nits, inline. This review skips F17 because the automated comment already uses that id.
Checks
On the loop's compute node at this head, against the merge base 5833cdae9 (receipt server-gates-kranich-1073): the repository's pre-commit gate and lint roster exit 0 (94 s wall), and the audit validator passes the record (16 rows, 6 log entries, 0 failures). The PR changes documentation only, so no package tests apply. The audit rows F14-F16 were checked against the bytes at posting: 10aab4790 replaces their three PENDING_REPLY placeholders with reply URLs. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: in_progress/pending". At posting, develop is 5833cdae9.
|
ACK 10aab47 — every earlier thread's reply, audit row and resolution, the validator logic, the commit-id check and the trial merge recomputed at this head |
…ce check The check compared develop with HEAD, which holds only while HEAD is on this branch; it now names the S0 commit by subject. Review finding F18 of torrust#2903. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ACK 0a46512 |
…rust#2903 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 0eb2ac6006acbe3fc7c1255865f557d015d711b0. Recomputed from the bytes at this head, against the merge base 5833cdae9; git merge-tree against develop 5833cdae9 writes the head's own tree, so the change merges with no conflict.
Process: three commits on 10aab4790. 7f716f6cf records the automated F17, 0a46512af fixes F18 in coverage-evidence.md, and 0eb2ac600 records the previous review's F18 and F19 and updates F8's verification. process-pr-review governs the record.
The change against its claim: F17's row gives the right review, head, time, severity and reply. F18 replaces the HEAD-relative check with the S0 commit, found by its subject; at this head that search matches only the S0 commit, and the packages/ diff prints nothing. F18's row cites the fixing commit and the reply on its own thread. F19 is RE_RAISE_OF:F17, NO_ACTION/SUPERSEDED, with the prescribed Superseded by F17: reply. F8's verification no longer uses HEAD. No other byte moved, and the commit-id check still prints only the four ids settled under F14.
Threads and record: all nineteen threads have a reply, a row and a resolution, and no review was posted after the record's last commit (13:42:13 UTC). The validator's logic, run offline against the captured comments and the branch's commit subjects, reports 19 rows, 8 log entries and no failure.
Hygiene: three commits with Conventional subjects, bodies matching their diffs, author = committer, one attribution footer line each (no rule in the tree on it); the description carries one attribution footer line too. git diff --check is clean, and there is no closing keyword in the title, body or commits.
Verdict: APPROVE. Every thread has a reply, a row and a resolution, the validator passes, and nothing blocks.
Findings: F20 Nit, inline.
Checks
On the loop's compute node at this head, against the merge base 5833cdae9 (receipt server-gates-kranich-1080): the repository's pre-commit gate and lint roster exit 0 (50 s wall), and the audit validator passes the record (19 rows, 8 log entries, 0 failures). The PR changes documentation only, so no package tests apply. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5833cdae9.
|
ACK 0eb2ac6 — all nineteen threads' replies, audit rows and resolutions, the validator logic, the unchanged-source check and the trial merge recomputed at this head |
|
ACK 0eb2ac6 |
The merge of #2903 has the same subject as the S0 commit, so the subject search found the merge commit first. Add --no-merges to the lookup in coverage-evidence.md and in the F8 and F18 verifications of the #2903 review audit (review finding F20 of #2903). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5186511 docs(pr-reviews): [#2902] record the fourth review round of #2988 (josecelano-bot) 2da9871 docs(pr-reviews): [#2902] map the F23 severity from the Copilot overview (josecelano-bot) 71c0a0f docs(pr-reviews): [#2902] record the third review round of #2988 (josecelano-bot) 31342ce chore(tracker-core): [#2902] build rstest without its default features (josecelano-bot) 97e9699 test(tracker-core): [#2902] expect one torrent read in the global downloads failure test (josecelano-bot) d274972 docs(pr-reviews): [#2902] record the second review round of #2988 (josecelano-bot) 5ccaef5 docs(issues): [#2902] point the table test designs at their rstest cases (josecelano-bot) a05b5a0 docs(pr-reviews): [#2902] record the first review round of #2988 (josecelano-bot) f9c1ea3 docs(issues): [#2902] record the review changes of the statistics table tests (josecelano-bot) 0a746a5 docs(issues): [#2902] reconcile the listener and repository plans with their tests (josecelano-bot) f788cb0 docs(issues): [#2902] return a stray #2637 entry to the EPIC progress log (josecelano-bot) 7dd2f18 docs(issues): [#2902] move the S1 close entry into the EPIC progress log (josecelano-bot) 18fdd89 test(tracker-core): [#2902] name the global downloads failure test after the read it fails (josecelano-bot) 1b6b350 test(tracker-core): [#2902] check that no torrent row is persisted for an event other than a completion (josecelano-bot) 7c64de5 test(tracker-core): [#2902] turn the statistics table tests into rstest cases (josecelano-bot) 09b91fe docs(issues): [#2902] record the S1 pull request and close the F20 follow-up (josecelano-bot) f9a3702 docs(issues): [#2902] close slice S1 with its coverage measurement (josecelano-bot) adf964a docs(issues): [#2902] record the results of the statistics module tests (josecelano-bot) cf80a03 test(tracker-core): [#2902] pin which downloads totals each statistics setting registers (josecelano-bot) 95499fa docs(issues): [#2902] add the plan for the statistics module tests (josecelano-bot) 74fdef8 docs(issues): [#2902] record the results of the persisted downloads repository tests (josecelano-bot) f4bf930 test(tracker-core): [#2902] pin that the persisted downloads are incremented, not overwritten (josecelano-bot) 8b1f8fa docs(issues): [#2902] add the plan for the persisted downloads repository tests (josecelano-bot) 75a4439 docs(issues): [#2902] record the results of the statistics event handler tests (josecelano-bot) aa1d631 test(tracker-core): [#2902] cover every event kind and the global save failure of the statistics handlers (josecelano-bot) 572dd85 docs(issues): [#2902] add the plan for the statistics event handler tests (josecelano-bot) d480587 docs(issues): [#2902] record the results of the statistics listener tests (josecelano-bot) 00d79fd test(tracker-core): [#2902] cover the public statistics listener entry points (josecelano-bot) d3cba09 docs(issues): [#2902] re-measure the coverage with Rust 1.100.0 (josecelano-bot) 20a09c6 docs(issues): [#2902] add the plan for the statistics event listener tests (josecelano-bot) 8680f37 docs(issues): [#2902] record the results of the persisted statistics loader tests (josecelano-bot) 9a63635 test(tracker-core): [#2902] cover the persisted statistics loader (josecelano-bot) 98676ab docs(issues): [#2902] add the plan for the persisted statistics loader tests (josecelano-bot) 7d9d91b docs(issues): [#2902] record the no-change decision for the statistics metrics (josecelano-bot) f1f4c95 docs(issues): [#2902] record the merged temporary-database fix in the S1 plans (josecelano-bot) f3e70fa test(tracker-core): [#2902] cover the statistics repository writes and readers (josecelano-bot) 0a06dd3 docs(issues): [#2902] record the maintainer's answers to Q2-Q7 and D1 (josecelano-bot) 132bf56 docs(issues): [#2902] add the S1 plan guidance and the statistics repository plan (josecelano-bot) e7fe4bd docs(pr-reviews): [#2902] record the post-merge finding F20 of #2903 (josecelano-bot) c4f9720 docs(issues): [#2902] skip merge commits in the S0 commit lookup (josecelano-bot) Pull request description: Related to #2902 Slice S1 of #2902: focused unit tests for `packages/tracker-core/src/statistics/`, the one area of `tracker-core` that only the integration binary reached. Test code, documentation and one dev-dependency (`rstest` 0.28.0, already in the lock file): no production line changes. Each file went through the spec's per-file workflow: a plan approved by the maintainer, the tests, hand-made named mutations, and a completed-file review. The plans and their results are in `docs/issues/open/2902-1347-add-tests-tracker-core/test-refactor-plans/`. | Ledger row | File | Decision | | --- | --- | --- | | 1 | `statistics/repository.rs` | 10 tests: counter and gauge writes, readers, and the refusal of a write on a name of the other metric type (finding F6: the gauge methods are public but unused; tested while they exist) | | 2 | `statistics/metrics.rs` | No change: pure delegation, covered by the repository tests, which kill all six mutants | | 3 | `statistics/persisted/mod.rs` | 5 tests of `load_persisted_metrics` with a mocked store, including that the load is not atomic | | 4 | `statistics/event/listener.rs` | 4 tests of the public entry points over a real event bus: send, cancel, join within a 5-second deadline (the listener half of the design checkpoint T2b) | | 5 | `statistics/event/handler.rs` | Two `rstest` tables over every event that is not a completed download (replacing two `PeerAdded`-only tests) and a test where the global downloads cannot be increased | | 6 | `statistics/persisted/downloads.rs` | 2 tests: stored totals are incremented, not overwritten (a mutant that survived full coverage) | | 7 | `statistics/mod.rs`, `statistics/event/mod.rs` | One `rstest` table of which totals each statistics setting registers; `event/mod.rs` declares modules only | Coverage of `tracker-core` (stable Rust 1.100.0, `cargo-llvm-cov 0.9.1`, against the `develop` base `44ce734fe`): unit-only lines 79.45% to 84.41% (180 unit tests at the measured commit, 157 before), aggregate 81.27% to 84.41%. The aggregate now equals the unit-only figure line for line, so the integration binary no longer reaches any line the unit tests miss. Every `statistics/` file runs all its lines; the regions left are `tracing` log-level checks, one unreachable error arm and test code. Details: `coverage-evidence.md`, section "Slice Measurements". Also in this PR: - Every coverage figure of #2902 was measured again with Rust 1.100.0 and `cargo-llvm-cov 0.9.1`, at the maintainer's request: after `stable` moved from Rust 1.99.1, `cargo-llvm-cov 0.6.16` reported 0% for every file because it read test binaries from Cargo's old `target/debug/deps/` layout. The baseline is now 79.32% unit-only lines (80.31% with the old toolchain). The append-only logs keep the old figures. - The fix of the post-merge review finding F20 of #2903 (the S0 commit lookup skips merge commits). - The EPIC #1347 rows of `tracker-core` hold the latest values; row 14 is in progress. - Review round 1 (`docs/pr-reviews/pr-2988-review/PR-REVIEW.md`): the three loop tables became 14 named `rstest` cases, which adds `rstest` as a dev-dependency of the package; the persistence cases expect no torrent row for any info-hash; a test name and plan text were corrected; the S1 log entry moved into the EPIC Progress Log, with a stray #2637 entry. Validation at the head after review round 1: `cargo test -p torrust-tracker-core --all-features` (191 unit test cases, 15 integration and 18 other tests), `cargo clippy -p torrust-tracker-core --all-targets --all-features`, `cargo +nightly fmt --all -- --check`, the pre-commit gate on every commit, and the repository's pre-push checks on push. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: josecelano: ACK 5186511 da2ce7: ACK 5186511 — the two audit-only commits since the round-3 head read against their messages, F25 confirmed fixed, and all twelve threads replied, recorded and resolved with the validator's logic passing at this head Tree-SHA512: 9da02a5ae69007d3640316f491c38f96600c2e65af425fb3c63fbd6191c17d44fb851e2cf268f61b636b3d099f021176cd73b74f451610a7051b0cf8e2cfec23


Related to #2902
Spec-only pull request (slice S0) for the
tracker-corepackage-testing sub-issue of EPIC #1347. It adds the specificationdocs/issues/open/2902-1347-add-tests-tracker-core/ISSUE.md, the baselinecoverage-evidence.md, and registers the sub-issue (row 14) and its baseline in the EPIC. No code or test changes; implementation starts only after this spec is reviewed and merged.Baseline at
develop5833cdae9(cargo-llvm-cov 0.6.16, stable Rust 1.99.1, filtered topackages/tracker-core/src/): unit-only (--all-features --lib) lines 80.31%, regions 80.20%, functions 72.01%; integration-only lines 44.05%; aggregate lines 82.15%. The MySQL and PostgreSQL driver suites skip themselves without Docker and two environment variables, so those 10 files count as 0-4% covered in these default runs. The container-gated scope was measured afterwards with the maintainer's permission (T1b, imagesmysql:8.0andpostgres:16): with both suites running the aggregate is lines 93.80%; its command and per-file column are incoverage-evidence.md.The spec proposes six slices (S0 spec, S1 statistics, S2 SQLite persistence boundary, S3 MySQL/PostgreSQL drivers, S4 authentication and whitelist, S5 remaining modules and final tasks), the ownership, cleanup and deadline rules for listener and temporary-database tests with a design-review checkpoint (T2b), five findings (F1-F5, none fixed here), and open design questions Q2-Q7 with recommendations for the maintainer (Q1, the Docker image pull, is answered).
The review rounds are recorded in
docs/pr-reviews/pr-2903-review/PR-REVIEW.md.🤖 Generated with Claude Code