Repository navigation
Reorganize the README and add tests for its examples and PowerShell 7 claims - #81
Merged
Merged
Conversation
Collapsible sections, Mermaid diagrams, a section on where process-tree cleanup can fall short, what the kit adds on PowerShell 7, and corrected examples. Testing/readme-examples runs the README's code examples; Testing/ps7-native checks the PowerShell 7 behavior the README describes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Limits: one Invoke-PkRun at a time per process, said plainly. - Lifecycle diagram: starting inside the Job Object depends on StartMode. - Testing: the harness is the only test GitHub runs. - readme-examples: the kill-abort check no longer fails when a job finishes before the abort. - ps7-native: only this run's ping processes are stopped. - Each copy of the Ctrl+C sender names the other two. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The README had grown hard to scan, and a few things in it were wrong or out of date. This reorganizes it and adds tests for what it claims.
What was wrong
Get-FileHashis a script-module function and doesn't see a worker's$ErrorActionPreference. It now passes-ErrorAction Stop, and the text explains why.-JobAbortCleanupwas described as applying to the batch. Only the group dispatcher has it; the batch marks resultsAborted.ForEach-Object -Parallel.What changed in the README
<details>blocks. Quick start, Which function and Setup stay open.AddedToJob,NoJobandtaskkillcases), "Which function" (every public function by purpose), and "How it fits together" (a Mermaid diagram), plus a lifecycle diagram under Process results.New tests (run by hand, outside the harness)
Testing/readme-examples/run.ps1reads the README's code examples straight from it and runs each one in a fresh PowerShell, with and without StrictMode, followed by checks on what it did. The group example also runs with both kinds of Ctrl+C. It needscjxl.exeonPATH.Testing/ps7-native/run.ps1shows, with no kit loaded, what PowerShell 7 does: a killed script leaves its programs running,ForEach-Object -Parallel -TimeoutSecondsdoesn't stop a running program, and Ctrl+C stops running programs at once.The harness changes by a comment only: each of the three copies of the Ctrl+C sender (the harness,
Testing/stop-in-call,Testing/ps7-native) now names the other two.Testing
Testing/readme-examples: passes on 5.1 and 7 against this README. Pointed at a copy with the old error-object example, it fails on 5.1 where it should.Testing/ps7-nativeandTesting/stop-in-call: pass.🤖 Generated with Claude Code