Repository navigation
docs(issues): [#2394] audit shared test resources - #2891
josecelano merged 12 commits into
Conversation
Add inventory.md with the repeatable search commands per resource class (T1) and 37 findings with one disposition each (T2 to T5): 29 isolated, 1 deliberate exception, 5 covered and 2 new problems. Record the maintainer's decisions on the three judgement calls and mark T1 to T5 done. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…esource problems D1: two concurrent runs of the fixed-port metrics test collide on 17091-17094 (reproduced in 20 of 20 paired runs). D2: test helpers leave temporary SQLite, TOML and PEM files behind. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 21e3a706aefc64e2af441880dfa3c21580409990. Recomputed from the bytes at this head, against the merge base b009b6425; git merge-tree against develop 9e463cb0c merges without conflict, and develop's skill-path edits to the #2394 spec combine with this branch's task and log edits.
Process: create-issue governs the two subissue drafts and the issue-local inventory; open-pull-request governs commits and description. Draft folders carry the EPIC prefix, frontmatter has epic: 2392 and github-issue: null, the parent is named below each title, and the description links with "Related to".
The change against its claim: inventory.md holds 23 search commands (all run here without error) and 37 findings whose class counts recompute to 29/1/5/2. Its line references resolve to the cited code (fixed ports at tests/metrics/fixed_ports.rs:46-58, image tags at container.yaml:128 and testing.yaml:294, the runner defaults, tls.rs:72, the guarded variables at src/bootstrap/config.rs:60-145). The spec marks T1-T5 done and T6 in progress, as the commits say. The drafts' code claims (SQLite and TOML files never deleted, PEM files only on success, the loopback helper's Linux-only rule) match the bytes; the /tmp counts and the 20-of-20 reproduction are measurements this review cannot repeat.
Consistency: 108 backticked paths checked, one P8 expansion missing (F4); the in-page anchor resolves; nothing moves; no dictionary words added; the PR-branch commit-id check prints nothing.
Hygiene: d690f2c8b and 21e3a706a are Conventional docs(issues): [#2394] ... commits whose bodies match their diffs; author equals committer; each carries one attribution footer, which no rule in the tree forbids; git diff --check is clean; no closing keyword in title, description or commits.
Findings: F1-F3 Minor, F4-F6 Nit, inline; none blocks.
Checked, no finding: dispositions against EPIC rules 1 and 6 and the 2026-11-14 decisions; the #2393 counts (25 rows, 150 of 150); G1 (only the locked test module reaches initialize_configuration); Compose host port 0 and per-run project names; examples are built, never executed, by tests.
Checks
On the loop's compute node at this head, against the merge base b009b6425 (receipt server-gates-kranich-1010): the repository's pre-commit gate and lint roster exit 0 (235 s wall on a loaded node). The PR changes documentation only, so no package tests apply; it has no audit record of its own. F1 checked against the bytes at posting: the Containerfile test stage runs cargo nextest run over the workspace (line 231) and the release stage copies from it (line 287), while the fixed-port draft's line 57 says CI runs the Rust tests only on GitHub-hosted runners. 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 166cd8667.
|
ACK 21e3a70 — the inventory's 37 findings, their line references and its 23 search commands recomputed against the bytes at this head |
There was a problem hiding this comment.
🟡 Changes recommended
The audit misses cleanup after partial Docker Compose startup failures, while follow-up plans lack required test-design review checkpoints and reproducible baseline evidence.
4 open issues
What changed in this PR
This documentation-only PR advances #2394 under the Test Isolation EPIC (#2392), documenting shared test resources and planning follow-up work without changing runtime behavior.
Changes:
- Adds repeatable audit searches and 37 findings across five resource classes.
- Drafts fixes for concurrent fixed-port metrics tests and leaked temporary files.
- Marks audit tasks T1–T5 complete and records maintainer decisions; T6 remains in progress.
| File | Description |
|---|---|
docs/issues/open/2394-2392-audit-shared-test-resources/ISSUE.md |
Updates task status and records audit outcomes. |
docs/issues/open/2394-2392-audit-shared-test-resources/inventory.md |
Documents search methods, resource classifications, and follow-up ownership. |
docs/issues/drafts/2392-remove-leaked-test-temporary-files/ISSUE.md |
Plans temporary-file ownership, cleanup, and verification. |
docs/issues/drafts/2392-fixed-port-metrics-test-concurrent-runs/ISSUE.md |
Plans isolation of fixed-port metrics tests across concurrent runs. |
Review effort: Balanced
…ventory Record that the Containerfile test stage runs the Rust suite on the self-hosted runner in each build step's own network namespace (F1), correct the P8 port enumeration (F4), add the new develop test to P5, add C9 for the Compose stack a failed `up` leaves behind (new problem, draft D3), and set the spec status to in-progress (F6). Totals: 38 findings, 3 new problems. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… their reproductions Point the drafts at the moved fix-bug and create-issue skills (F2), add the test-development loop, design-review checkpoints, deadline statements, evidence policy and retrospective conditions (F3, Copilot), correct the cleanup wording (F5), and record the paired-run and fresh-TMPDIR reproductions in issue-local evidence files (Copilot). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fter a failed start D3: `DockerCompose::up` creates its teardown guard only after a successful start, so a failed `docker compose up` leaves the run's containers, network and volumes on the daemon. Found by Copilot in the review of PR 2891. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 2938b08db5350b6c6ce8005f50d57cd12ac625f2. Recomputed from the bytes at this head, against the merge base 0373f05f8; git merge-tree against develop 9b3728490 merges without conflict, and develop's 20 commits since the merge base touch none of the PR's seven files.
Process: create-issue governs the three drafts, their evidence and the inventory; open-pull-request the commits and description; process-pr-review the replies and resolutions.
The change against its claim: abc52e336 fixes F1 (the self-hosted image build runs the suite, no --network=host anywhere, docker driver there), F4 and F6, narrows C5 and adds C9; the rows recompute to 38 (12 P, 9 C, 7 F, 7 G, 3 X) and 29/1/5/3, and the new P5 test holds 127.0.0.1:0. c27bd08f6 fixes F2, F3 and F5 and adds two evidence files whose tallies agree (11 plus 9 failed pairs; 301 plus 1 files). 2938b08db's code claims hold: DockerCompose::up returns its down --volumes guard only on success (compose.rs:73-94), services_setup.rs:47 propagates the error, keep() runs only after a start, the prune script removes only stopped containers, and the plain runner's drop removes its container. The merge da4d1a3cb resolves nothing by hand.
Round 1: F1 to F6 are fixed at this head.
Forge record: all ten threads (six from round 1, four from the other reviewer) carry one author reply and are resolved; the round-1 approval was dismissed on push. The head has no audit record (F8).
Hygiene: the three new commits are Conventional docs(issues): [#2394] ... commits whose bodies match their diffs; author equals committer; each carries one attribution footer, which no rule in the tree forbids; git diff --check is clean; no closing keyword in title, description or commits; the commit-id check prints da4d1a3cb (F7); 130 path checks, the only miss a historical checkpoint outside the diff.
Findings: F7 and F8 Minor, F9 Nit, inline; none blocks the bytes. COMMENT, no ACK, until the audit record lands.
Checked, no finding: frontmatter of the new draft and evidence files; skill paths now name the moved skills; the description's totals and drafts match the tree; spelling candidates are covered by the file's own ignore line.
Checks
On the loop's compute node at this head, against the merge base 0373f05f8 (receipt server-gates-kranich-1031): the repository's pre-commit gate and lint roster exit 0 (127 s wall). The PR changes documentation only, so no package tests apply. F7 checked against the bytes at posting: line 14 of inventory.md says the searches were rerun "on the merge of develop at da4d1a3cb", the branch's merge commit. F8 checked against the tree at posting: no docs/pr-reviews/pr-2891-review/ exists at this head. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9b3728490.
…f the branch merge in the inventory Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mplate's shape Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ons of PR 2891 Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 948578db13ecd1168b3d61a16b1e851b1e146b1b. Recomputed from the bytes at this head, against the merge base 0373f05f8; git merge-tree against develop 9b3728490 merges without conflict, and develop has touched none of the PR's eight files since the merge base.
Process: process-pr-review governs the new audit record, create-issue the evidence files, open-pull-request the commits.
The change against its claim: a5312ef18 replaces the branch merge id with 0373f05f8 (round-2 F7 fixed). 485adf735 gives both evidence files the template's sections and keeps every command and figure (F9 fixed). a8f1fb90e and 948578db1 add the audit record (F8 fixed): 13 rows, one per thread; each row's source comment, review id, severity bracket and reply match the capture, and every resolution reference is a commit subject of the PR. The validator's own code, run offline with the captured comments and the local commit list, reports 13 rows, 5 log entries, 0 failures.
Earlier findings: F1 to F9 are fixed at this head; the round-1 files did not move apart from the inventory line.
Forge record: 13 threads, all resolved, each with one author reply; the three new replies answer the round-2 findings.
Hygiene: four Conventional [#2394] commits whose subjects match their diffs; author equals committer; each carries one attribution footer, which no rule in the tree forbids; git diff --check is clean; no closing keyword; the description is unchanged. The commit-id check prints the four ids the record maps (F10).
Findings: F10 and F11 Minor, both statements in the audit record, inline; none blocks.
Checked, no finding: the record's pr-number/pr-url frontmatter is the variant about thirty audits use; the 22:13 entry logs the late start and maps every branch id the replies cite; 98 path checks, no real miss.
Checks
On the loop's compute node at this head, against the merge base 0373f05f8 (receipt server-gates-kranich-1032): the repository's pre-commit gate and lint roster exit 0 (197 s wall), and the audit validator passes the record (13 rows, 5 log entries, 0 failures). The PR changes documentation only, so no package tests apply. F10 checked against the bytes at posting: line 204 of PR-REVIEW.md says the commit-id check "prints nothing at this head", while the record cites the branch-only merge da4d1a3cb, which is not on develop. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9b3728490.
|
ACK 948578d — the round-2 fixes, the 13-row audit record against the captured threads and the trial merge recomputed against the bytes at this head |
…1 audit record Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ons of PR 2891 Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at b85a2e14d987b84f6327f7a2a6b2c0a3bdc40bbd. Recomputed from the bytes at this head, against the merge base 0373f05f8; git merge-tree against develop 9b3728490 merges without conflict, and develop has touched none of the PR's eight files since the merge base.
Process: process-pr-review governs the only file that moved, the audit record.
The change against its claim: 94f309966 rewrites the F11 row's verification line to say what the commit-id check prints at the head that carries the record (it prints the four ids the 22:13 entry maps, and da4d1a3cb no longer occurs in the inventory), and appends a correction entry giving the real round-2 order without rewriting the 22:26 entry; its stamps match the commit times (22:24:06Z, 22:24:38Z, 22:27:30Z) and the reply times in the capture. It also adds rows F14 and F15 for round 3. b85a2e14d fills in their reply URLs and logs the round. The validator's own code, run offline with the captured comments and the local commit list, reports 15 rows, 10 log entries, 0 failures.
Earlier findings: F1 to F11 are fixed at this head.
Forge record: 15 threads, all resolved, each with exactly one author reply; the two new replies (22:43:07Z and 22:43:10Z) follow their fix commit (22:42:24Z), and each row's source comment, review id, severity and reply match the capture.
Hygiene: two Conventional docs(pr-reviews): [#2394] ... commits whose subjects match their diffs; author equals committer; each carries one attribution footer, which no rule in the tree forbids; git diff --check is clean; no closing keyword; the description is unchanged. The commit-id check prints exactly the four ids the record maps, as its F11 row now says.
Findings: none.
Checked, no finding: Processing Log order; the correction entry leaves the corrected entry as written, as the skill asks.
Checks
On the loop's compute node at this head, against the merge base 0373f05f8 (receipt server-gates-kranich-1033): the repository's pre-commit gate and lint roster exit 0 (89 s wall), and the audit validator passes the record (15 rows, 10 log entries, 0 failures). The PR changes documentation only, so no package tests apply. The F11 row checked against the bytes at posting: line 206 of PR-REVIEW.md now names the four ids the commit-id check prints, and da4d1a3cb occurs 0 times in the inventory. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 9b3728490.
|
ACK b85a2e1 — the two audit-record corrections and the 15-row record against the captured threads recomputed against the bytes at this head |
|
ACK b85a2e1 |
…#2392 Close-out for #2394 after PR #2891 merged. Moves the spec folder to docs/issues/closed/, sets status done, marks T6, the manual scenarios and the acceptance criteria done, and logs the archive. The EPIC's order 2 row is DONE and links drafts D1, D2 and D3; the coordinator creates their GitHub issues and rows. Live references in the EPIC and the three drafts point at the new path; past PR review records keep the old path as history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t DONE in EPIC #2392 36926e9 docs(pr-reviews): [#2394] log review round 2 of PR 2898 (josecelano-bot) 95a0622 docs(issues): [#2394] stamp the spec and EPIC with their last edit (josecelano-bot) f8a7385 docs(pr-reviews): [#2394] log Copilot's round on PR 2898 (josecelano-bot) c7e7626 docs(issues): [#2394] mark the pending closure of #2394 in the spec and EPIC (josecelano-bot) 9202a51 docs(pr-reviews): [#2394] record the review audit of PR 2898 (josecelano-bot) 9e0a880 docs(issues): [#2394] address review round 1 of PR 2898 (josecelano-bot) de6a18d chore(issues): [#2394] archive the audit spec and mark it DONE in EPIC #2392 (josecelano-bot) Pull request description: Related to #2394 (EPIC #2392, Test Isolation). Close-out after PR #2891 merged. - Moved `docs/issues/open/2394-2392-audit-shared-test-resources/` to `docs/issues/closed/`, set `status: done`, the new `spec-path` and `issue-spec`, and `last-updated-utc`. - T6, the manual scenarios M1 and M2, and AC1-AC3 marked done with their evidence; progress log entry added; no retrospective file (the reason and the lesson from C9 are logged). - EPIC #2392: order 2 set to DONE with the audit's outcome (38 findings: 29 isolated, 1 deliberate exception, 5 covered, 3 new problems), and the row links drafts D1, D2 and D3. AC4 stays TODO until their GitHub issues exist. - The three drafts point at the archived inventory. - Past PR review records (`docs/pr-reviews/pr-2862-review/`, `pr-2883-review/`, `pr-2891-review/`) keep the old path as history. - Review audit record: `docs/pr-reviews/pr-2898-review/PR-REVIEW.md`. - Pre-commit checks passed. Not in this PR: - **#2394 is still open on GitHub** (PR #2891 said "Related to"). The maintainer closes it when this PR merges. The spec's checkpoint is split: the archive move is ticked, and "GitHub issue #2394 closed" stays unticked until then; the EPIC row says the same. - The GitHub issues for D1, D2 and D3, their EPIC rows, and the #2396 scope extension: the EPIC coordinator does them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: josecelano: ACK 36926e9 da2ce7: ACK 36926e9 — the F4 stamps, the refreshed description and the eight-row audit record against the captured threads recomputed at this head, with no blocking finding Tree-SHA512: cf820db8ec3d05c91a203f8b77423aafc6b22fde0ea714421da6fe6fd85e3d5e0c84a279f3eff0599f1891c5a2a4d920055374c61cad3074d08b8c04c1a9c398
…s EPIC orders 6 to 8 f353d29 docs(pr-reviews): [#2392] record Copilot's round in the PR #2910 review audit (josecelano-bot) 7b102b7 docs(issues): [#2392] describe the #2906 candidate approach in the conditional (josecelano-bot) 944fb97 docs(pr-reviews): [#2392] record round 2 of the PR #2910 review audit (josecelano-bot) 1ed5b16 docs(pr-reviews): [#2392] cite commit subjects in the PR #2910 audit (josecelano-bot) 5946e8a docs(pr-reviews): [#2392] record the PR #2910 review audit (josecelano-bot) ae1f1e2 docs(issues): [#2392] refresh the #2394 records and evidence timestamps (josecelano-bot) d23ddd9 docs(issues): [#2392] place orders 6 to 8 in the EPIC delivery plan (josecelano-bot) b08b192 docs(issues): [#2392] keep the #2906 approach and #2908 test boundary open until T2 (josecelano-bot) 13c4d48 docs(issues): [#2392] add orders 6 to 8, close AC4 and extend #2396's scope (josecelano-bot) 2c6eafc docs(issues): [#2392] add issue specifications for #2906, #2907 and #2908 (josecelano-bot) Pull request description: ## Summary Spec-only follow-up of the #2394 shared-resource audit (PR #2891, close-out PR #2898). No code changes. The audit drafted three new problems (D1, D2, D3). This PR adds their specs under their GitHub issues and syncs EPIC #2392: - **New issue specs**, moved from `docs/issues/drafts/` to `docs/issues/open/` with their numbers (status `planned`): - #2906 (D1, finding P2): two runs of the fixed-port metrics test on one machine collide on `0.0.0.0:17091`-`17094`. - #2907 (D2, finding F2): tests leave `data_*.db`, `test_config_*.toml` and PEM files in the system temporary directory. - #2908 (D3, finding C9): a failed `docker compose up` leaves the qBittorrent E2E stack running. - **`docs/issues/open/2392-test-isolation/EPIC.md`**: - Orders 6 to 8 for the three issues, and order 2's row points at them. - Phase 2 is done. - AC4 is DONE: every finding is isolated, a deliberate exception, or tracked by a subissue. - AC2 now waits on orders 6 and 7, the two new problems that make the suite fail. - Order 6 notes that its proposed fix (the loopback helper beyond the 9 #2393 tests) needs a maintainer decision before implementation starts. - **`docs/issues/open/2396-2392-e2e-unique-tracker-image-tag/ISSUE.md`**: scope extended with the local default tags `torrust-tracker:qbt-e2e-local` and `torrust-tracker:test-mounted-no-persistence-configuration` (#2394 finding C3, maintainer decision Q2), in the background, scope, T5 and AC3. - **`docs/issues/closed/2394-2392-audit-shared-test-resources/`**: links to the drafts now point at the new specs, with the issue numbers. - **`docs/pr-reviews/pr-2910-review/PR-REVIEW.md`**: the review audit. da2ce7's round 1 findings are fixed in their own commits: the #2906 approach stays open until T2, orders 6 to 8 are placed in the delivery plan, and the #2394 records are refreshed. The branch history was rewritten once, with the maintainer's approval. In the first commit's body, "closed" no longer sits next to "#2394", so GitHub won't read it as a closing keyword (review finding F4). The tree is unchanged. The audit maps the commit ids that round 1 cited to commit subjects. ## Validation - `linter all` passes, and the pre-commit hook passes on each of the branch's commits. Related to #2392 Related to #2396 Related to #2906 Related to #2907 Related to #2908 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: da2ce7: ACK f353d29 — F1 to F9 verified fixed, all twelve threads replied to, recorded and resolved, and the audit validator passing offline at this head josecelano: ACK f353d29 Tree-SHA512: 3cd83a4b3ebad0f57e103c87d93f7bd2cdd7968f32065c3e903973d03e2d559895202c5cef74aa053d0a423482d259bfd8dbcea3dd430d99016d56ec3b8cfc3d

Related to #2394 (EPIC #2392, Test Isolation).
Summary
Shared-resource audit for #2394, tasks T1 to T6. Documentation only; no code changes.
docs/issues/open/2394-2392-audit-shared-test-resources/inventory.md: repeatable search commands per resource class (T1) and 38 findings, each with one disposition (T2 to T5).docs/issues/drafts/, with reproduction evidence for D1 and D2. The GitHub issues are not created yet.Maintainer decisions on the judgement calls
P2, new problem (draft D1).
tests/metrics/fixed_ports.rsbinds0.0.0.0:17091-17094. Two concurrent runs on one machine (two agents, or two pre-push hooks) collide: running the test binary twice at once failed one run withAddrInUsein 20 of 20 pairs.C3, extend Use a unique tracker image tag per CI run #2396. The local default image tags of
qbittorrent_e2e_runner(torrust-tracker:qbt-e2e-local) and the container test script are the same problem as thee2e_tests_runnerdefault Use a unique tracker image tag per CI run #2396 already has to decide. The EPIC coordinator will add them to Use a unique tracker image tag per CI run #2396's scope.F2, new problem (draft D2). Test helpers write uniquely named temporary files and never remove them. On one development machine
/tmpheld 232,229data_*.dbfiles (about 10.6 GiB since 2026-11-13) and 1,590test_config_*.tomlfiles.C9, new problem (draft D3), found by Copilot in the first review round. A failed
docker compose upin the qBittorrent E2E runner leaves the run's containers, network and volumes on the Docker daemon, because the teardown guard exists only after a successful start.Not in this PR
Checks
linter allpassed (pre-commit hook).b009b6425and again on the merge ofdevelop0373f05f8.AddrInUsefailure); D2 reproduced with a freshTMPDIR(one full run left 301 SQLite files and 1 TOML file).🤖 Generated with Claude Code