Skip to content

Adding Minor Releases to Patch Release Preparation - #51025

Merged
Jair Myree (jairmyree) merged 1 commit into
mainfrom
jairmyree/update-patch-release-with-minor
Nov 2, 2026
Merged

Jair Myree (jairmyree) merged 1 commit into
mainfrom
jairmyree/update-patch-release-with-minor

Conversation

@jairmyree

Copy link
Copy Markdown
Member

Adding the ability to release patch updates as minor version updates to support the scenario where dependency updates are significant enough to warrant a minor release.

- Updated the patch release pipeline to allow for minor version increments via the `IncrementMinorVersion` parameter.
- Enhanced documentation to clarify the new versioning behavior and usage.
- Modified scripts to handle minor version logic in version calculations and changelog updates.
- Added tests to ensure correct behavior for both patch and minor version increments.
@jairmyree

Copy link
Copy Markdown
Member Author

Closes #51013

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
33 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.

🟡 Changes recommended

The merge-back behavior can cause later version preparation to overwrite a published changelog heading, and both new regression test suites lack the UnitTest tag required for CI execution.

2 open issues
What changed in this PR

Adds opt-in minor releases to the dependency-update preparation workflow for the Azure SDK for Java BOM, while keeping patch increments as the default.

Changes:

  • Passes IncrementMinorVersion from the prepare pipeline through package selection and release generation.
  • Adds tests for minor-version calculation, dependency propagation, and merge-back behavior.
  • Documents when to choose minor releases and how to validate them.
File Description
eng/​scripts/​Update-Artifacts-List-For-Patch-Release.ps1 Forwards minor mode to artifact selection.
eng/​scripts/​tests/​patchhelpers.tests.ps1 Tests minor targets, dependency propagation, and qualified overrides.
eng/​scripts/​tests/​patch-mergeback-helpers.tests.ps1 Tests minor-version ordering and merge-back metadata.
eng/​scripts/​tests/​Generate-Patches-For-Automatic-Releases.tests.ps1 Adds pipeline binding and version-forwarding tests.
eng/​scripts/​tests/​Create-Patch-Mergeback.tests.ps1 Extends merge-back integration coverage to minor releases.
eng/​scripts/​tests/​bomhelpers.tests.ps1 Tests release targets and stable-source reset behavior.
eng/​scripts/​patchhelpers.ps1 Applies minor increments during dependency analysis.
eng/​scripts/​generatepatch.ps1 Exposes and forwards the minor-version switch.
eng/​scripts/​Generate-Patches-For-Automatic-Releases.ps1 Carries minor mode through overrides and package preparation.
eng/​scripts/​bomhelpers.ps1 Calculates minor targets and updates release messaging.
eng/​pipelines/​Patch-Release-README.md Documents version selection and validation.
eng/​pipelines/​patch-release-prepare.yml Adds a boolean option defaulting to patch mode.

Review effort: Balanced

@jairmyree
Jair Myree (jairmyree) merged commit 250092c into main Nov 2, 2026
37 checks passed
@jairmyree
Jair Myree (jairmyree) deleted the jairmyree/update-patch-release-with-minor branch November 2, 2026 01:37
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