Repository navigation
fix(wait-for-pr-review): [#2712] address Copilot's review submitted before the merge of #2750 - #2756
Conversation
…ignore SIGHUP Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rupt flag to a local Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… PR 2750 audit Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved review-log issues include incorrect follow-up resolution references, a non-reproducible verification claim, and timestamps that conflict with commit evidence.
3 open issues
What changed in this PR
Addresses review feedback left unprocessed when #2750 merged, with targeted test, readability, and audit updates for the wait-for-pr-review tool supporting issue #2712.
Changes:
- Makes the fake
ghdescendant ignore SIGHUP to keep the held-pipe regression scenario reliable. - Reuses a named interrupt flag when reclaiming reader output.
- Records the second review round, maintainer approval, and pending follow-up dispositions, and corrects the audit severity value.
| File | Description |
|---|---|
docs/pr-reviews/pr-2750-review/PR-REVIEW.md |
Records round-two findings and follow-up evidence; corrects the severity label. |
.github/skills/dev/pr-reviews/wait-for-pr-review/tool/tests/cli.rs |
Adds SIGHUP protection to the held-pipe fixture. |
.github/skills/dev/pr-reviews/wait-for-pr-review/tool/src/gh.rs |
Replaces temporary interrupt flags with one named local. |
Review effort: Max
… log times Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 3b592143df043c4a4b33d4c8788ce05c02ee260e. Recomputed from the bytes at this head, against the merge base 35ec81000; git merge-tree against develop 997d85416 exits 0 with no conflicted path.
Process: governed by process-pr-review (its post-merge section), open-pull-request and commit-changes. The late findings are normalized into the merged pull request's audit as FOLLOW_UP/OPEN, with reply URLs as resolution references and the approval URL in Ownership, as the skill prescribes. The gaps against those skills are F1 to F4.
The change against its claim: gh.rs binds one never-set flag for both reclaim calls, behaviour unchanged. tests/cli.rs makes the descendant ignore SIGHUP: measured under /bin/sh and bash, the ignored-signal mask gains bit 0 and kill -HUP no longer ends it, while the fixture exits in 8 ms and its pipe stays open for 20 s. The audit's rows, field roster and log order parse with the validator's own patterns; round 3's submission time, the 67 s interval, the merged head, each cited commit time and subject, and the F3 grep (one match at the merge base, none at this head) all recompute.
Consistency: no local link, moved path or dictionary word changes; the old fixture line survives only in the audit's record of it.
Hygiene: five Conventional subjects, author equals committer, empty bodies and one attribution footer each, which no rule in the tree forbids; git diff --check is clean; no closing keyword in the title, description or messages. The commit-id check prints PR-branch commit id: 973816c66 (F1).
Findings
F1 Minor: the correction entry cites a pull-request commit by id. F2 Minor: this pull request's own review has no audit record. F3 Minor: the title references an already-closed issue. F4 Minor: the description has no validation statement. None blocks; each can be repaired before merge.
Checked, no finding
No test fails with the fixture line reverted, because no scenario delivers SIGHUP; the line hardens a fixture and claims nothing more. The merge time 16:01:58, the approval comment and the replies on the merged pull request are outside the captured data and could not be recomputed; the merge commit's own date is 15:57:55, consistent with a local merge pushed later.
Checks
On the loop's compute node at this head, against the merge base 35ec81000 (receipt server-gates-kranich-518): the repository's pre-commit gate exit 0 (124 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new. GitHub checks at this head at posting time: "Publish (Development): completed/skipped; Publish (Release): completed/skipped; Context: completed/success; Package Coverage Regression: completed/success; Package Coverage (wait-for-pr-review): completed/success; Docs Lint: completed/success; Docker E2E: completed/skipped; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Unit (nightly): completed/success; Layer Boundary Bans: completed/success; Workspace Packaging: completed/success; Documented Clippy Allows: completed/success; Unit (stable): completed/success; Shipped Features: completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Test (Docker) (release): completed/success". At posting, develop is 997d85416.
|
|
||
| - 2026-11-06 14:10 UTC - Started audit; round 1 (Copilot review 5801009506) processed: F1 fixed in the commit cited above, pushed, replied and resolved. | ||
| - 2026-11-06 16:50 UTC - Round 2 (Copilot review 5802998503, submitted before the merge, processed after it): maintainer approval comment recorded in Ownership; F2 to F4 fixed in the three commits cited above on the follow-up PR https://github.com/torrust/torrust-tracker/pull/2756, replied on the merged PR's threads; threads stay open and the findings stay `FOLLOW_UP` until the follow-up PR merges. | ||
| - 2026-11-06 16:58 UTC - Correction: the entries stamped 14:10 UTC and 16:50 UTC were already in commits made earlier, so those times are wrong; the entries are kept unchanged. The evidenced times are: round 1 audit committed 14:07:53 UTC (`36cc80c49`); round 2 replies posted 16:35:14 to 16:35:19 UTC and the round 2 audit committed 16:35:44 UTC (`973816c66`). Round 3 (Copilot review 5803833977 on the follow-up PR https://github.com/torrust/torrust-tracker/pull/2756, submitted 16:55:54 UTC): the three findings are valid and fixed in this commit. Resolution references of F2 to F4 are now their reply URLs and the fix commit subjects moved into Solution; the F3 verification command no longer matches itself. |
There was a problem hiding this comment.
[Minor][F1] The correction entry cites a pull-request commit by id
The entry cites 973816c66, which is on this branch and not on develop, so the PR-branch commit-id check of the open-pull-request skill reports it (PR-branch commit id: 973816c66). open-pull-request/SKILL.md:74 and this file's own Completion Rules (line 117) forbid a branch commit id in a review audit: the id resolves only while the branch is not rewritten, and develop has moved since the merge base. Cite the commit's subject, docs(pr-reviews): [#2712] record round 2 of the PR 2750 audit. Because the log is append-only, that means rewriting this last commit, which the skill allows before merge.
|
|
||
| - 2026-11-06 14:10 UTC - Started audit; round 1 (Copilot review 5801009506) processed: F1 fixed in the commit cited above, pushed, replied and resolved. | ||
| - 2026-11-06 16:50 UTC - Round 2 (Copilot review 5802998503, submitted before the merge, processed after it): maintainer approval comment recorded in Ownership; F2 to F4 fixed in the three commits cited above on the follow-up PR https://github.com/torrust/torrust-tracker/pull/2756, replied on the merged PR's threads; threads stay open and the findings stay `FOLLOW_UP` until the follow-up PR merges. | ||
| - 2026-11-06 16:58 UTC - Correction: the entries stamped 14:10 UTC and 16:50 UTC were already in commits made earlier, so those times are wrong; the entries are kept unchanged. The evidenced times are: round 1 audit committed 14:07:53 UTC (`36cc80c49`); round 2 replies posted 16:35:14 to 16:35:19 UTC and the round 2 audit committed 16:35:44 UTC (`973816c66`). Round 3 (Copilot review 5803833977 on the follow-up PR https://github.com/torrust/torrust-tracker/pull/2756, submitted 16:55:54 UTC): the three findings are valid and fixed in this commit. Resolution references of F2 to F4 are now their reply URLs and the fix commit subjects moved into Solution; the F3 verification command no longer matches itself. |
There was a problem hiding this comment.
[Minor][F2] This pull request's own review has no audit record
Review 5803833977 was submitted on this pull request, with three inline findings fixed in the last commit, but docs/pr-reviews/pr-2756-review/PR-REVIEW.md does not exist at this head, and those findings appear only as this prose clause in another pull request's audit, with no tracking rows or detail entries. process-pr-review/SKILL.md:20 gives each pull request its own record, and wait-for-pr-review/SKILL.md:221 counts review rounds from it. The earlier follow-ups 2667 and 2693 each have their own audit with their own rows. Add the record, in its own commit, before merge.
|
|
||
| Round 1: Copilot review 5801009506 on the head `e1b8c40c8` (one inline finding). The finding is valid and fixed. | ||
|
|
||
| Round 2: Copilot review 5802998503 on the head `36cc80c49` (three inline findings), submitted 2026-11-06 16:00:51 UTC, 67 s before the merge at 16:01:58 UTC, so it was unprocessed at merge. All three are valid on the merged tree and are fixed in the follow-up PR https://github.com/torrust/torrust-tracker/pull/2756, which is open, so they are `FOLLOW_UP` until it merges. |
There was a problem hiding this comment.
[Minor][F3] The title carries a reference to an already-closed issue
Outside the diff; this is the nearest line that names the follow-up. The title carries [#2712], and the description says that issue was already closed by the earlier merge, which its merge commit confirms. open-pull-request/SKILL.md:164 keeps the bracketed reference for the issue a pull request implements or closes and sends an already-closed issue to the body, and the merge tool copies the title into a permanent merge subject. Drop the reference from the title before merge; the description already links the issue.
| - Source URL: https://github.com/torrust/torrust-tracker/pull/2750#discussion_r4494558017 | ||
| - Concern: The `sleep` that holds the pipes open in the fake `gh` of `tests/cli.rs` could be ended by SIGHUP in some shells, making the held-pipe condition unreliable. | ||
| - Solution: Valid. The descendant now starts as `(trap '' HUP; sleep 20 &)`. Fix commit on the follow-up PR: test(wait-for-pr-review): [#2712] make the fake gh descendant ignore SIGHUP. | ||
| - Current-tree verification: On develop at 35ec81000 the line reads `(sleep 20 &)`, so the concern was live; on the follow-up branch it reads `(trap '' HUP; sleep 20 &)` and `cargo test -p wait-for-pr-review` passes. |
There was a problem hiding this comment.
[Minor][F4] The description has no validation statement
Outside the diff; this is the nearest line that records a validation run. open-pull-request/SKILL.md:177 requires the description to state the validation performed, and the merge tool copies the description into the merge commit. The description lists the three fixes and the issue link but names no command or result, whereas this audit's lines 65, 78 and 91 do. State what ran.
|
ACK 3b59214 — the diff, the audit's rows, cited commit times and subjects, the fixture's SIGHUP behaviour and the merge against develop recompute at this head |
|
ACK 3b59214 |
…ipe-wait issue 4860e51 docs(pr-reviews): [#2712] cite commits by subject and keep AUDIT-002 in the PR 2756 audit (josecelano-bot) efb9627 docs(pr-reviews): [#2712] record the refreshed thread count and correct the EPIC log stamp (josecelano-bot) b2ac031 docs(pr-reviews): [#2712] scope the PR 2756 audit verifications and correct its stamps (josecelano-bot) 43986a8 docs(issues): [#2712] record the completion review and point final-build evidence at V3 (josecelano-bot) 1dce70e docs(pr-reviews): [#2712] close the PR 2750 audit after the follow-up merged (josecelano-bot) c3025f0 docs(pr-reviews): [#2712] add the audit record for PR 2756 (josecelano-bot) 971f8d8 docs(issues): [#2712] move the spec to closed and update the EPIC 2003 table (josecelano-bot) Pull request description: Close-out for #2712 (EPIC #2003), after #2750 (fix) and #2756 (follow-up for Copilot's late review) merged. - Moves the spec to `docs/issues/closed/` with status `done`, all acceptance criteria and checkpoints ticked, and the progress log updated. - Records V3, the like-for-like recheck on the final build (`develop` at `92665ae17`): 3 s budget ends at 3.0 s with `deadline_exceeded`, `SIGTERM` at 3.0 s is honored at 3.0 s; 62 unit and 24 integration tests pass. - EPIC #2003: row 17 is `DONE`, with a log entry. - Audits: closes the PR 2750 audit (F2 to F4 `FIXED`/`RESOLVED`; the three threads on #2750 are resolved) and adds the PR 2756 audit. Both pass `validate-audit-record.py`. Docs only; no code change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: josecelano: ACK 4860e51 da2ce7: ACK 4860e51 — the one new commit's statements and F1 to F9 recomputed at this head, with the record findings F7 to F12 non-blocking Tree-SHA512: 0f0474ec26e995bf577b972a0e02f87790faedde902ebb2a47df400984e45510787f71b64992fcbe8a594021138db0e8ce314e80d2730e81ca7037cb2e1c602d

Follow-up to #2750 (merged), approved by the maintainer: #2750 (comment)
Copilot review 5802998503 was submitted at 16:00:51 UTC, 67 s before #2750 merged at 16:01:58 UTC, so it went unprocessed. Its three findings were valid on the merged tree:
tests/cli.rs: the fakeghdescendant now ignores SIGHUP (trap '' HUP), so the held-pipe condition does not depend on the shell.gh.rs: the never-set interrupt flag of the reclaim path is bound to a local instead of a temporary reference.docs/pr-reviews/pr-2750-review/PR-REVIEW.md: severityLowreplaced by the declaredMinor (inferred).One signed commit per fix; the audit gets round 2 in a separate commit. Refs #2712 (already closed by #2750).
🤖 Generated with Claude Code