Skip to content

[release/v7.5.12] Change Windows CI to stop using PowerShell 5.1 - #28064

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.5.12from
adityapatwardhan:backport/release/v7.5.12/27940-13b2fd125
Sep 23, 2026
Merged

Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.5.12from
adityapatwardhan:backport/release/v7.5.12/27940-13b2fd125

Conversation

@adityapatwardhan

Copy link
Copy Markdown
Member

Backport of #27940 to release/v7.5.12

Triggered by Aditya Patwardhan (@adityapatwardhan) on behalf of Dongbo Wang (@daxian-dbw)

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)

Required CI tooling update so Windows validation uses PowerShell 7 rather than Windows PowerShell 5.1.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

The change cherry-picked cleanly. The final diff passes git diff --check, the affected tools/WindowsCI.psm1 module parses successfully with the PowerShell parser, and the resulting diff was reviewed to confirm it only changes the Windows action shell from powershell to pwsh and removes the obsolete Windows PowerShell requirement comment.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Medium risk because this changes the shell used for Windows CI bootstrap, but the change is limited to replacing Windows PowerShell with pwsh and removing an obsolete requirement comment. It cherry-picked cleanly and the affected PowerShell module parses successfully.

Copilot AI lite review requested due to automatic review settings September 22, 2026 22:58
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Sep 22, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Backports the Windows CI migration from Windows PowerShell 5.1 to PowerShell 7.

Changes:

  • Changes the Windows bootstrap shell to pwsh.
  • Removes the obsolete PowerShell 5.1 requirement comment.
File Description
tools/​WindowsCI.psm1 Removes outdated documentation.
.github/​actions/​test/​windows/​action.yml Uses PowerShell 7 for Windows bootstrap.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 346951a into PowerShell:release/v7.5.12 Sep 23, 2026
36 checks passed
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) deleted the backport/release/v7.5.12/27940-13b2fd125 branch September 23, 2026 20:39
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