Repository navigation
chore: merge PublicAPI.Unshipped.txt by union and lighten conflict-only pushes - #1050
Merged
Merged
Conversation
…ly pushes Two branches that each declare a new member both append to PublicAPI.Unshipped.txt, and that conflicted on almost every merge of origin/master. merge=union keeps both lines. A member master shipped in the meantime comes back as a duplicate, which the build reports as RS0025. A push that only merges origin/master now needs a build and the unit tests of the packages that had conflicts; CI runs the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Step 6 of the quality gate review.
Why
PublicAPI.Unshipped.txtconflicts: 8 of the merge conflicts resolved in the last 3 days were in these files. Two branches each append a member at the end of the file, and git can't decide the order.AGENTS.mdasked for the full test suite, E2E included, before every push. That includes a push that only mergesorigin/masterto fix conflicts, and the maintainer had to waive it at least 4 times.Changes
.gitattributes:PublicAPI.Unshipped.txt merge=union. When both sides add members, both lines are kept. It applies to the localgit merge origin/master; GitHub's conflict banner doesn't use it.PublicAPI.Shipped.txtkeeps the default, since only the release workflow changes it.AGENTS.md: a push that only mergesorigin/masterneeds a build and the unit tests of the packages that had conflicts. CI runs the rest.implement-capability, step 8.2: points to that rule.Effect on the two kinds of conflict
The first case is the frequent one. The second needs the same manual fix as today: delete the shipped lines from Unshipped. Only the way it's reported changes. The build fails, so it can't merge unnoticed:
AGENTS.mdsays to delete that line.Verification
PublicAPI.Unshipped.txt. With it, the shipped lines come back in Unshipped.git check-attr:unionon eachPublicAPI.Unshipped.txt, includingpackages/extensions/, andunspecifiedon Shipped.gate.sh packageslocally, E2E included:GATE: PASS.🤖 Generated with Claude Code