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 — Replace Pester `-Pending` with `-Skip` in rule tests by Copilot · Pull Request #2208 · PowerShell/PSScriptAnalyzer

Conversation

Copilot AI commented Aug 21, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Pester v6 removed the It -Pending parameter, but two rule tests still used it, causing test run failures unrelated to whatever change is under test.

Changes

  • Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1: -pending → -skip.
  • Tests/Rules/UseToExportFieldsInManifest.tests.ps1: -pending:($IsCoreClr) → -skip:($IsCoreCLR), also correcting the casing of the automatic variable.
# before
It "suggests corrections for AliasesToExport with wildcard" -pending:($IsCoreClr) {

# after
It "suggests corrections for AliasesToExport with wildcard" -skip:($IsCoreCLR) {

Behavior is unchanged — both tests remain unexecuted, now via the supported parameter. A Pester discovery-only run reports Skip=True for both, and no other -Pending usages remain in the PowerShell test files.

  • Fixes The only test failures are due to -Pending (removed in Pester v6) still used in 2 rule tests unrelated to this PR #2207

Sorry, something went wrong.

Uh oh!

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

All reactions
Initial plan
1bb30f2
Copilot AI assigned Copilot and Andy Jordan (andyleejordan) Aug 21, 2026
Copilot started work on behalf of Andy Jordan (andyleejordan) August 21, 2026 21:53
View session
Copilot AI linked an issue Aug 21, 2026 that may be closed by this pull request
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
Replace removed Pester -Pending with -Skip in two rule tests
fea1125
Co-authored-by: andyleejordan <[email protected]>
Copilot AI changed the title [WIP] Fix test failures due to removed -Pending in Pester v6 Replace Pester -Pending with -Skip in rule tests Aug 21, 2026
Copilot finished work on behalf of Andy Jordan (andyleejordan) August 21, 2026 21:55
Copilot AI requested a review from Andy Jordan (andyleejordan) August 21, 2026 21:55
@bergmeister

Christoph Bergmeister (bergmeister) commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

kicked off tests, ok with code change. Copilot can you please resolve merge conflicts

All reactions

Sorry, something went wrong.

Uh oh!

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

Copilot started work on behalf of Christoph Bergmeister (bergmeister) September 14, 2026 19:42
View session
@bergmeister
Merge remote-tracking branch 'origin/main' into copilot/fix-pending-t…
85463f9
…est-failures

# Conflicts:
#	Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1
#	Tests/Rules/UseToExportFieldsInManifest.tests.ps1

Co-authored-by: bergmeister <[email protected]>

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

kicked off tests, ok with code change. Copilot can you please resolve merge conflicts

Merged origin/main and resolved the conflicts in 85463f9.

Both conflicts were in the same two lines this PR touches — main has since landed an equivalent -Pending → -Skip change, so I resolved by taking main's version (-Skip / -Skip:($IsCoreClr)). The branch tree is now identical to origin/main, i.e. git diff origin/main is empty, so this PR no longer carries any change of its own and can be closed unless you want to keep the merge commit for history. Pester discovery still reports both tests as skipped.

All reactions

Sorry, something went wrong.

Uh oh!

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

Copilot finished work on behalf of Christoph Bergmeister (bergmeister) September 14, 2026 19:44
Copilot AI requested a review from Christoph Bergmeister (bergmeister) September 14, 2026 19:44
Christoph Bergmeister (bergmeister) added 2 commits September 14, 2026 21:00
@bergmeister
Merge branch 'main' into copilot/fix-pending-test-failures
99fba23
@bergmeister
Merge branch 'main' into copilot/fix-pending-test-failures
77b742d
@bergmeister

Christoph Bergmeister (bergmeister) commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Copilot diff shows no changes at all in this PR, did you undo your work when you resolved merge conflict?

All reactions

Sorry, something went wrong.

Uh oh!

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

Copilot started work on behalf of Christoph Bergmeister (bergmeister) September 14, 2026 20:17
View session

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Copilot diff shows no changes at all in this PR, did you undo your work when you resolved merge conflict?

No, nothing was undone — the same fix landed on main independently while this PR was open, so there's genuinely nothing left for it to change.

The commit on main is faad3a4, "Upgrade Pester to version 6.0.1 in CI workflow and documentation (#2194)" by Liam Peters (2026-08-26). Its diff includes exactly the two lines this PR targeted:

-        It "Should find a violations" -pending {
+        It "Should find a violations" -Skip {
-        It "suggests corrections for AliasesToExport with wildcard" -pending:($IsCoreClr) {
+        It "suggests corrections for AliasesToExport with wildcard" -Skip:($IsCoreClr) {

That's why the merge conflicted on those exact lines and only those lines: both sides changed -pending → -Skip, differing only in casing. I resolved in favour of main's version rather than re-introducing a purely cosmetic casing difference, which is what leaves the PR diff empty.

Current state on this branch — git diff origin/main is empty, the files contain -Skip / -Skip:($IsCoreClr), and a repo-wide search finds no remaining It -Pending usages (the only Pending hits are unrelated -PendingClientTimeoutInSeconds entries in Engine/Settings/*.json).

So the issue is already fixed on main via #2194, and this PR can be closed as superseded. If you'd rather it carry a change of its own, the only thing left is the cosmetic $IsCoreClr → $IsCoreCLR casing fix for the automatic variable — say the word and I'll push that.

All reactions

Sorry, something went wrong.

Uh oh!

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

Copilot finished work on behalf of Christoph Bergmeister (bergmeister) September 14, 2026 20:18
@bergmeister

Christoph Bergmeister (bergmeister) commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Copilot diff shows no changes at all in this PR, did you undo your work when you resolved merge conflict?

No, nothing was undone — the same fix landed on main independently while this PR was open, so there's genuinely nothing left for it to change.

The commit on main is faad3a4, "Upgrade Pester to version 6.0.1 in CI workflow and documentation (#2194)" by Liam Peters (2026-08-26). Its diff includes exactly the two lines this PR targeted:

-        It "Should find a violations" -pending {
+        It "Should find a violations" -Skip {
-        It "suggests corrections for AliasesToExport with wildcard" -pending:($IsCoreClr) {
+        It "suggests corrections for AliasesToExport with wildcard" -Skip:($IsCoreClr) {

That's why the merge conflicted on those exact lines and only those lines: both sides changed -pending → -Skip, differing only in casing. I resolved in favour of main's version rather than re-introducing a purely cosmetic casing difference, which is what leaves the PR diff empty.

Current state on this branch — git diff origin/main is empty, the files contain -Skip / -Skip:($IsCoreClr), and a repo-wide search finds no remaining It -Pending usages (the only Pending hits are unrelated -PendingClientTimeoutInSeconds entries in Engine/Settings/*.json).

So the issue is already fixed on main via #2194, and this PR can be closed as superseded. If you'd rather it carry a change of its own, the only thing left is the cosmetic $IsCoreClr → $IsCoreCLR casing fix for the automatic variable — say the word and I'll push that.

Andy Jordan (@andyleejordan) it seems your PR has been superseded by #2194

All reactions

Sorry, something went wrong.

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andyleejordan Andy Jordan (andyleejordan) Awaiting requested review from andyleejordan
@bergmeister Christoph Bergmeister (bergmeister) Awaiting requested review from bergmeister
Copilot code review Copilot
Copilot will automatically review once the pull request is marked ready for review

At least 1 approving review is required to merge this pull request.

Uh oh!

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

Assignees

@andyleejordan Andy Jordan (andyleejordan)

Copilot code review Copilot

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

The only test failures are due to -Pending (removed in Pester v6) still used in 2 rule tests unrelated to this PR

Uh oh!

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

3 participants

@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.