Repository navigation
ci: check the public API for incompatible changes on every pull request - #174
Conversation
A hand-written change never moves .spec-version, so the Breaking changes check passed it untouched. The job now also compares jars built from the base tip and the merge commit with japicmp, and reads the base .spec-version at the merge base.
👋 Thanks, 🌵! I'm on it.How to work with me
CommandsComment any of these on the PR:
|
There was a problem hiding this comment.
🎉 Approved · round 1
Nice work, 🌵! Nothing blocking is left on c7d1453dbb3c. Ship it 🚀
Left open, your call:
- nit: checkout pinned to v4, other workflows use v5.0.1 (
.github/workflows/breaking_changes.yml:106) - consider: Changelog check skipped when the API check fails (
.github/workflows/breaking_changes.yml:147)
Worth a human look: Actual japicmp 0.27.0 stdout for a class-level modifier change, to confirm the awk filter reports it and extracts the class name (needs the jar and network)
…ke the other workflows The title and changelog step runs even when the API step fails, so one run reports every error. The new checkout uses v5.0.1 like the rest of the repository. The API step's error now mentions the BREAKING CHANGE footer an override block needs, and CONTRIBUTING.md says a regen can fail the comparison too.
Withdrawing approval until 9a090e1 is reviewed.
Withdrawing approval until 3fe4804 is reviewed.
Withdrawing approval until cbcbabf is reviewed.
A class made final, made package-private, or turned from an interface into a class shows only on japicmp's class header, as "(<- old)", so the filter skipped it. Those headers, and changed or removed generic type parameters, are now reported. The class name is also read before the trailing " (...)", since a header such as "PUBLIC FINAL (<- NON_FINAL) io.getstream.models.OwnCapability" labelled its members "FINAL". From 10.5.0 to 11.0.0 this adds the three enum classes that became final; from 11.3.0 to HEAD it still reports nothing.
Withdrawing approval until 4a2e81e is reviewed.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4a2e81e. Configure here.

Problem
A hand-written PR can remove or change public API without a
!in its title and ship as a minor. The Breaking changes check only looks at.spec-version, so such a PR passes it untouched.Solution
!or the PR is labelledsdk-not-breaking.-mkeeps source-only breaks, such as a changed generic type, that--only-incompatibledrops. Added methods are skipped, since callers use the service interfaces and never implement them, and so are model constructors, since Lombok's all-args constructor changes with every added field and callers use the builder..spec-versionat the merge base, as stream-py does. Comparing against the base tip reported a downgrade on any branch cut before a regen merged.stream-sdk-javasdk lines.How to verify
actions/checkoutbuilds them: 11.3.0 to main (31 commits) reported nothing; removingStreamSDKClient(Properties)failed with aci:title and passed withfeat!:; changing a model field fromList<String>toList<Object>was reported.Note
Low Risk
CI-only changes to PR gates and contributor docs; no runtime SDK behavior changes.
Overview
Closes a gap where hand-written PRs could ship API breaks as minors because the breaking-changes job only inspected
.spec-version.The Breaking changes check workflow now compares built JARs (base parent vs merge commit) with japicmp 0.27.0 (pinned checksum). Incompatible changes fail unless the title has conventional-commit
!or the PR is labelledsdk-not-breaking. The report keeps source-level breaks (e.g. generic changes) via-m, and filters noise from added service methods and Lombok model constructors.The spec-version step reads
.spec-versionat the merge base instead of the base branch tip, avoiding false “downgrade” failures on branches cut before a regen merged. Job timeout moves from 5 to 10 minutes, and later steps useif: !cancelled().CONTRIBUTING.md documents the japicmp check,
stream-sdk-javasdk lines for regen footers, and that regen PRs can fail API comparison when generator changes alone break callers.Reviewed by Cursor Bugbot for commit 4a2e81e. Bugbot is set up for automated code reviews on this repo. Configure here.