review's base-onto-main pushes the rebase but records no version, then loops
State
done
Created
2026-10-22 by contributor
Body
Operator, 2026-10-22, reviewing a deployment change (an agent's the-valley bump) after another change landed on main. `valley review` said the branch does not fast-forward; the operator chose [b]ase onto main.
What happened:
- The first [b] rebased the branch onto main and pushed it (0df9f26, committed by the operator at 22:00 UTC), but recorded no new version of the change.
- Every later [b] refused: the record names v1's head 9dae78c and the branch is at 0df9f26, "nothing rebased; ready the branch's head as a new version", and the menu offered [b] again, in a loop.
- The way out (`valley ready --head 0df9f26 --change … <branch>`) appeared only as text inside the refusal. The coordinator ran it (v2 of the change).
Expected: base-onto-main pushes the rebased head and records it as the change's next version in one step, as `valley rebase` does, then offers approve on the new version. After a refusal, the menu must not re-offer an action that will refuse the same way; it offers the fix (ready the branch head) or skip.
Fixed when an e2e review session can base a non-fast-forward change onto main and approve it without leaving the menu, and a stale-record state offers its own fix rather than a loop.
Comments
contributor2026-10-30 12:54 UTC
The same loop, from a second cause, on 2026-10-30. The operator ran `valley review` on a ready change at v5. Another change landed on main, and the host's restacker recorded v6 of the reviewed change, a clean restack onto the new main. The menu still offered v5 and said it does not fast-forward. When the operator chose [b] base onto main, review refused: "change … is at v6, …, and this run began at v5, …; nothing rebased. Review it again at its new head". The menu then offered the same v5 entry again, with [b], which refuses the same way.
Expected: when the change has moved to a newer version since the run began, review reloads that version in place, says it is a clean restack when it is one, and offers approve on it. At the least, it drops the stale entry rather than re-offering it. The fix for this knot covers both causes. An e2e test that has the restacker record a new version while a review session is open shows it.
contributor2026-11-08 22:29 UTC
Closed: review no longer offers base-onto-main for a single change, so the loop cannot occur (d76157db).