{{ message }}
[release/v7.5.6] release-upload-buildinfo: replace version-comparison channel gating with metadata flags#27167
Merged
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5.6from Apr 3, 2026
Conversation
…ith metadata flags (PowerShell#27074)
Contributor
There was a problem hiding this comment.
Pull request overview
Backports the release-upload-buildinfo pipeline logic to stop using version comparisons for channel gating, and instead rely on explicit metadata flags while also publishing a version-specific build-info file.
Changes:
- Adds
$isPreview/$isStablebooleans (derived from the build-info filename) to simplify preview vs stable/LTS branching. - Gates
stable.jsonupload solely onStableRelease.PublishToChannelsfromtools/metadata.json(avoids relying on potentially stale version-tag fields). - Always creates and uploads a version-specific
{Major}-{Minor}.jsonfor stable (non-preview) builds, controlled by newUploadVersionSpecific/VersionSpecificBuildInfoFilevariables.
daxian-dbw
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Backport of #27074 to release/v7.5.6
Triggered by @adityapatwardhan on behalf of @app/copilot-swe-agent
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Backports release-upload-buildinfo channel gating metadata fixes used by release build and packaging upload automation.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Verified cherry-pick applied cleanly with no conflicts in the backport branch and validated branch creation against release/v7.5.6 target.
Risk
REQUIRED: Check exactly one box.
The change is scoped to release build-info upload automation and channel gating logic, with moderate risk limited to release metadata publication behavior.