GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upgrade Pester to version 6 by liamjpeters · Pull Request #2194 · PowerShell/PSScriptAnalyzer

Conversation

@liamjpeters

@liamjpeters Liam Peters (liamjpeters) commented Jul 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR Summary

Windows PowerShell CI tests were not pinned to a Pester version and so used the latest stable. This changed recently to v6 (well done on the release Jakub Jareš (@nohwnd) 🎉).

Windows PowerShell CI was broken - complaining of a missing -Pending parameter, which has been removed in v6.

Instead of just pinning the Windows PowerShell version to 5.7.1, the changes required for v6 compatibility were minimal, so those changes were made instead.

Claude and I used the v5-v6 migration guide and skill to update to v6.

I've now pinned the Windows PowerShell version in line with the tools/installPSResources.ps1 version - settling on the current 6.0.1. I Can't find a tidy way to specify the version once and have it used in both places. Open to suggestions if there's a good way.

Note: This does not do the Should -Be to Should-Be migration that is optional for this version change and documented here.

PR Checklist

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Change is not breaking
  • Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
  • Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
  • This PR is ready to merge and is not Work in Progress.
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nohwnd reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@liamjpeters
Upgrade Pester to version 6.0.1 in CI workflow and documentation
d51450a
Copilot AI review requested due to automatic review settings July 20, 2026 12:26
@liamjpeters
Liam Peters (liamjpeters) requested review from a team and Christoph Bergmeister (bergmeister) as code owners July 20, 2026 12:26
Copilot started reviewing on behalf of Liam Peters (liamjpeters) July 20, 2026 12:27
View session
Copilot AI reviewed Jul 20, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo’s tooling, CI, and test suite to be compatible with (and pinned to) Pester v6, addressing Windows PowerShell CI failures caused by the removal of the -Pending parameter.

Changes:

  • Pinned Pester to 6.0.1 in tooling (installPSResources.ps1) and Windows PowerShell CI (ci-test.yml).
  • Migrated affected Pester tests from -Pending to -Skip for v6 compatibility.
  • Updated README references to Pester v6 / minimum required Pester version.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/installPSResources.ps1 Bumps the pinned Pester version used by tooling installs to 6.0.1.
Tests/Rules/UseToExportFieldsInManifest.tests.ps1 Replaces -Pending usage with -Skip for Pester v6 compatibility.
Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1 Replaces -Pending usage with -Skip for Pester v6 compatibility.
README.md Updates documentation to reference Pester v6 and minimum required version.
.github/workflows/ci-test.yml Pins Pester version in Windows PowerShell CI to avoid unintentional upgrades.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1 Resolved

Uh oh!

There was an error while loading. Please reload this page.

@liamjpeters Liam Peters (liamjpeters) mentioned this pull request Jul 23, 2026
Add missing Severity entry for Invoke-ScriptAnalyzer docs #2193
Merged
5 of 6 tasks
andyleejordan
Andy Jordan (andyleejordan) approved these changes Jul 23, 2026
View reviewed changes

@andyleejordan Andy Jordan (andyleejordan) left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nice work.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@liamjpeters Liam Peters (liamjpeters) mentioned this pull request Aug 24, 2026
The only test failures are due to -Pending (removed in Pester v6) still used in 2 rule tests unrelated to this PR #2207
Closed
@andyleejordan
Andy Jordan (andyleejordan) merged commit faad3a4 into PowerShell:main Aug 26, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bergmeister

Christoph Bergmeister (bergmeister) commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

I was too late, sorry but thanks so much

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI mentioned this pull request Sep 14, 2026
Replace Pester -Pending with -Skip in rule tests #2208
Draft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@bergmeister Christoph Bergmeister (bergmeister) Awaiting requested review from bergmeister bergmeister is a code owner
+1 more reviewer
@andyleejordan Andy Jordan (andyleejordan) andyleejordan approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@liamjpeters @bergmeister @andyleejordan
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.