Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Nov 10, 2025

Backport of #26414 to release/v7.4

Triggered by @TravisEz13 on behalf of @TravisEz13

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

Tooling Impact

  • Required tooling change

Moves package validation from the release pipeline to the package pipeline, improving pipeline organization and allowing package validation to run earlier in the process.

Regression

  • No

This is an infrastructure improvement to reorganize pipeline stages.

Testing

Verified by:

  1. Reviewing pipeline structure changes
  2. Confirming validatePackages stage is properly moved to PowerShell-Packages-Official.yml
  3. Ensuring dependencies are correctly updated

Risk

  • High
  • Medium
  • Low

High risk due to changes in release pipeline infrastructure, but necessary for better pipeline organization. The change improves maintainability by moving package validation to where packages are built rather than in the release pipeline.

Merge Conflicts

The following file had conflicts during cherry-pick:

.pipelines/PowerShell-Release-Official.yml

Line: 360 (PublishMsix stage dependsOn)

Conflict Type: Multi-line dependency format vs single-line

Root Cause: The conflict arose because commit 5e05175 (authored by Justin Chung @jshigetomi on Oct 9, 2025, titled "Make MSIX publish stage dependent on SetReleaseTagandContainerName stage") added the setReleaseTagAndChangelog dependency to the PublishMsix stage in master, but this commit was never backported to release/v7.4. This appears to have been a direct commit to master rather than a PR.

Original State:

  • release/v7.4 had: dependsOn: PushGitTagAndMakeDraftPublic (single dependency)
  • master/PR 26414 has: dependsOn: with both setReleaseTagAndChangelog and PushGitTagAndMakeDraftPublic (multi-line format)

Resolution: Accepted the incoming change from master, which includes the setReleaseTagAndChangelog dependency. This brings the v7.4 branch in line with master's improved stage dependency chain, ensuring MSIX publishing occurs after both the release tag/changelog is set AND the GitHub draft is made public.

Manual Changes: None beyond resolving the conflict markers. The setReleaseTagAndChangelog stage already exists in release/v7.4, so adding it as a dependency is safe and improves the pipeline's execution order.

Note: PR 26414's only actual change to this section was removing trailing whitespace from the dependsOn: line. The additional setReleaseTagAndChangelog dependency came along as part of the cherry-pick from master due to commit 5e05175 which was never backported.

Copilot AI review requested due to automatic review settings November 10, 2025 22:19
@TravisEz13 TravisEz13 requested a review from a team as a code owner November 10, 2025 22:19
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 backports #26414 to release/v7.4, moving package validation from the release pipeline to the package pipeline where packages are built. This reorganization allows package validation to run earlier in the process and improves pipeline organization.

Key Changes:

  • Moves the validatePackages stage from PowerShell-Release-Official.yml to PowerShell-Packages-Official.yml
  • Updates stage dependencies in the release pipeline to remove references to the moved stage
  • Adds setReleaseTagAndChangelog as a dependency for the PublishMsix stage (brought in from master during cherry-pick resolution)

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.pipelines/PowerShell-Release-Official.yml Removes validatePackages stage and its dependency reference; updates PublishMsix stage dependencies
.pipelines/PowerShell-Packages-Official.yml Adds validatePackages stage that depends on the upload stage

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

@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 10, 2025
@TravisEz13 TravisEz13 merged commit d0ae31b into PowerShell:release/v7.4 Nov 11, 2025
36 checks passed
@TravisEz13 TravisEz13 deleted the backport/release/v7.4/26414-1934b837a branch November 11, 2025 20:25
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.

2 participants