Skip to content

chore: merge PublicAPI.Unshipped.txt by union and lighten conflict-only pushes - #1050

Merged
Tr00d merged 1 commit into
masterfrom
chore/merge-public-api-and-conflict-pushes
Dec 3, 2026
Merged

Tr00d merged 1 commit into
masterfrom
chore/merge-public-api-and-conflict-pushes

Conversation

@Tr00d

@Tr00d Tr00d commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Step 6 of the quality gate review.

Why

  • PublicAPI.Unshipped.txt conflicts: 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.
  • Conflict-only pushes: AGENTS.md asked for the full test suite, E2E included, before every push. That includes a push that only merges origin/master to 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 local git merge origin/master; GitHub's conflict banner doesn't use it. PublicAPI.Shipped.txt keeps the default, since only the release workflow changes it.
  • AGENTS.md: a push that only merges origin/master needs 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

Case Before After
Two open PRs both add members to the same package Merge conflict, fixed by hand Merges on its own, both lines kept
A release moves members to Shipped while a PR is open on that package Merge conflict, fixed by hand Build error naming each duplicate, fixed by hand

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:

error RS0025: The symbol 'Supabase.Functions.Client' appears more than once in the public API files

AGENTS.md says to delete that line.

Verification

  • Scratch repository, both branches append: merged with no conflict, both lines kept.
  • Scratch repository, master shipped while a branch appended: without the attribute, git stops with a conflict on PublicAPI.Unshipped.txt. With it, the shipped lines come back in Unshipped.
  • Functions: a member duplicated from Shipped into Unshipped fails the build with RS0025.
  • git check-attr: union on each PublicAPI.Unshipped.txt, including packages/extensions/, and unspecified on Shipped.
  • gate.sh packages locally, E2E included: GATE: PASS.

🤖 Generated with Claude Code

…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>
@Tr00d
Tr00d marked this pull request as ready for review December 3, 2026 07:10
@Tr00d
Tr00d merged commit 52c0ddd into master Dec 3, 2026
11 checks passed
@Tr00d
Tr00d deleted the chore/merge-public-api-and-conflict-pushes branch December 3, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant