-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Introducing Revapi into build system #6381
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0af6075
Introducing Revapi into build system. Currently it is configured to n…
JonathanGiles da3f64d
Add revapi versions to external-dependencies.txt
conniey 5456650
Fix lingering version number.
conniey 491d03b
Add semver ignore filter.
conniey 53a5569
Skip revapi during installation.
conniey 52b2319
Ignore packages that are under implementation.
conniey 359359b
Fail build if there are API inconsistencies.
conniey 7acb45c
Add versionFormat string to compare.
conniey d20f4d3
Update ignores or revapi.json
conniey 2922487
Skip revapi in azure-core-test
conniey 3337138
Enable dependency checking.
conniey e604994
Use resource file in sdk-build-tools instead of having to resolve rel…
conniey 7ecdace
Do not check dependencies.
conniey 7b6deea
Fixing new classes.
conniey c354b2d
Scope changes to certain classes.
conniey 26154da
Add ignores for storage.common
conniey 67113e4
Fixing other ignores
conniey f07e9e3
Remove duplicate spotbugs.skip
conniey 11a80d7
Revapi not needed for aggregate report.
conniey d6ed7fd
Fixing breaks in azure-core
conniey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
89 changes: 89 additions & 0 deletions
89
eng/code-quality-reports/src/main/resources/revapi/revapi.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| [ | ||
| { | ||
| "extension": "revapi.java", | ||
| "configuration": { | ||
| "filter": { | ||
| "packages": { | ||
| "regex": true, | ||
| "exclude": [ "com\\.azure\\..+\\.implementation(\\..+)?" ] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "extension": "revapi.semver.ignore", | ||
| "configuration": { | ||
| "enabled": true, | ||
| "versionIncreaseAllows": { | ||
| "major": "breaking", | ||
| "minor": "nonBreaking", | ||
| "patch": "equivalent" | ||
| }, | ||
| "passThroughDifferences": [ "java.class.nonPublicPartOfAPI" ] | ||
| } | ||
| }, | ||
| { | ||
| "extension": "revapi.ignore", | ||
| "configuration": [ | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class org\\.reactivestreams\\.Publisher", | ||
| "justification": "This class is part of the reactive streams initiative in Java." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class reactor\\.util\\.context\\.Context", | ||
| "justification": "Reactor is allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class com\\.fasterxml\\.jackson\\.databind\\.ObjectMapper", | ||
| "exampleUseChainInNewApi": ".*com\\.azure\\.core\\.util\\.serializer\\.JacksonAdapter.*", | ||
| "justification": "We allow this in com.azure.core.util.serializer.JacksonAdapter." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class reactor\\.core(\\..+)?", | ||
| "justification": "Reactor is allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class com\\.azure\\.core(?!\\.implementation)(\\..+)?", | ||
| "justification": "com.azure.core.* classes are allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class (io|reactor)\\.netty\\..+", | ||
| "exampleUseChainInOldApi": ".*com\\.azure\\.core\\.http\\.netty\\.NettyAsyncHttpClientBuilder.*", | ||
| "justification": "Dependencies are not checked. io.netty and reactor.netty are allowed in azure-core-http-netty." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class okhttp3\\..+", | ||
| "exampleUseChainInOldApi": ".*com\\.azure\\.core\\.http\\.okhttp\\.OkHttpAsyncHttpClientBuilder.*", | ||
| "justification": "Dependencies are not checked. okhttp3 is allowed in azure-core-http-okhttp." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class com\\.azure\\.storage\\..+", | ||
| "exampleUseChainInOldApi": ".*com\\.azure\\.storage\\..*", | ||
| "justification": "Dependencies are not checked. azure-storage-common is used in the storage modules." | ||
| }, | ||
| { | ||
| "regex": true, | ||
| "code": "java\\.missing\\.(oldClass|newClass)", | ||
| "new": "missing\\-class ((com\\.azure\\.messaging\\.eventhubs\\.models\\..+)|(com\\.azure\\.storage\\.blob\\.BlobContainerAsyncClient))", | ||
| "exampleUseChainInNewApi": ".*com\\.azure\\.messaging\\.eventhubs\\.checkpointstore\\.blob\\..*", | ||
| "justification": "azure-messaging-eventhubs and azure-storage-blob are used in the Event Hubs checkpoint store." | ||
| } | ||
| ] | ||
| } | ||
| ] |
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.