Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Drop support for PowerShell v3 and v4?

Open fflaten opened this issue 1 year ago • 3 comments

Windows Server 2012/2012R2 will be end of life October 10, 2023. From that point on only PowerShell v5.1 and later is supported by Microsoft and we should consider dropping support for PSv3 and PSv4.

Using this issue to track features and changes being blocked by PSv3 and PSv4:

  • #1586
  • ::new(), .Where({}), .ForEach({}) and other language features to replace calls to slower *-Object cmdlets etc.
  • Build assembly for single target (net461 due to Windows Server 2016 OOB version)? See PowerShellStandard
  • Possible to capture more output in test-results. In PSv5 Write-Host writes to information stream (#301)
  • Simplify code with version-specific logic. Ex. Tracer-based CC, Mock and tests

fflaten avatar Mar 23 '23 19:03 fflaten

Once this is done, will versions of Pester supporting Powershell v3 or v4 continue to be maintained in the event of a blocking bug?

LaurentDardenne avatar Jun 11 '23 12:06 LaurentDardenne

Note: This issue is not a accepted change at this point. Just an issue for discussing it and tracking pros/cons. Might convert it to a discussion topic 🙂

Once this is done, will versions of Pester supporting PowerShell v3 or v4 continue to be maintained in the event of a blocking bug?

Like v4 now it'd likely get critical fixes and security patches, but at that point v5 should be very stable. All OSs compatible with PSv3/v4 won't get any updates so there's a low risk of anything breaking.

fflaten avatar Jun 11 '23 14:06 fflaten

Resolved in #2432.

Keeping open until released and we start working on the previously blocked issues.

fflaten avatar Apr 07 '24 16:04 fflaten

FYI Windows Server 2012 is supported under the Microsoft Extended Security Updates program until 2026-10-13:

https://learn.microsoft.com/en-us/lifecycle/products/windows-server-2012

xtqqczze avatar Jun 05 '24 12:06 xtqqczze

ESU is a paid service that Microsoft provides, this module is free. We can do paid support probably, but so far nobody asked us for that.

nohwnd avatar Jun 05 '24 13:06 nohwnd

ESU is a paid service that Microsoft provides, this module is free. We can do paid support probably, but so far nobody asked us for that.

I think it's not unreasonable to drop support in the next major version of Pester, just pointing out PSv3/PSv4 are still supported by Microsoft.

xtqqczze avatar Jun 05 '24 17:06 xtqqczze

@nohwnd Just noticed the Pester supported versions information in SECURITY.md has not been updated for many years.

xtqqczze avatar Jun 05 '24 17:06 xtqqczze

Good point will update

Odesláno z aplikace Outlook pro iOShttps://aka.ms/o0ukef


Od: xtqqczze @.> Odesláno: Wednesday, June 5, 2024 7:22:11 PM Komu: pester/Pester @.> Kopie: Mention @.>; Comment @.>; Subscribed @.***> Předmět: Re: [pester/Pester] Drop support for PowerShell v3 and v4? (Issue #2324)

@nohwndhttps://github.com/nohwnd Just noticed the Pester supported versions information in SECURITY.mdhttps://github.com/pester/Pester/blob/main/SECURITY.md has not been updated for many years.

— Reply to this email directly, view it on GitHubhttps://github.com/pester/Pester/issues/2324#issuecomment-2150578380 or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABLYLYK7YKNPYQ4CJX7KFITZF5CMJBFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVIYTCNRRHA2TKNBYGGSG4YLNMWUWQYLTL5WGCYTFNSWHG5LCNJSWG5C7OR4XAZNMJFZXG5LFINXW23LFNZ2KM5DPOBUWG44TQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLJZRGIYTGNBXGSBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGE3DGOBSGA4TMMJXQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRRGE3DCOBVGU2DQMNHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you were mentioned.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nohwnd avatar Jun 05 '24 17:06 nohwnd

Completed by #2432 released in 6.0.0-alpha1

fflaten avatar Jun 16 '24 14:06 fflaten