Skip to content

Fix Windows PowerShell 5.1 test failures surfaced by reusable CI workflow #498

Closed

Description

@HeyItsGilbert

Goal

The reusable CI workflow added in #497 (org powershell-ci.yml) is the first CI configuration to ever run the Pester suite under Windows PowerShell 5.1 (the legacy github.yml only tested pwsh/PS7 on windows-latest/macOS-latest/ubuntu-latest). That run failed:

Tests Passed: 720, Failed: 13, Skipped: 8, Inconclusive: 0, NotRun: 0

Run: https://github.com/PowerShellOrg/PSKoans/actions/runs/35290428430/job/105431858030

Failing tests (13 total):

  • Invoke-Koan.Tests.ps1: runs the test successfully, produces output with -PassThru, correctly reports test results, reports only expected exception types
  • New-KoanRunspace.Tests.ps1: creates a new runspace, names the new runspace, preloads the runspace with PSKoans
  • Get-Karma.Tests.ps1 (Context "Behaviour When All Koans Are Completed"): does not divide by zero if all Koans are completed, outputs the result object, indicates completion, indicates number of koans passed, indicates total number of koans, indicates the requested topic

All failures cluster around runspace creation/execution (New-KoanRunspace, Invoke-Koan) and a Get-Karma completion-state context, suggesting a PS5.1-specific incompatibility in how koan test runspaces are created or awaited (New-KoanRunspace.ps1) that cascades into the dependents.

Acceptance criteria

Activity

  1. added
    Category-Build 🚀
    on Sep 18, 2026
  2. github-actions commented on Nov 17, 2026

    @github-actions

    This issue has had no activity for 60 days. It will be closed in 30 days unless there is new activity or a maintainer removes the stale label.

  3. HeyItsGilbert commented on Nov 23, 2026

    @HeyItsGilbert
    MemberAuthor

    This was fixed.

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

Metadata

Metadata

Labels

Category-Build 🚀status: stale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions