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 can report a review of a newer commit than the head it reports #2714
Parent EPIC:#2003 - Overhaul: Automation Tools and AI Agent Guardrails
Goal
Make a review or comment result of the wait-for-pr-review poller never claim a head that is older than the feedback it reports, so the review loop's stale-checkout check cannot pass on a checkout that lacks the commit the feedback is about.
Problem
A snapshot is four sequential REST calls that are not atomic, and the head is read first. If a push and a review of that push arrive between the first call and the review-list call, the result reports the old head in head_sha, the review of the new commit in review_commit_id, and no head_moved. Reproduced on the real binary with a scripted gh that returns exactly that interleaving; the timing is scripted, and a real race on GitHub was not observed.
The specification, the reproduction and the fix options are in pull request #2716, which adds docs/issues/open/2714-2003-wait-for-pr-review-head-race-between-requests/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…
Merge #2749: docs(issues): [#2003] refresh the EPIC state and return …
docs(wait-for-pr-review): the head read moves, it does not add a requ…
docs(wait-for-pr-review): state the head ordering in terms of fetch t…
docs(issues): mark the torrust#2714 green test output as an excerpt
docs(issues): correct the torrust#2714 stamps that predate the review…
docs(issues): record option 1 decision for #2714 head race
fix(wait-for-pr-review): read the head after the feedback (#2714)
docs(wait-for-pr-review): describe head_sha ordering and record #2714 …
Merge torrust#2815: fix(wait-for-pr-review): [torrust#2714] read the …
docs(issues): [torrust#2714] close the archived spec: status, paths, …
docs(issues): [torrust#2714] mark EPIC row 19 done and point it at th…
docs(issues): [torrust#2714] point the evidence file at the closed sp…
docs(pr-reviews): [torrust#2714] add the review audit record of PR 2817
docs(issues): [torrust#2714] name the skill paragraph as the evidence…
docs(issues): [torrust#2714] state the completion review against the …
docs(issues): [torrust#2714] record where the spec was drafted, not w…
docs(pr-reviews): [torrust#2714] cite the first close-out commit by i…
docs(pr-reviews): [torrust#2714] keep the status values text of the a…
docs(pr-reviews): [torrust#2714] record review 5856904371 in the audi…
docs(issues): [#2714] archive the closed spec and mark EPIC row 19 done
Merge #2817: chore(issues): archive closed issue #2714 spec to docs/i…