You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wait-for-pr-review waits without limit for the output of a gh call that already exited #2712
Parent EPIC:#2003 - Overhaul: Automation Tools and AI Agent Guardrails
Goal
Make the --timeout-seconds budget and the SIGINT and SIGTERM handling of the wait-for-pr-review poller hold on every path of a gh call, including the one where gh exits successfully but a descendant it started still holds its output pipes open.
Problem
After a successful gh exit, the poller waits for the end of the child's stdout and stderr with no limit and checks neither the deadline nor the signal flag. The error path already bounds this wait with a 200 ms grace period. Reproduced on the real binary with a fake gh that exits at once and leaves a background sleep 25 holding the pipes: a 3 s budget took 25.0 s, and a SIGTERM sent at 3.0 s was honored at 25.0 s. It was not observed with the real gh.
The specification, the reproduction and the fix options are in pull request #2716, which adds docs/issues/open/2712-2003-wait-for-pr-review-pipe-wait-after-exit/ISSUE.md.
Activity
docs(issues): add specifications for #2712, #2713, #2714 and #2715
Merge #2716: docs(issues): add specifications for the wait-for-pr-rev…
docs(wait-for-pr-review): [torrust#2712] limit the timeout result to …
Merge #2749: docs(issues): [#2003] refresh the EPIC state and return …
docs(pr-reviews): [torrust#2712] add the audit record for PR 2750 rou…
docs(wait-for-pr-review): [#2712] record the partial-output design de…
fix(wait-for-pr-review): [#2712] bound the reader wait by the deadlin…
docs(pr-reviews): [torrust#2712] record round 2 of the PR 2750 audit
docs(pr-reviews): [torrust#2712] fix the round 2 audit references and…
Merge torrust#2750: fix(wait-for-pr-review): [torrust#2712] bound the…
test(wait-for-pr-review): [#2712] make the fake gh descendant ignore …
refactor(wait-for-pr-review): [#2712] bind the never-set interrupt fl…
docs(pr-reviews): [#2712] use a declared severity value in the PR 275…
Merge #2756: fix(wait-for-pr-review): [#2712] address Copilot's revie…
docs(issues): [torrust#2712] record the completion review and point f…
docs(pr-reviews): [torrust#2712] scope the PR 2756 audit verification…
docs(pr-reviews): [torrust#2712] record the refreshed thread count an…
docs(pr-reviews): [torrust#2712] cite commits by subject and keep AUD…
docs(issues): [#2712] move the spec to closed and update the EPIC 200…
docs(pr-reviews): [#2712] add the audit record for PR 2756
docs(pr-reviews): [#2712] close the PR 2750 audit after the follow-up…
Merge #2780: docs(issues): [#2712] close out the wait-for-pr-review p…