Skip to content

[release/v7.4] Fix path to metadata.json in channel selection script#26399

Merged
TravisEz13 merged 1 commit intoPowerShell:release/v7.4from
TravisEz13:backport/release/v7.4/pr/26180
Nov 10, 2025
Merged

[release/v7.4] Fix path to metadata.json in channel selection script#26399
TravisEz13 merged 1 commit intoPowerShell:release/v7.4from
TravisEz13:backport/release/v7.4/pr/26180

Conversation

@TravisEz13
Copy link
Member

Backport of #26180 to release/v7.4

Triggered by @TravisEz13

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

Tooling Impact

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

This backport fixes the path to metadata.json in the channel selection script (.pipelines/templates/channelSelection.yml). The original path $repoRoot/tools/metadata.json was incorrect in the Azure DevOps pipeline context and has been updated to $(Build.SourcesDirectory)/PowerShell/tools/metadata.json.

This change was part of PR #26180 (merge of v7.6.0-preview.5 release branch back to master), specifically from commit 873db35. The fix is critical for the release pipeline's channel selection logic to function correctly.

Regression

  • Yes
  • No

This is a fix for infrastructure, not a regression.

Testing

The fix has been validated in the v7.6.0-preview.5 release branch and merged back to master via PR #26180. It corrects the pipeline variable reference to properly locate the metadata.json file during builds.

Risk

  • High
  • Medium
  • Low

Medium - This change modifies CI/CD infrastructure (Azure DevOps pipeline templates). While the change itself is small and straightforward (correcting a file path), it affects the release pipeline's channel selection logic. The risk is medium because:

  1. The change impacts release pipeline automation
  2. Incorrect channel selection could affect package publishing
  3. However, the fix has already been validated in the v7.6.0-preview.5 branch and master
  4. Not taking this change creates technical debt and could cause issues in future releases when the pipeline tries to determine the correct channel (LTS/Stable/Preview)

The fix aligns the 7.4 release branch with the corrected implementation already in master, reducing divergence in pipeline infrastructure.

@TravisEz13 TravisEz13 requested a review from a team as a code owner November 6, 2025 20:11
Copilot AI review requested due to automatic review settings November 6, 2025 20:11
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 6, 2025
Copy link
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 modifies the Windows Store publishing pipeline to adjust configuration handling, remove redundant tasks, and fix variable references for the MSIX bundle creation and publishing process.

Key Changes:

  • Commented out the MSIX bundle signing task
  • Removed the separate StoreBroker package creation task for Stable/LTS channels
  • Updated PDP file modification to use XML namespaces and set attributes instead of inner text
  • Fixed variable reference in channelSelection.yml from undefined $repoRoot to explicit Build.SourcesDirectory path

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.pipelines/templates/package-create-msix.yml Commented out signing task, added AppId configuration fields, updated XML namespace handling for PDP files, removed duplicate StoreBroker package task and associated variable assignments, changed service endpoint to Private, added store failure log upload
.pipelines/templates/channelSelection.yml Fixed metadata.json path from undefined $repoRoot variable to explicit $(Build.SourcesDirectory)/PowerShell/tools/metadata.json
.pipelines/store/SBConfig.json Added "PDP.xml" to PDPInclude array and changed targetPublishMode from "NotSet" to "Immediate"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TravisEz13 TravisEz13 force-pushed the backport/release/v7.4/pr/26180 branch from 65dd88b to 02630d3 Compare November 6, 2025 22:16
@TravisEz13 TravisEz13 merged commit cd673a3 into PowerShell:release/v7.4 Nov 10, 2025
35 checks passed
@TravisEz13 TravisEz13 deleted the backport/release/v7.4/pr/26180 branch November 10, 2025 20:07
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.

3 participants