Skip to content

fix(ci): build the breaking-change baseline with the same path filter as the input - #1078

Merged
antoinetoussaint-byte merged 1 commit into
mainfrom
fix/buf-breaking-baseline-path
Oct 11, 2026
Merged

antoinetoussaint-byte merged 1 commit into
mainfrom
fix/buf-breaking-baseline-path

Conversation

@antoinetoussaint-byte

Copy link
Copy Markdown
Contributor

Fixes the Immutable module package → Reject breaking stable protobuf changes step. It has been red on main since 3eb4b10f (#1052), and it fails every pull request, including the release: v0.0.94 PR #1077.

Cause

#1052 added - path: vendor as a second buf module in module/services/accounts/proto/buf.yaml, for the vendored Runnable option closure. The check builds the current side with --path module/services/accounts/proto/saas, which gives one image. It then compared that against the baseline directory, which builds both modules, two images. buf refuses:

Failure: input contained 1 images, whereas against contained 2 images

#1052's own run passed because its baseline was the previous one-module main.

Fix

Build the baseline into an image with the same --path filter, and compare image to image. The owned API surface being compared is unchanged.

Verified locally (buf 1.73.0)

Classification: fix at the owner (this repo's CI step). No ignore/except was added and no rule was weakened.

🤖 Generated with Claude Code

… as the input

#1052 added `vendor` as a second buf module under the accounts proto
directory. The check built the current side with `--path .../saas` (one
image) but compared it against the unfiltered baseline directory (two
images), so buf refused to compare: "input contained 1 images, whereas
against contained 2 images". main has been red on this step since
3eb4b10, and so is every pull request.

Build the baseline into an image with the same filter and compare image to
image. Verified locally against main (passes), against the pre-#1052 main
(passes; #1052 was additive), and with a deleted RPC (fails, naming it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antoinetoussaint-byte
antoinetoussaint-byte added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit b131254 Oct 11, 2026
21 checks passed
@antoinetoussaint-byte
antoinetoussaint-byte deleted the fix/buf-breaking-baseline-path branch October 25, 2026 17:07
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