Skip to content

[changelog tool] Report added operation group classes correctly in changelog#48110

Merged
msyyc merged 3 commits into
mainfrom
fix-changelog-op-group-class
Jul 17, 2026
Merged

[changelog tool] Report added operation group classes correctly in changelog#48110
msyyc merged 3 commits into
mainfrom
fix-changelog-op-group-class

Conversation

@msyyc

@msyyc msyyc commented Jul 17, 2026

Copy link
Copy Markdown
Member

Description

For #48107

The changelog generation tool (scripts/breaking_changes_checker) mislabeled newly added operation group classes as models. For example, adding PrivateLinkResourcesOperations produced:

- Client `AttestationManagementClient` added operation group `private_link_resources`
- Added model `PrivateLinkResourcesOperations`

The second line is wrong — an operation group is not a model — and previously had to be corrected manually in a post-generation optimization step.

Changes

  • changelog_tracker.py: added ChangeType.ADDED_OPERATION_GROUP_CLASS and ADDED_OPERATION_GROUP_CLASS_MSG = "Added operation group \{}`", and a new branch in run_non_breaking_class_level_diff_checks()that emits it for operation group classes instead ofAdded model`.
  • breaking_changes_tracker.py: added is_operation_group() helper that recognizes an operation group class by name ending with operations (case-insensitive, covering the default Operations class too) and being defined in an operations module (module name ending with operations), consistent with the existing attr_type.lower().endswith("operations") convention used elsewhere.
  • The existing run_async_cleanup already collapses the sync/aio duplicate since its dedup key excludes the module name.

Testing

  • Added test_added_operation_group_class_not_labeled_as_model verifying exactly one Added operation group entry (sync/async collapsed) and zero Added model entries.
  • pytest tests/test_changelog.py — 22 passed, 1 skipped.
  • pytest tests/test_breaking_changes.py — 19 passed, 1 skipped.

Newly added operation group classes (e.g. PrivateLinkResourcesOperations)
were mislabeled as 'Added model'. Detect operation group classes by name
ending with 'operations' in an operations module and emit 'Added operation
group' instead, removing the need for manual changelog optimization.

Fixes #48107

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc14cf8a-5eef-4d13-9581-59d1e5491585
Copilot AI review requested due to automatic review settings July 17, 2026 06:07
@msyyc
msyyc requested a review from danieljurek as a code owner July 17, 2026 06:07
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Corrects changelog classification for newly added operation-group classes.

Changes:

  • Adds a dedicated operation-group class change type and message.
  • Detects operation groups by class and module naming conventions.
  • Tests correct labeling and sync/async deduplication.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
scripts/breaking_changes_checker/changelog_tracker.py Reports operation-group classes correctly.
scripts/breaking_changes_checker/breaking_changes_tracker.py Adds operation-group detection.
scripts/breaking_changes_checker/tests/test_changelog.py Covers classification and deduplication.

The four added operation group classes are now reported as 'Added operation
group' instead of 'Added model'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc14cf8a-5eef-4d13-9581-59d1e5491585
Copilot AI review requested due to automatic review settings July 17, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 17, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@msyyc msyyc changed the title Report added operation group classes correctly in changelog [changelog tool] Report added operation group classes correctly in changelog Jul 17, 2026
@msyyc
msyyc merged commit e9e22cb into main Jul 17, 2026
17 checks passed
@msyyc
msyyc deleted the fix-changelog-op-group-class branch July 17, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants