Repository navigation
docs(issues): [#2392] sync the test isolation EPIC after the #2393 patch - #2862
josecelano merged 18 commits into
Conversation
…orrust#2393 patch Mark order 1 (torrust#2393) in progress with T5 open, record the maintainer's decisions (disable racing tests first, no listener handoff for now, no new port helper) and the three racing port shapes torrust#2393 found, and point the torrust#2394 port inventory at torrust#2393's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at d893c8a168eb5bafac0f190ed40ccbcd95b02b8e. Recomputed from the bytes at this head, against the merge base 49df33b35; git merge-tree against develop 2e64dff3a writes a tree with no conflict that differs from develop only in the two changed files.
Process: a spec-only update, governed by create-issue (EPIC and issue specs, frontmatter, a progress-log entry that names the agent and its model), commit-changes and open-pull-request. The frontmatter values pass the validator's rules (in-progress is an allowed status; last-updated-utc is a quoted UTC minute), and the description links all three issues with Related to.
The change against its claim: the diff does what the description says. Against the tree, the 21 #[ignore = "flaky port race, see #2393"] attributes match the 21 Ignored rows of the per-test table by name, 4 rows are Rewritten, 18 of the 21 prove socket release, the three shapes match the #2393 Inventory, rule 3 is the bind-and-release rule, and reserve_free_ports arrived in the [#2581] commits. The 150-run figure does not match the evidence (F1).
Consistency: no link or anchor is added; the Inventory section the EPIC points to exists; every added word already occurs in the tree; nothing is moved or renamed.
Hygiene: one commit, d893c8a, with a Conventional subject in the repository's [#N] form and a body that matches the diff; author equals committer; one attribution footer line (no rule in the tree on it), and the description carries one attribution footer line too. git diff --check is clean, the skill's PR-branch commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, the description or the commit message.
Findings
- F1 Major: the AC2 evidence and the order-1 row say 150 of 150 runs passed with 21 tests ignored; that recheck had 18 ignored.
- F2 Minor: the shape list leaves out the released-port-probed-dead shape that three ignored tests have.
- F3 Minor: T2 hands every Rust-test port to an inventory that does not own collisions between runs.
- F4 Nit: two of the "4 that needed no real port" bind a real port.
Checked, no finding: the three decisions against the #2393 spec's Scope and Architectural Decisions; "four server crates"; the 18-of-21 basis of the new risk; the Covered disposition for the per-test rows; the [#2392] title tag, which follows develop precedent for EPIC-sync PRs.
Checks
On the loop's compute node at this head, against the merge base 49df33b35 (receipt server-gates-kranich-889): the repository's pre-commit gate and lint roster exit 0 (93 s wall). This PR has no audit record of its own yet, so the gate ran no validator for it. The PR changes documentation only, so no package tests apply. F1 checked against the bytes at posting: manual-verification-evidence.md of #2393 records the 150-run recheck as 150 runs: 1808 tests run: 1808 passed, 18 skipped (line 141) and the 21-ignored state as 20 runs: 1806 tests run: 1806 passed, 21 skipped (line 154), while the EPIC's order-1 row (line 103) and AC2 (line 236) say 150 of 150 with 21 ignored; the tree carries 21 flaky port race, see #2393 attributes. GitHub checks at this head at posting time: "". At posting, develop is 2e64dff3a.
There was a problem hiding this comment.
🟡 Changes recommended
The documentation misstates verification counts and real-port usage, while the audit scope omits remaining Rust-port resources shared across concurrent runs.
3 open issues
What changed in this PR
This documentation-only PR synchronizes the test-isolation EPIC #2392 and audit issue #2394 with the merged #2393 patch, preparing subsequent work to follow the current decisions.
Changes:
- Updates EPIC progress and verification evidence while keeping the ignored-test decisions open under T5.
- Records the maintainer’s decisions, three port-race patterns, and the coverage risk from ignored tests.
- Updates the shared-resource audit plan to reuse #2393’s Rust-test inventory.
| File | Description |
|---|---|
docs/issues/open/2394-2392-audit-shared-test-resources/ISSUE.md |
Expands port-race examples and revises the network-port audit task. |
docs/issues/open/2392-test-isolation/EPIC.md |
Updates status, decisions, evidence, and risks after the merged patch. |
Review effort: Balanced
…each torrust#2393 recheck The 150-run recheck had 18 tests ignored; the final 21 were checked with 20 runs. Say so in the order-1 row, the Phase 1 state and the AC2 evidence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er needed a racing port Two of the four rewritten tests still bind a real port-0 socket, so "needed no real port" was wrong; use the torrust#2393 spec's wording. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… shape Three of the 21 tests torrust#2393 ignored stop a service and expect its released port to be dead, which is none of the three listed shapes. Add it to the EPIC's shape list and to the torrust#2394 Network ports row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he T2 audit The torrust#2393 inventory covers races within one suite run, not collisions between concurrent runs on one host. Mark Covered only the rows torrust#2393 owns, and keep Rust tests such as the fixed-port metrics suite in T2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e EPIC and torrust#2394 specs Co-Authored-By: Claude Opus 5.5 <[email protected]>
Audit the da2ce7 findings F1 to F4 (fixed) and the three Copilot re-raises F5 to F7 (superseded), with reply URLs; the validator reports 0 failures. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…its commit subject Co-Authored-By: Claude Opus 5.5 <[email protected]>
… processing log Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 92704d35ff7f3157a52c61b3b466e4e48a258e83. Recomputed from the bytes at this head, against the merge base 49df33b35; git merge-tree against develop abd7a10ff writes a tree with no conflict, which differs from develop only in the EPIC, the audit spec and the new review audit record.
Process: the eight commits since d893c8a follow process-pr-review: one fix commit per round-1 finding, the spec progress-log entries, then the audit record from the template, with the late start logged as the skill allows. The validator's own checks, run offline against the captured comments and the branch's commit subjects, report 7 rows, 5 log entries and 0 failures; each of the seven threads has one reply on its own thread and is resolved.
Round-1 findings at this head: F1 fixed (lines 103, 153-154 and 244 name the 18 tests ignored in the 150-run recheck and the 20 runs with the final 21, matching lines 141 and 154 of the evidence file); F2 fixed (the fourth shape at line 136 and the matching clause at line 53 of the audit spec); F3 fixed (T2 keeps Rust tests for collisions between runs and names the fixed-port suite); F4 fixed ("never needed a racing port").
The trial merge: develop now carries the T5 decisions in the #2393 spec (T5 DONE, T7 to T11 to do), and PR 2863 left the EPIC to this PR. The merged EPIC would still say T5 awaits the maintainer (F5). The description is unchanged since round 1 and contradicts the head, and the merge tool copies it into the merge commit (F6).
Hygiene: eight commits with Conventional subjects in the [#N] form and bodies that match their diffs; author equals committer; one attribution footer line each (no rule in the tree on it), and the description carries one attribution footer line too. git diff --check is clean, the skill's PR-branch commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, the description or the commit messages.
Findings
- F5 Major: the merged EPIC says #2393 T5 is open and undecided; on
developit is DONE. - F6 Major: the description still says three shapes, two extra shapes and a T2 that audits only non-Rust artifacts, and it omits the audit record.
Checked, no finding: the audit record's line claims, its frontmatter and headings against the template, and its processing-log times against the commit and reply times; the added words and lines against the linters' rules.
Checks
On the loop's compute node at this head, against the merge base 49df33b35 (receipt server-gates-kranich-896): the repository's pre-commit gate and lint roster exit 0 (38 s wall), and the repository's audit-record validator for this PR passes with 7 rows, 5 log entries and 0 failures. The PR changes documentation only, so no package tests apply. F5 checked against the bytes at posting: the EPIC's order-1 row (line 103) at this head ends "Open: T5, the maintainer's decision on each ignored test", while the #2393 spec on develop abd7a10ff records | T5 | DONE | (its line 256) since PR 2863 merged. GitHub checks at this head at posting time: "". At posting, develop is abd7a10ff.
|
Review round 2, F6 (review 5910710882): updated the PR description to match the branch. It now lists the four racing shapes, the three extra shapes in the #2394 Network ports row, T2 auditing Rust tests for collisions between concurrent runs, the #2393 T5 decisions with T7 to T11 open, the loopback-helper decision, the merge of |
…on-scope-update-spec
… the loopback helper in the EPIC PR 2863 merged the T5 decisions into the torrust#2393 spec. Order 1 now has T5 decided and T7 to T11 open; the Decisions section records the decisions and the approved loopback-address helper; AC2 and the lost-coverage risk point at T10 and T9; the listener-handoff decision no longer calls itself the way to restore the ignored tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Audit da2ce7's round-2 findings F5 and F6 as F8 and F9 (their IDs collide with the round-1 Copilot rows): the EPIC fix after the rebase, and the PR description update. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…op into the EPIC branch The rebase was never pushed; develop was merged instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…R 2862 audit Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 92704d3 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at e4f3dfcf1d399d54db46c29b6178fe757a623fb5. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop abd7a10ff writes a tree equal to the head's, with no conflict, and that tree differs from develop only in the EPIC, the audit spec and the review audit record.
Process: this round merged develop into the branch (b8bce05), which the rebase ADR accepts as an update when a pull request needs a change that landed later. It then added the F5 fix, the round-2 audit rows and two wording corrections. The merge changes no PR file. The validator's own checks, run offline against the captured comments and the branch's commit subjects, report 9 rows, 11 log entries and 0 failures; each of the nine threads has one reply on its own thread and is resolved.
Round-2 findings at this head: F5 is fixed. The order-1 row, the Phase 1 state, AC2, the risk and the handoff decision now match the #2393 spec on develop (T5 decided with 9 tests deleted, 3 rewritten and 9 restored; T7 to T11 open), and two 2026-11-15 decisions record those fates and the loopback-address helper, matching its per-test table and Architectural Decisions. F6 is fixed: the description names four shapes, three in the #2394 row, T2 with Rust tests, the T5 decisions and the audit record. F1 to F4 stay fixed.
Hygiene: four commits have Conventional subjects in the [#N] form and bodies that match their diffs, and the merge commit has the default merge subject. Author equals committer; two commits carry earlier author dates from their replay after the merge. Each of the four has one attribution footer line (no rule in the tree on it), and the description carries one attribution footer line too. git diff --check is clean, the skill's PR-branch commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, the description or the commit messages.
Findings
- F7 Nit: the EPIC's second-round progress-log entry is stamped 12:32 but describes the merge of
develop, which was committed at 12:37.
Checked, no finding: the decision counts against the #2393 per-test table (9, 3, 9); the risk, which names the 9 tracker tests that T9 restores; the audit's line claims and its log times against the commit, reply and edit times; the added lines against the linters' rules.
Checks
On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-897): the repository's pre-commit gate and lint roster exit 0 (43 s wall), and the repository's audit-record validator for this PR passes with 9 rows, 11 log entries and 0 failures. The PR changes documentation only, so no package tests apply. F7 checked against the bytes at posting: the EPIC's progress-log entry at line 233 is stamped 2026-11-15 12:32 UTC, while the merge commit b8bce0570 it describes was committed at 2026-11-15T12:37:06Z. GitHub checks at this head at posting time: "". At posting, develop is abd7a10ff.
|
ACK e4f3dfc — F1 to F6 are fixed in the bytes at this head, the trial merge with develop equals the head tree, and the audit record passes the validator's logic with all nine threads replied to, recorded and resolved |
…th the merge time The entry describes the merge of develop, committed at 12:37 UTC, not the unpushed 12:32 rebase. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Outstanding documentation issues leave the EPIC merge timestamp inconsistent with the audit and remove a prior Processing Log entry instead of preserving it with an appended correction.
2 open issues
3 resolved since last review
Review effort: Balanced
…he PR 2862 processing log The 12:15 correction rewrote the entry's time in place. Append its original text verbatim, as the skill asks, without breaking chronological order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hird PR 2862 round Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 4e8a8c7e658be057cbd5388adf27a2c313e67b2b. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop abd7a10ff writes a tree equal to the head's, with no conflict, and that tree differs from develop only in the EPIC, the audit spec and the review audit record.
Process: four commits since my last review, each matching its message.
- 876e6c8 restamps the second-round EPIC entry and
last-updated-utc. - 52fcd77 records round 3 (row F10 for my F7).
- 3c4c762 appends a 12:54 log entry that quotes the 12:17 entry rewritten in round 2. The quote is verbatim against its text in 0b58574, so the log keeps its history without breaking its chronological order.
- 4e8a8c7 records the other reviewer's two third-round findings as F11 (a re-raise of F10) and F12.
The validator's own checks, run offline against the captured comments and the branch's commit subjects, report 12 rows, 15 log entries and 0 failures.
Findings at this head: F7 is fixed (line 233 is stamped 12:37 UTC, and b8bce05 was committed at 12:37:06). F1 to F6 stay fixed; apart from that restamp, the EPIC, the audit spec and the description are unchanged since round 3.
Threads: each of the twelve threads has one reply on its own thread and an audit row, and each is resolved. Every fix a reply cites is a commit subject on the branch, and nothing was posted after the last audit commit (4e8a8c7, 12:56:24).
Hygiene: the four commits have Conventional subjects in the [#N] form; author equals committer; each has one attribution footer line (no rule in the tree on it), and the description carries one attribution footer line too. git diff --check is clean, the skill's PR-branch commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, the description or the commit messages.
Findings: none.
Checked, no finding: rows F10 to F12 against their source comments, replies and severities; the four new log entries against the review, commit and reply times; the restamp against git log --format=%cI.
Checks
On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-901): the repository's pre-commit gate and lint roster exit 0 (42 s wall), and the repository's audit-record validator for this PR passes with 12 rows, 15 log entries and 0 failures. The PR changes documentation only, so no package tests apply. F7 checked against the bytes at posting: the EPIC's progress-log entry at line 233 is now stamped 2026-11-15 12:37 UTC, matching the merge commit b8bce0570 (2026-11-15T12:37:06Z). GitHub checks at this head at posting time: "". At posting, develop is abd7a10ff.
|
ACK 4e8a8c7 — F1 to F7 are fixed in the bytes at this head, the trial merge with develop equals the head tree, and the audit record passes the validator's logic with all twelve threads replied to, recorded and resolved |
|
ACK 4e8a8c7 |

Summary
Spec-only update of EPIC #2392 (Test isolation) after #2393's PR #2859 merged and its T5 decisions landed on
develop(PR #2863). No code changes. It is done before any other subissue of the EPIC starts implementation, so they start from the current decisions.docs/issues/open/2392-test-isolation/EPIC.md:in-progress. Order 1 (Eliminate parallel test port allocation races #2393) isIN_PROGRESS: PR fix(tests): [#2393] ignore racing port tests and rewrite those that need no real port #2859 ignored 21 racing tests and rewrote 4 that never needed a racing port; the full suite passed 150 of 150 runs with the 18 tests ignored at that head, and 20 of 20 with the final 21. T5 is decided (delete 9, rewrite 3, restore 9 on a unique loopback address); T7 to T11 are open.Decisionssection: disable racing tests first (2026-11-14), no listener handoff for now (2026-11-14), no new shared port helper (2026-11-14), the Eliminate parallel test port allocation races #2393 T5 decisions (2026-11-15), and the approved loopback-address helper, which chooses an IP address, not a port (2026-11-15).docs/issues/open/2394-2392-audit-shared-test-resources/ISSUE.md: the Network ports row lists the three racing shapes beyond bind-and-release; T2 reuses Eliminate parallel test port allocation races #2393's per-test inventory, marks Covered only the rows Eliminate parallel test port allocation races #2393 owns, and still audits Rust tests for collisions between concurrent runs (for example the fixed ports intests/metrics/fixed_ports.rs) as well as E2E runners, Compose files, container test scripts and CI workflow steps.docs/pr-reviews/pr-2862-review/PR-REVIEW.md: the review audit record for this PR.No new isolation rule is added: the three racing shapes beyond rule 3 are recorded as findings, and whether they become rules is left to Phase 4.
In review round 2,
developwas merged into the branch to pick up the #2393 T5 decisions (PR #2863); the branch history is not rewritten, and the audit record cites commits by subject.Validation
linter all, frontmatter validator and the rest of the gate) passes on every commit.validate-audit-record.py --pr-number 2862runs before each audit commit; the audit's Processing Log records each round.Related to #2392
Related to #2393
Related to #2394
🤖 Generated with Claude Code