Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for checking package exports for changed API #1558

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Jan 13, 2025

Currently API tools only check for API changes on the bundle level, but even more important are checks on the exported packages. If the package version is not properly incremented this can lead to method not found or similar errors, also consumers of the package can not depend on the package version reliable to get new API.

This now adds some basic checks to check for API changes on the package level, compare it with the baseline and suggest a new version based on the resulting delta being a breaking or non breaking change.

This is a very basic first step. We need (see TODOs) and likely want to further improve this when we use it, for example currently all deltas are assumed to be important, we might discover places where it is actually not required to make a minor change but only a micro change (currently not used at all).

Currently API tools only check for API changes on the bundle level, but
even more important are checks on the exported packages. If the bundle
version is not properly incremented this can lead to method not found or
similar errors, also consumers of the package can not depend on the
package version reliable to get new API.

This now adds some basic checks to check for API changes on the package
level, compare it with the baseline and suggest a new version based on
the resulting delta being a breaking or non breaking change.
Copy link

Test Results

   285 files     285 suites   50m 45s ⏱️
 3 586 tests  3 510 ✅  76 💤 0 ❌
10 950 runs  10 719 ✅ 231 💤 0 ❌

Results for commit 168963c.

@laeubi
Copy link
Contributor Author

laeubi commented Jan 13, 2025

Only old issues (due to java 20) and mirror timeouts.

@laeubi laeubi merged commit 4ca541b into eclipse-pde:master Jan 13, 2025
13 of 18 checks passed
@akurtakov
Copy link
Member

Only old issues (due to java 20) and mirror timeouts.

#1560 should make only issues due to the PR itself to fail it.

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.

2 participants