Skip to content

[release/v7.4.15] release-upload-buildinfo: replace version-comparison channel gating with metadata flags#27147

Merged
adityapatwardhan merged 1 commit intoPowerShell:release/v7.4.15from
adityapatwardhan:backport/release/v7.4.15/27074-8947ed62e
Apr 3, 2026
Merged

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

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #27074 to release/v7.4.15

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 buildinfo publishing logic to gate stable uploads via metadata flags and always publish version-specific non-preview buildinfo files.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-pick applied to release/v7.4.15 with one conflict in .pipelines/templates/release-upload-buildinfo.yml, resolved by preserving metadata-flag channel-gating behavior from the original PR. Verified resulting script includes UploadVersionSpecific variable wiring, stable gating by StableRelease.PublishToChannels, and upload task condition updates.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Scoped pipeline-template changes in a single file with behavior already validated in main; moderate risk due to release publishing path impact but no broad runtime code changes.

Merge Conflicts

Resolved one conflict in .pipelines/templates/release-upload-buildinfo.yml around obsolete StableReleaseTag comparison by keeping the metadata-flag guidance and logic from PR #27074.

@adityapatwardhan adityapatwardhan requested a review from a team as a code owner April 1, 2026 23:46
@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 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 23:46
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

Backport of main-branch change (#27074) to the release/v7.4.15 branch, updating the release buildinfo upload template to use tools/metadata.json publish flags (instead of version-tag comparisons) for channel gating and to always publish a version-specific buildinfo file for non-preview releases.

Changes:

  • Replace stable channel gating based on release-tag/version comparisons with gating based on StableRelease.PublishToChannels metadata flag.
  • Introduce UploadVersionSpecific / VersionSpecificBuildInfoFile and upload {Major}-{Minor}.json for non-preview (stable/LTS) builds.
  • Refactor preview/stable checks to use boolean flags derived from the buildinfo JSON file name.

@adityapatwardhan adityapatwardhan merged commit ac37f6c into PowerShell:release/v7.4.15 Apr 3, 2026
40 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.4.15/27074-8947ed62e branch April 3, 2026 17:31
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.

5 participants