Skip to content

[release/v7.5] Hardcode Official templates#26968

Merged
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5from
adityapatwardhan:backport/release/v7.5/26928-eb1915e76
Mar 9, 2026
Merged

[release/v7.5] Hardcode Official templates#26968
adityapatwardhan merged 1 commit intoPowerShell:release/v7.5from
adityapatwardhan:backport/release/v7.5/26928-eb1915e76

Conversation

@adityapatwardhan
Copy link
Member

Backport of #26928 to release/v7.5

Triggered by @adityapatwardhan on behalf of @jshigetomi

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)

Removes OfficialBuild parameter from pipeline YAML files and hardcodes official OneBranch templates to comply with 1ES Drift Management policy.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Build pipeline YAML changes only — verified by pipeline execution. No functional code changes.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Removes conditional OfficialBuild parameter logic and hardcodes official templates. This aligns with 1ES Drift Management policy compliance. Same change was already successfully backported to release/v7.4.

Merge Conflicts

Conflict in .pipelines/PowerShell-Coordinated_Packages-Official.yml: The release/v7.5 branch had a templateFile variable (referencing OfficialBuild) where master had CodeQL variables. Resolved by removing the templateFile variable (the intent of the PR) without adding the CodeQL variables (which were pre-existing context on master, not part of this PR's changes).

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

Backport to release/v7.5 that removes the OfficialBuild queue-time parameter and hardcodes all “Official” pipelines to use the official OneBranch governed templates, aligning these pipelines with 1ES Drift Management policy.

Changes:

  • Removed OfficialBuild parameter usage and hardcoded pipeline names to prod.true.
  • Replaced conditional template selection (templateFile) with direct references to official OneBranch templates.
  • Hardcoded official-only values (e.g., releaseEnvironment: 'Production', ps_official_build: true) where previously conditional.

Reviewed changes

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

Show a summary per file
File Description
.pipelines/PowerShell-vPack-Official.yml Drops OfficialBuild parameter and hardcodes the official governed template reference.
.pipelines/PowerShell-Release-Official.yml Hardcodes official template + production environment; removes conditional template selection.
.pipelines/PowerShell-Release-Official-Azure.yml Hardcodes official OneBranch template; removes conditional template selection.
.pipelines/PowerShell-Packages-Official.yml Hardcodes official template and sets MSIX template OfficialBuild: true explicitly.
.pipelines/PowerShell-Coordinated_Packages-Official.yml Hardcodes official template and official-build variable behavior.

- group: mscodehub-feed-read-general
- group: mscodehub-feed-read-akv
- name: ENABLE_MSBUILD_BINLOGS
- name: ENABLE_MSBUILD_BINLOGS
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables list defines ENABLE_MSBUILD_BINLOGS twice, and the first entry has no value. This is likely invalid YAML for pipeline variables (or sets an empty value) and can break evaluation of parameters.ENABLE_MSBUILD_BINLOGS. Remove the stray/duplicate entry and keep a single ENABLE_MSBUILD_BINLOGS variable with the intended value mapping.

Suggested change
- name: ENABLE_MSBUILD_BINLOGS

Copilot uses AI. Check for mistakes.
@adityapatwardhan adityapatwardhan merged commit e0b6127 into PowerShell:release/v7.5 Mar 9, 2026
38 of 39 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.5/26928-eb1915e76 branch March 9, 2026 23:21
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