[release/v7.6] Add rebuild branch support with conditional MSIX signing#26559
Closed
adityapatwardhan wants to merge 1 commit intoPowerShell:release/v7.6from
Closed
Conversation
…26415) Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backports critical rebuild branch detection and handling improvements from the main branch (#26415) to the release/v7.6 LTS branch. The changes add safety checks to prevent accidental LTS package creation from rebuild branches (e.g., rebuild/v7.4.13-rebuild.5) and implement conditional MSIX signing based on build type. This is essential infrastructure for managing rebuild workflows that shouldn't be treated as official LTS releases.
Key changes include:
- New
rebuild-branch-check.ymltemplate for consistent rebuild branch detection across all platforms - Enhanced LTS package logic that excludes rebuild branches from LTS package creation
- Conditional MSIX signing that only occurs for official builds
- Improved diagnostic logging throughout the pipeline templates
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.pipelines/templates/rebuild-branch-check.yml |
New template that detects rebuild branches by matching branch name pattern and sets pipeline variable for downstream use |
.pipelines/templates/windows-package-build.yml |
Adds rebuild branch check and prevents LTS package creation for rebuild branches |
.pipelines/templates/mac-package-build.yml |
Adds rebuild branch check and prevents LTS package creation for rebuild branches |
.pipelines/templates/linux-package-build.yml |
Adds rebuild branch check and prevents LTS package creation for rebuild branches |
.pipelines/templates/package-create-msix.yml |
Adds OfficialBuild parameter and conditional signing; enhances variable setting with verbose logging |
.pipelines/templates/channelSelection.yml |
Adds rebuild branch detection with documented regex duplication; forces Preview channel for rebuild branches |
.pipelines/PowerShell-Packages-Official.yml |
Passes OfficialBuild parameter to MSIX template |
.pipelines/PowerShell-Coordinated_Packages-Official.yml |
Adds rebuild branch check to release.json creation to prevent LTS marking |
.pipelines/EV2Specs/ServiceGroupRoot/Shell/Run/Run.ps1 |
Adds rebuild version detection to prevent LTS package publishing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
daxian-dbw
approved these changes
Dec 2, 2025
Member
Author
|
Redoing this backport. |
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 #26415 to release/v7.6
Triggered by @adityapatwardhan on behalf of @TravisEz13
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
This backports critical rebuild branch detection and handling improvements to prevent accidental LTS releases from rebuild branches. Includes conditional MSIX signing and enhanced pipeline diagnostics.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Original PR added comprehensive rebuild branch detection across all platform build templates. Backport verified by successful cherry-pick and conflict resolution. All changes are to build/packaging pipeline templates with no runtime code changes.
Risk
REQUIRED: Check exactly one box.
Changes only affect build and packaging pipeline templates. No runtime PowerShell code is modified. The enhancements add safety checks to prevent incorrect LTS package creation and improve diagnostics through better logging.
Merge Conflicts
Resolved conflict in .pipelines/templates/package-create-msix.yml where enhanced variable setting code with verbose logging was missing from release/v7.6 branch. Applied the complete enhancement from original PR.