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
handoff.py link Skips the Round Checks new Runs on Its Predecessor #2395
scripts/handoff.py link checks that nothing already succeeds --previous, but not the round checks that new now runs through head_doubts (#2393). So link can point a successor at a --previous that new would refuse to file onto, then comment on and close it.
Reproduction
Constructed against the test suite's FakeGh. Closed #10 round 1, closed #11 round 2 with previous=10, closed #12 round 3 with previous=none, and open #13 round 3 with previous=none.
link --new 13 --previous 11 exits 0 and rewrites #13 to previous=11.
A following new then refuses onto #13.
link never changes a round, so it cannot create a higher-round state or a tie. It can link across one, which is the asymmetry #1500 closed for the reads.
What would close it
Run head_doubts over --previous in link, ignoring --new, and refuse where it names anything, or state why link, as the recovery for an interrupted new, is exempt.
Activity
Run the Round Checks on link's Predecessor in handoff.py (#2602)