Skip to content

Workaround for changelog generation when last stable version is outdated#47047

Merged
msyyc merged 4 commits into
Azure:mainfrom
msyyc:fix/changelog-version-mgmt-sql
May 22, 2026
Merged

Workaround for changelog generation when last stable version is outdated#47047
msyyc merged 4 commits into
Azure:mainfrom
msyyc:fix/changelog-version-mgmt-sql

Conversation

@msyyc
Copy link
Copy Markdown
Member

@msyyc msyyc commented May 21, 2026

Workaround for #46856

Description

Adds a temporary workaround in get_version_info for packages whose last stable PyPI version is outdated and causes issues during changelog generation.

For �zure-mgmt-sql (stable 3.0.1), fall back to the latest release (preview) when computing last_version so changelog generation works correctly.

Change

  • eng/tools/azure-sdk-tools/packaging_tools/package_utils.py: special-case azure-mgmt-sql==3.0.1 to use the latest release instead of the latest stable.

This is intended as a stopgap until a more general solution is in place.

@msyyc msyyc marked this pull request as ready for review May 21, 2026 09:51
Copilot AI review requested due to automatic review settings May 21, 2026 09:51
@msyyc msyyc requested review from danieljurek and scbedd as code owners May 21, 2026 09:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a stopgap workaround in the packaging tools to avoid using an outdated stable PyPI release (specifically azure-mgmt-sql==3.0.1) when determining version info for tooling that generates changelogs / computes next versions.

Changes:

  • Add a package-specific override in get_version_info to fall back from a known-problematic stable version to the latest PyPI release.

Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 1 out of 1 changed files in this pull request and generated 4 comments.

Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
Comment thread eng/tools/azure-sdk-tools/packaging_tools/package_utils.py
@msyyc msyyc enabled auto-merge (squash) May 22, 2026 04:05
@msyyc msyyc disabled auto-merge May 22, 2026 04:54
@msyyc msyyc merged commit 5f1bd72 into Azure:main May 22, 2026
19 checks passed
ninghu pushed a commit to ninghu/azure-sdk-for-python that referenced this pull request May 22, 2026
…ted (Azure#47047)

* Workaround for changelog generation when last stable version is outdated

* add log

* update with review comments
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