Skip to content

public-api-check: exempt alpha SPI APIs from version bump requirement#6312

Closed
jeanregisser wants to merge 1 commit intomasterfrom
exempt-alpha-spi-from-api-check
Closed

public-api-check: exempt alpha SPI APIs from version bump requirement#6312
jeanregisser wants to merge 1 commit intomasterfrom
exempt-alpha-spi-from-api-check

Conversation

@jeanregisser
Copy link
Copy Markdown
Member

Summary

Updates the public API check to exempt @_spi(*Alpha) declarations from the MINOR version bump requirement, alongside the existing @_spi(STP) exemption.

Also renames non_stp_spi_line? to stable_spi_line? to better reflect its updated purpose.

Motivation

Alpha SPI APIs (e.g. @_spi(CryptoOnrampAlpha)) are pre-release, unstable contracts not intended for general consumption. Requiring a MINOR version bump for changes to them doesn't make sense — they carry no stability guarantees.

This was surfaced by #6230, where the check incorrectly blocked a CryptoOnramp SDK PR for changing @_spi(CryptoOnrampAlpha) APIs.

Testing

Logic change is straightforward. The check is exercised on every PR via the verify-public-interface workflow.

Changelog

N/A, CI tooling change only.

APIs tagged with `@_spi(*Alpha)` are pre-release and not stable contracts,
so they should not require a MINOR version bump alongside `@_spi(STP)`.

Committed-By-Agent: claude
@jeanregisser jeanregisser requested review from a team as code owners April 7, 2026 17:24
@jeanregisser
Copy link
Copy Markdown
Member Author

Closing in favor of #6314 — after discussion with the iOS team, the check is working as intended. Alpha SPI changes should still require a MINOR bump to avoid silently breaking consumers like React Native.

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