Skip to content

Carry CI fails a stacked PR whose topic base has unsquashed parent commits #690

Closed

Description

@lastobelus

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.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions