[release/v7.5.6] release-upload-buildinfo: replace version-comparison channel gating with metadata flags by adityapatwardhan · Pull Request #27167 · PowerShell/PowerShell · GitHub
Skip to content

[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
adityapatwardhan:backport/release/v7.5.6/27074-8947ed62e
Apr 3, 2026
Merged

[release/v7.5.6] release-upload-buildinfo: replace version-comparison channel gating with metadata flags#27167
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5.6from
adityapatwardhan:backport/release/v7.5.6/27074-8947ed62e

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

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

  • Required tooling change
  • Optional tooling change (include reasoning)

Backports release-upload-buildinfo channel gating metadata fixes used by release build and packaging upload automation.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

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.

  • High
  • Medium
  • Low

The change is scoped to release build-info upload automation and channel gating logic, with moderate risk limited to release metadata publication behavior.

@adityapatwardhan adityapatwardhan requested a review from a team as a code owner April 2, 2026 21:39
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 21:39
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

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 / $isStable booleans (derived from the build-info filename) to simplify preview vs stable/LTS branching.
  • Gates stable.json upload solely on StableRelease.PublishToChannels from tools/metadata.json (avoids relying on potentially stale version-tag fields).
  • Always creates and uploads a version-specific {Major}-{Minor}.json for stable (non-preview) builds, controlled by new UploadVersionSpecific / VersionSpecificBuildInfoFile variables.

@adityapatwardhan adityapatwardhan merged commit a62f957 into PowerShell:release/v7.5.6 Apr 3, 2026
39 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.5.6/27074-8947ed62e branch April 3, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants