Skip to content

docs: Refresh the job-isolation rationale in the fixture helpers - #223

Merged
tablackburn merged 1 commit into
mainfrom
docs/refresh-stale-job-isolation-comment
Aug 28, 2026
Merged

docs: Refresh the job-isolation rationale in the fixture helpers#223
tablackburn merged 1 commit into
mainfrom
docs/refresh-stale-job-isolation-comment

Conversation

@tablackburn

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the Invoke-PSBuildCommandInJob rationale, which described a constraint that ended with the platyPS 1.x migration: the suite no longer exercises two platyPS majors in one run, so the YamlDotNet assembly-identity conflict is history rather than a live reason for the jobs.
  • Corrects a wrong replacement that had been drafted for it. That draft credited Import-Module -Global, but Microsoft.PowerShell.PlatyPS 1.0.3 exposes only -ModuleInfo <PSModuleInfo[]> and -CommandInfo <CommandInfo[]> -- there is no name-taking parameter, so there is no session-state lookup for -Global to serve. Measured: generated markdown is byte-for-byte identical with -Global dropped.
  • States the reason that survives. Every docs command leaves Microsoft.PowerShell.PlatyPS loaded once it returns, and assemblies load per process rather than per runspace, so a separate runspace cannot undo it and only a separate process starts clean.
  • Notes that Invoke-TestPSBuildPesterInJob's matrix has spanned a single Pester major since Pester version floors do not match what is tested, and Test-PSBuildPester's guard admits versions that cannot work #172, so its job buys isolation rather than reach. Related to A skipped Test-PSBuildPester test can never run, and its comment says it does #220, which covers the test that skip made unrunnable.

Comments only. No behaviour change.

Test plan

  • ./build.ps1 -Task Test -- full suite green.
  • [System.Management.Automation.Language.Parser]::ParseFile on the changed file reports no errors, and Get-Help Invoke-PSBuildCommandInJob still renders a description, confirming the comment-based help block is still well formed.

Breaking changes

None.

Related

The -Global findings that prompted this came out of the investigation now filed as #221 and #222. This pull request only corrects the comment; neither defect is fixed here.

The two-platyPS-majors conflict that originally justified the background jobs
ended with the 1.x migration, so the comment described a constraint that no
longer exists. The replacement drafted for it was also wrong: it credited
Import-Module -Global, but Microsoft.PowerShell.PlatyPS resolves commands
through the PSModuleInfo object rather than a session-state name lookup, and
the generated markdown is byte-for-byte identical without -Global.

State the reason that actually survives -- every docs command leaves
Microsoft.PowerShell.PlatyPS loaded, and assemblies load per process rather
than per runspace, so only a separate process starts clean -- and keep the
original conflict as recorded history rather than as a live justification.

Also note that Invoke-TestPSBuildPesterInJob's matrix has spanned a single
Pester major since #172, so its job buys isolation rather than reach.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G7WMiaQNgL3wULG4thw7nk
Copilot AI lite review requested due to automatic review settings August 28, 2026 21:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Test Results

    4 files  ±0    889 suites  ±0   2m 35s ⏱️ -12s
  596 tests ±0    593 ✅ ±0   3 💤 ±0  0 ❌ ±0 
2 367 runs  ±0  2 295 ✅ ±0  72 💤 ±0  0 ❌ ±0 

Results for commit 63ed275. ± Comparison against base commit 484f24f.

@tablackburn
tablackburn merged commit 3ea9e82 into main Aug 28, 2026
9 checks passed
@tablackburn
tablackburn deleted the docs/refresh-stale-job-isolation-comment branch August 28, 2026 21:54
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