chore: Pin Pester 5.8.0 and update PSScriptAnalyzer to 1.25.0#129
Merged
Conversation
Pester previously floated via MinimumVersion 5.6.1, so CI installed whatever the newest release was at bootstrap time. Pinning to 5.8.0 (current stable) makes CI deterministic. PSScriptAnalyzer moves from 1.24.0 to 1.25.0, the latest stable release (2026-03-20). The consumer-facing minimum in PowerShellBuild.psd1 (Pester >= 5.6.1) is intentionally unchanged; this only affects building this repo. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JHgRWPi4D2aun7CEtwLz7T
There was a problem hiding this comment.
Pull request overview
This PR makes the repository’s build/test toolchain more deterministic by pinning the Pester version used during bootstrap and updating PSScriptAnalyzer to a newer stable release, with the dependency documentation kept in sync.
Changes:
- Pin Pester to 5.8.0 in
requirements.psd1(replacing the previous floatingMinimumVersionbehavior). - Update PSScriptAnalyzer from 1.24.0 to 1.25.0 in
requirements.psd1. - Update the dependency version table in
instructions/repository-specific.instructions.mdto match the pinned versions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
requirements.psd1 |
Pins Pester to 5.8.0 and bumps PSScriptAnalyzer to 1.25.0 to make bootstrap installs deterministic. |
instructions/repository-specific.instructions.md |
Updates the documented dependency versions to reflect the pinned versions in requirements.psd1. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The dependency table in the repository-specific instructions duplicated the pinned versions from requirements.psd1 and drifted whenever they changed. Replace the version column with each module's purpose and point to requirements.psd1 as the source of truth. Also drop the hardcoded module version and task-runner version numbers for the same reason. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JHgRWPi4D2aun7CEtwLz7T
The Pester task writes tests/out/testResults.xml on every test run for the CI artifact upload, leaving untracked clutter after local runs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JHgRWPi4D2aun7CEtwLz7T
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.
Summary
requirements.psd1. It previously floated viaMinimumVersion = '5.6.1', so CI installed whatever the newest release was at bootstrap time — this makes CI deterministic.instructions/repository-specific.instructions.md: the table now describes each module's purpose and points torequirements.psd1as the source of truth, so this class of PR never has to touch the instructions again. Hardcoded module/task-runner version numbers are dropped for the same reason.tests/out/to.gitignore— the Pester task writestests/out/testResults.xmlon every run (for the CI artifact upload), leaving untracked clutter after local test runs.The consumer-facing minimum in
PowerShellBuild.psd1(Pester >= 5.6.1inRequiredModules) is intentionally unchanged — raising it would force the new version on consumers, which is a separate decision.Test Plan
./build.ps1 -Task Testwith the exact pinned versions (psake 4.9.0, PSScriptAnalyzer 1.25.0, Pester 5.8.0): 314 passed, 0 failed, Analyze clean (warnings only).git check-ignore tests/out/testResults.xmlconfirms the new ignore rule matches.Breaking Changes
None (build-time dependencies and repo docs only).
🤖 Generated with Claude Code
https://claude.ai/code/session_01JHgRWPi4D2aun7CEtwLz7T