From 1589d7e34f94c14db3e7e198b826f10c5bb70ff5 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Tue, 26 Mar 2024 10:39:15 -0700 Subject: [PATCH] Update ci-fix.md: dedup breaking changes guidance (#28441) --- documentation/ci-fix.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/documentation/ci-fix.md b/documentation/ci-fix.md index 6e7afa84bd87..37939d0ee8ec 100644 --- a/documentation/ci-fix.md +++ b/documentation/ci-fix.md @@ -126,20 +126,11 @@ Refer to [Semantic and Model Violations Reference](https://github.com/Azure/azur ## `Swagger BreakingChange` and `BreakingChange(Cross-Version)` -- An API contract is identified by its api-version value. Once published, no changes to this API contract are allowed. This applies regardless of whether the API contract is for private preview, public preview, or GA (stable). - - The same-version breaking change linter rules check for changes to an existing api-version OpenAPI spec. - - When introducing a new API contract (preview or not), the new API contract must be backwards compatible with the previous GA’s API contract. - - However, during a (private or public) preview cycle, a new preview API contract does not have to be backwards compatible with the previous preview API contract although it must still be backwards compatible with the latest GA API contract. - - The cross version breaking change linter rules checks for this by comparing the new OpenAPI spec with the latest GA OpenAPI spec. If there is no latest GA OpenAPI spec, then the latest preview if it > 1 year old. If nether a GA or preview > 1 year old exists, then the OpenAPI spec is considered good. - -### Adding label on PR automatically - -The breaking change check has two types of violations: one is breaking change in the same version but not breaking change in a new version, the other is breaking change even in a new version. -For the former, a label 'NewApiVersionRequired' will be added automatically; For the latter, a label 'BreakingChangeReviewRequired' will be added automatically. Adding each label will trigger a github comment with guldance on how to fix. +See [aka.ms/azsdk/pr-brch-deep](https://aka.ms/azsdk/pr-brch-deep). If you want a quick read, see only [the `summary` section](https://aka.ms/azsdk/pr-brch-deep#summary). ### Run `oad` locally -To repro issues with "breaking changes" checks, you can locally run the tool that powers them [Azure/openapi-diff](https://github.com/Azure/openapi-diff) aka `oad`: +To repro issues with "breaking changes" checks, you can locally run the tool that powers them: [Azure/openapi-diff](https://github.com/Azure/openapi-diff), aka `oad`: ``` npm install -g @azure/oad oad compare @@ -306,4 +297,4 @@ Following checks have been removed from the validation toolchain as of August 20 [aka.ms/azsdk/support/specreview-channel]: https://aka.ms/azsdk/support/specreview-channel [aka.ms/azsdk/support]: https://aka.ms/azsdk/support [TypeSpec Discussions Teams channel]: https://teams.microsoft.com/l/channel/19%3A906c1efbbec54dc8949ac736633e6bdf%40thread.skype/TypeSpec%20Discussion%20%F0%9F%90%AE?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47 -[APIView Support Teams Channel]: https://teams.microsoft.com/l/channel/19%3A3adeba4aa1164f1c889e148b1b3e3ddd%40thread.skype/APIView?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47 \ No newline at end of file +[APIView Support Teams Channel]: https://teams.microsoft.com/l/channel/19%3A3adeba4aa1164f1c889e148b1b3e3ddd%40thread.skype/APIView?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47