Skip to content

powershell-lsp: bound Pester bootstrap to 5.x (test-infra) + refresh #66987 upstream record (000120)#81

Merged
manderse21 merged 2 commits into
mainfrom
dispatch/000120-pester5x-pin
Jul 8, 2026
Merged

powershell-lsp: bound Pester bootstrap to 5.x (test-infra) + refresh #66987 upstream record (000120)#81
manderse21 merged 2 commits into
mainfrom
dispatch/000120-pester5x-pin

Conversation

@manderse21

Copy link
Copy Markdown
Owner

Dispatch 000120 (combined train; NO version bump on any leg). Two legs land here; leg 2 (the rule-rationale survey) is report-only and rides the dispatch outbox.

Leg 1 -- bound the Pester bootstrap to the 5.x major (test-infra only)

Pester 6.0.0 went GA on the PowerShell Gallery 2026-07-07. tests/run-tests.ps1 resolved Pester at three points that were all unbounded upward, so a runner-image change or a fresh install could silently run the suite under Pester 6 with nobody deciding to upgrade. All three are now capped at the 5.x major:

  • detection filter $_.Version.Major -ge 5 -> -eq 5
  • Install-Module Pester ... -MinimumVersion 5.0.0 gains -MaximumVersion 5.99.99
  • Import-Module Pester -MinimumVersion 5.0.0 gains -MaximumVersion 5.99.99 (imports by name, an independent exposure)

A text-pin guard in tests/PowerShellLsp.Unit.Tests.ps1 (the 000073 Should-Match-on-the-literal pattern) asserts all three bounds are present and fails RED if any one is removed -- demonstrated locally (reverted one bound, observed RED, restored). Test-infra only: no version bump, no CHANGELOG entry (the 000045 / 000049 / 000063 precedent). OQ1 resolved to -MaximumVersion 5.99.99 (stays on latest 5.x; an exact -RequiredVersion pin would force a bootstrap edit on every 5.x patch for no measured benefit).

Leg 3 -- refresh the #66987 upstream record to live filed state (docs-only)

Live gh re-check (2026-07-08): anthropics/claude-code#66987 is OPEN and was rewritten by Mike on 2026-07-06 to exactly the registrar silent-drop root cause (re-confirmed on Claude Code 2.1.201). docs/upstream/claude-code-lsp-registration.md still framed the report as "not posted upstream / a separate Mike-gated draft" -- now stale. Refreshed to record that the registration root cause is filed as #66987, to carry the remainder still unsaid upstream (the plugin-side 000075 allowlist guard) as a post-ready UNPOSTED comment, and to state a routing recommendation (no fresh issue; #66987 already is the dedicated issue). Nothing was posted.

Held

HELD for Mike's review and merge. Merge, tag, release, and all external posting are Mike's gates.

https://claude.ai/code/session_01DzoUdcmERJpKo4kGqKnJGm

@manderse21
manderse21 merged commit 6403361 into main Jul 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants