Skip to content

fix(upstream): treat commits carried by side-branch sync PRs as direct commits - #667

Merged
incognitojam merged 1 commit into
mainfrom
fix/upstream-queue-side-branch-associations
Oct 8, 2026
Merged

incognitojam merged 1 commit into
mainfrom
fix/upstream-queue-side-branch-associations

Conversation

@incognitojam

Copy link
Copy Markdown
Owner

Setting the intake target to upstream 024d49520e, the commit before the V2 orchestrator merge, fails with "PR association for a97a4a9 ends outside target history". That commit is a direct push to upstream main, but GitHub also associates it with pingdotgg/t3code#14668, one of the "merge main into the V2 branch" PRs. That PR merged into the V2 branch, so its merge commit never lands on main's first-parent history, and the queue reads it as a PR the target splits. Two more direct commits before V2 have the same problem: an upstream release preparation and a mobile version bump, associated with pingdotgg/t3code#14851 and pingdotgg/t3code#14855. Moving the target past V2 doesn't help, because those merge commits stay on the side branch.

The queue now passes upstream main's first-parent history to the association step and ignores a merged PR whose merge commit is not on it: such a PR only carried the commit into a side branch. The commit then resolves to the PR that did merge into main, or to no PR, in which case the queue lists it as a direct commit. A PR that merged into main beyond the target still blocks a target inside it.

With this change, setting the target to 024d49520e from a baseline of 8dd02470b1 succeeds: 376 commits, 9 of them direct, with the three commits above among the direct ones. A new queue test covers a commit carried by a side-branch sync PR, both alone and beside the squash PR that merged it into main, and checks that a main PR beyond the target still blocks.


Written by an agent (Claude Code, claude-opus-5-5).

@incognitojam
incognitojam merged commit 3eea4fd into main Oct 8, 2026
18 checks passed
@incognitojam
incognitojam deleted the fix/upstream-queue-side-branch-associations branch October 8, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant