Skip to content

Setup binary compatibility validator#1124

Merged
LikeTheSalad merged 1 commit into
open-telemetry:mainfrom
embrace-io:fractalwrench/binary-compat-validation
Aug 6, 2025
Merged

Setup binary compatibility validator#1124
LikeTheSalad merged 1 commit into
open-telemetry:mainfrom
embrace-io:fractalwrench/binary-compat-validation

Conversation

@fractalwrench
Copy link
Copy Markdown
Member

Goal

This changeset adds Kotlin's binary compatibility validator which generates a dump of API signatures and checks whether the project source code matches the known dump, thus allowing any API changes to be detected. The project works on Java & Kotlin files that are publicly exposed. ./gradlew apiCheck runs the task, ./gradlew apiDump regenerates the API dump file. The check will automatically run with ./gradlew check so CI should catch any regressions/changes in the public API.

I've added this to any module that applies the otel.android-library-conventions gradle script and have generated a dump file for the existing APIs.

Closes #217

@fractalwrench fractalwrench requested a review from a team as a code owner August 4, 2025 09:21
Comment thread test-common/api/test-common.api Outdated
@fractalwrench fractalwrench force-pushed the fractalwrench/binary-compat-validation branch from e2923fb to 6253d2a Compare August 4, 2025 15:02
@LikeTheSalad LikeTheSalad merged commit 9d2c1cf into open-telemetry:main Aug 6, 2025
6 checks passed
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.

Public API compatibility validator

2 participants