Repository navigation
chore(api-gate): clear the installed baseline before comparing so the branch build doesn't shadow it - #491
Merged
Conversation
… branch build doesn't shadow it
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #491 +/- ##
=========================================
Coverage 46.70% 46.70%
Complexity 692 692
=========================================
Files 209 209
Lines 6276 6276
Branches 759 759
=========================================
Hits 2931 2931
Misses 2783 2783
Partials 562 562 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API compatibility gate compares the current build against the last stable release, but when the branch version equals the baseline (the normal case between releases) the build step first installs that version into the local Maven repository, so japicmp resolved the branch's own build as the baseline and compared it against itself, passing regardless of what the PR changed.
The workflow now clears that baseline from the local repository before running the comparison, forcing it to re-resolve from Maven Central, and the pom comment documents the same clearing step for local runs so the trap is visible there too.