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
Carry CI fails a stacked PR whose topic base has unsquashed parent commits #690
Follow-up F1 from #660 (merged 3cbee6a, 2026-11-08 PT), which lets lastcode:merge land PRs that are behind lastcode/main. Low priority: this failed the same way before #660.
Problem
A stacked PR whose base is a topic branch, not lastcode/main, fails carry CI (scripts/lastcode-carry-ci.ts) when that topic base holds parent commits that haven't been squash-merged into main yet. Carry CI models the commit that will land, using Carry-Source-Base = the merge-base with main. For a stacked PR, the range from that merge-base also contains the unsquashed parent commits, so the model doesn't match what lands.
Found by #660's local Terra xhigh review (its one "should"). #660 changed only the behind-main case for PRs based on main.
Expected
Carry CI and the merge-time carry recheck model a stacked PR as it will actually land: after its parents squash into main, or else skip it with a clear message that says to merge the parents first.
Where
scripts/lastcode-carry-ci.ts, and the carry recheck in scripts/lastcode-merge.ts.
Activity