build(scripts): adopt PowerShell 7.4 floor repo-wide#1842
Merged
Conversation
rezatnoMsirhC
previously approved these changes
Jun 5, 2026
agreaves-ms
previously approved these changes
Jun 9, 2026
- set PSUseCompatibleSyntax TargetVersions to 7.4, dropping out-of-support 5.1/7.0/7.2 🔧 - Generated by Copilot
21c5f06 to
be189dd
Compare
The base branch was changed.
- bump #Requires -Version from 7.0 to 7.4 across 91 source scripts and modules - align PowerShell convention and copyright-header docs with the 7.4 floor - regenerate plugin outputs 🔧 - Generated by Copilot
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1842 +/- ##
==========================================
+ Coverage 81.64% 87.00% +5.36%
==========================================
Files 130 79 -51
Lines 19470 9022 -10448
Branches 12 12
==========================================
- Hits 15897 7850 -8047
+ Misses 3570 1169 -2401
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
agreaves-ms
approved these changes
Jun 30, 2026
…t/1637-e-ps74-pytest
Contributor
Eval Execution✅ Status: Passed — no merge-blocking failures (8 advisory assertion failure(s) present)
|
rezatnoMsirhC
approved these changes
Jun 30, 2026
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.
Pull Request
Description
Adopts PowerShell 7.4 as the repo-wide floor, in two parts:
scripts/linting/PSScriptAnalyzer.psd1setsPSUseCompatibleSyntax.TargetVersionsto@('7.4'), dropping the out-of-support5.1/7.0/7.2targets. This config is the single source of truth applied to all PowerShell files.#Requires -Version 7.0to7.4across 91 source scripts and modules underscripts/,.github/skills/, and.github/hooks/. The PowerShell convention (powershell.instructions.md),docs/contributing/copyright-headers.md, andscripts/collections/README.mdare aligned to 7.4, andplugins/generated outputs were regenerated vianpm run plugin:generate.Rebased onto
main(previously stacked onfeat/1637-d-skill-paths). The original "bootstrap python test deps" change was dropped:main'sInvoke-PythonTests.ps1already runsuv syncbefore pytest, and the polyglot fuzz harnesses run under pytest withoutatheris, so syncing the manylinux-onlyfuzzgroup is unnecessary and would breaktest:pyon macOS/Windows.Related Issue(s)
Closes #1827
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md)Other:
.ps1,.sh,.py)Testing
npm run lint:ps— all PowerShell files pass with the 7.4 syntax target.npm run lint:md— 0 errors on edited docs.npm run test:ps -- -TestPath scripts/tests/linting/Test-CopyrightHeaders.Tests.ps1— 55/55 passed (copyright-header fixtures updated to 7.4).npm run plugin:generate— regeneratedplugins/so generated#Requirescopies match.Checklist
Required Checks
Required Automated Checks
npm run lint:mdnpm run lint:frontmatternpm run lint:psnpm run plugin:generateSecurity Considerations
Additional Notes
Raising the runtime floor is a deliberate breaking change: scripts now refuse to run on PowerShell 7.0–7.3. This aligns the runtime contract with the analyzer target and the repo's supported toolchain.