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

Breaking Changes PR check not flagging removed property as breaking #3982

Closed
mikekistler opened this issue Aug 18, 2022 · 7 comments
Closed
Assignees
Labels
Spec PR Tools Tooling that runs in azure-rest-api-specs repo.

Comments

@mikekistler
Copy link
Member

The Breaking Changes PR check in the azure-rest-api-specs repo is failing to flag a removed property as breaking and requiring a Breaking Change review.

REST API PR: Azure/azure-rest-api-specs#20009

The Breaking Changes-Cross Version PR check issued a warning for the removed property:

image

Here is the actual change:

image

Any property being removed should be flagged as a breaking change even in a new API version.

cc: @JeffreyRichter @srmantha

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 18, 2022
@mikekistler mikekistler added Spec PR Tools Tooling that runs in azure-rest-api-specs repo. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Aug 18, 2022
@jianyexi
Copy link

@mikekistler this is because all the api-versions of the RP are preview and no stable version, so the breaking change are allowed per breaking change policy , then we flag it as warning

@mikekistler
Copy link
Member Author

Thanks @jianyexi, that's good to know. Could you please update the breaking changes doc in your PR to explain this subtle point? Thx.

@jianyexi
Copy link

@mikekistler
Copy link
Member Author

Fair enough.

@mikekistler
Copy link
Member Author

mikekistler commented Sep 5, 2022

It seems that the situation is not quite as simple as this. The breaking changes check does flag some breaking changes as errors even when there is no prior GA version. PR #8244 is an example:

image

What is the explanation for why these breaking changes are reported as errors even though there is no prior GA version?

@jianyexi
Copy link

jianyexi commented Sep 6, 2022

if we can know the last preview is over 1 year (consider the api-version as date ), we will consider it as stable version, it's already described in the documentation

@jianyexi
Copy link

jianyexi commented Sep 6, 2022

One exception is that some data-plane Api-version follow the pattern like 'preview/v1', so we always treat them as preview version. let me know if you want to have different strategy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec PR Tools Tooling that runs in azure-rest-api-specs repo.
Projects
Status: 🎊 Closed
Development

No branches or pull requests

2 participants