Repository navigation
fix(sync): detect previous-cut files by content, not by commit - #111
Merged
Merged
Conversation
The previous-release-cut rule treated any non-upstream commit touching a file as fork work. The 2026.10.5 sync landed as a squash commit (#57), which touches every file that cut changed, so a trial merge of release/2026.10.10 left 410 conflicts for the agent instead of the ~67 the fork actually changed. Compare main against the newest release commit it already contains instead, and take the release's deletion when the target dropped such a file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
scripts/sync-merge-release.mjstakes the release side for a conflict only when no fork commit touched the file. The 2026.10.5 sync landed as a squash commit (#57). That commit touches every file 10.5 changed, so every file from that cut looks like fork work. A trial merge ofrelease/2026.10.10caught only 4 files with theprevious-release-cutrule and left 410 conflicts for the sync agent.Solution
upstream/release/*;1808b57b75ftoday).checkout --theirscrashed on these.Evidence
release/2026.10.10in a throwaway worktree:previous-release-cut4 → 345, conflicts left 410 → 69. The 69 are the 67 files with real fork changes since 10.5, plus the 2 interimCHANGELOG/2026.10.2*.mdfiles the fork carries as add/add.pnpm test test/scripts/sync-merge-release.test.ts --maxWorkers=1: 5/5 pass, about 1.7s. The new squash-cut test, including the release-deleted case, failed before the fix (expected [ 'src/fork.ts', 'src/oldcut.ts' ]).🤖 Generated with Claude Code