Skip to content

Stabilize parallel Pester smoke discovery - #717

Merged
lipkau merged 1 commit into
masterfrom
codex/stabilize-smoke-discovery
Sep 11, 2026
Merged

Stabilize parallel Pester smoke discovery#717
lipkau merged 1 commit into
masterfrom
codex/stabilize-smoke-discovery

Conversation

@lipkau

@lipkau lipkau commented Sep 11, 2026

Copy link
Copy Markdown
Member

Summary

  • stop sharing the parent PowerShell host with parallel Pester thread jobs
  • replay each completed job's buffered output exactly once
  • guard the runner against reintroducing the unsafe StreamingHost parameter

Cause

Master smoke run 34568913568 exposed a sporadic Pester 5.9.1 discovery failure while concurrent ThreadJobs shared the parent host. The following master run passed on the same tree, confirming a race rather than a Jira API regression.

This follows the workaround documented in pester/Pester#2383 while preserving throttling, per-file timeouts, result aggregation, and useful CI output.

Validation

  • Invoke-Build -Task Lint, Build, Test
  • 4,625 checks: 4,556 passed, 69 skipped, 0 failed
  • synthetic parallel-runner smoke fixture: one pass, output replayed, zero XML errors
  • independent review: no blocking findings

Release intent

Test infrastructure only. No package release.

Pester can corrupt discovery state when concurrent ThreadJobs share the parent host. Replay buffered output after each job completes instead.
@lipkau
lipkau requested a review from a team as a code owner September 11, 2026 06:55
@lipkau lipkau added the release:none No package release for this pull request label Sep 11, 2026
@lipkau
lipkau merged commit c808457 into master Sep 11, 2026
10 checks passed
@lipkau
lipkau deleted the codex/stabilize-smoke-discovery branch September 11, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:none No package release for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant