Skip to content

Prevent runspace races during analyzer command metadata access - #7

Merged
jessehouwing merged 3 commits into
mainfrom
copilot/fix-benchmark-fork-semver
Sep 14, 2026
Merged

jessehouwing merged 3 commits into
mainfrom
copilot/fix-benchmark-fork-semver

Conversation

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown

The semver benchmark intermittently failed to resolve Export-ModuleMember -Function. Command metadata reads could re-enter the shared PowerShell runspace outside the lookup lock, causing parameter-resolution failures and session-state collection corruption.

  • Export resolution: Resolve parameter names, aliases, and abbreviations from static metadata instead of runspace-dependent ResolveParameter().
  • Metadata synchronization: Protect parameter and parameter-set reads with the command lookup lock; route affected rules through synchronized helpers. Resolve lazy cache entries before acquiring the lock to avoid deadlocks.
  • Integration: Retain the complementary Get-Command hardening merged into main. Leave the benchmark workflow and measurement script unchanged.

Copilot AI and others added 3 commits September 14, 2026 19:28
Co-authored-by: jessehouwing <4173387+jessehouwing@users.noreply.github.com>
…-fork-semver

Co-authored-by: jessehouwing <4173387+jessehouwing@users.noreply.github.com>
Co-authored-by: jessehouwing <4173387+jessehouwing@users.noreply.github.com>
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