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

Same-version breaking change check added BreakingChangeReviewRequired instead of NewApiVersionRequired #7673

Closed
konrad-jamrozik opened this issue Feb 13, 2024 · 3 comments
Assignees
Labels
Breaking Changes Improvements to Breaking Changes tooling bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.

Comments

@konrad-jamrozik
Copy link
Contributor

konrad-jamrozik commented Feb 13, 2024

I suspect it may be because of the BreakingChangeRules.yml entry that instructed the automation to add BreakingChangeReviewRequired.

This bug likely was introduced while working on:

Specifically:

@konrad-jamrozik konrad-jamrozik added Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo. labels Feb 13, 2024
@konrad-jamrozik konrad-jamrozik self-assigned this Feb 13, 2024
@konrad-jamrozik konrad-jamrozik moved this from 🤔 Triage to 📋 Backlog in Azure SDK EngSys 🚢🎉 Feb 13, 2024
@konrad-jamrozik konrad-jamrozik moved this to 📋 Backlog in Spec PR Tools Feb 13, 2024
@konrad-jamrozik konrad-jamrozik added bug This issue requires a change to an existing behavior in the product in order to be resolved. Breaking Changes Improvements to Breaking Changes tooling labels Feb 13, 2024
@konrad-jamrozik
Copy link
Contributor Author

konrad-jamrozik commented Feb 13, 2024

Looks like in this specific case the label BreakingChangeReviewRequired was added manually by @mentat9:

Unclear yet why the automation didn't do it. I will investigate.

This bug report let me discover a case that I didn't consider before: if the "same version breaking changes" check (Swagger BreakingChange) reports a failure, it may report a BreakingChangeReviewRequired instead of VersioningReviewRequired. Example rule definition showing this: SameVersion / RemovePath.

With the new labels human reviewers need to remember to apply appropriate "review required" label and then, use appropriate, matching "approved" label, if applicable. Specifically:

BreakingChangeReviewRequired -> BreakingChange-Approved-*
VersioningChangeReviewRequired -> Versioning-Approved-*

Details at:

In addition, perhaps we should denote any kind of breaking changes in same-version breaking changes as VersioningReviewRequired. This nuance escaped me because previous the label was named NewApiVersionRequied. With the new name the meaning has changed.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🎊 Closed in Spec PR Tools Feb 13, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🎊 Closed in Azure SDK EngSys 🚢🎉 Feb 13, 2024
@github-project-automation github-project-automation bot moved this from 🎊 Closed to 🤔 Triage in Azure SDK EngSys 🚢🎉 Feb 13, 2024
@konrad-jamrozik konrad-jamrozik moved this from 🤔 Triage to 📋 Backlog in Azure SDK EngSys 🚢🎉 Feb 13, 2024
@konrad-jamrozik konrad-jamrozik moved this from 🎊 Closed to 📋 Backlog in Spec PR Tools Feb 13, 2024
@konrad-jamrozik
Copy link
Contributor Author

konrad-jamrozik commented Feb 17, 2024

We decided to go with proposal B from this gist

This is captured by this PR:
Pull Request 528285: Make automation add VersioningReviewRequired instead of NewApiVersionRequired. Assorted refactoring and new breaking changes types for labels.

I have a "confusion matrix" diagram elaborating on the new behavior here:

Related work:

  • Pull Request 529441: Bugfix: the new BreakingChange-Approval-* labels now will be recognized by automation managing ARM review
  • Pull Request 528285: Make automation add VersioningReviewRequired instead of NewApiVersionRequired. Assorted refactoring and new breaking changes types for labels.

@konrad-jamrozik konrad-jamrozik moved this from 📋 Backlog to 🐝 Dev in Azure SDK EngSys 🚢🎉 Jun 28, 2024
@konrad-jamrozik konrad-jamrozik moved this from 📋 Backlog to 🐝 In Progress in Spec PR Tools Jun 28, 2024
@github-project-automation github-project-automation bot moved this from 🐝 Dev to 🎊 Closed in Azure SDK EngSys 🚢🎉 Jul 13, 2024
@github-project-automation github-project-automation bot moved this from 🐝 In Progress to 🎊 Closed in Spec PR Tools Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Changes Improvements to Breaking Changes tooling bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.
Projects
Archived in project
Status: 🎊 Closed
Development

No branches or pull requests

1 participant