Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ powershell -NoProfile -File .\ParallelKit.Harness.ps1
<details>
<summary>What it prints, and the stress tests in Testing/</summary>

It takes about five and a half minutes. It prints a `[PASS]`/`[FAIL]` line per check and exits 0 only if everything passed. A few checks send real Ctrl+C, Ctrl+Break and window-close events to child PowerShell processes in hidden consoles of their own, never to yours. Where a machine can't deliver those, they print `[SKIP]` with the reason instead; set `PK_HARNESS_NO_SKIP=1` to count skips as failures. The checks in section AH each run in a PowerShell process of their own with a 30-second limit; one that runs past it fails, and leaves a full dump of its process in `%TEMP%\pk-harness-dumps` (or `PK_HARNESS_DUMP_DIR`) for a debugger. A dump is a few hundred MB, and nothing deletes it for you. A few `message handler failed` lines in the output are expected: some checks break the message handler on purpose to test the fallback. `-Section AO,BB` runs only those sections (and A, the setup), for working on one area; it isn't a full pass, and its last line says so. `-AsModule` builds [the module](#as-a-module) and tests that instead of dot-sourcing the file; `-AsModule -Section MODULE` runs the sections where that can make a difference, in about a minute and a half.
It takes about seven minutes. It prints a `[PASS]`/`[FAIL]` line per check and exits 0 only if everything passed. A few checks send real Ctrl+C, Ctrl+Break and window-close events to child PowerShell processes in hidden consoles of their own, never to yours. Where a machine can't deliver those, they print `[SKIP]` with the reason instead; set `PK_HARNESS_NO_SKIP=1` to count skips as failures. The checks in section AH each run in a PowerShell process of their own with a 30-second limit; one that runs past it fails, and leaves a full dump of its process in `%TEMP%\pk-harness-dumps` (or `PK_HARNESS_DUMP_DIR`) for a debugger. A dump is a few hundred MB, and nothing deletes it for you. A few `message handler failed` lines in the output are expected: some checks break the message handler on purpose to test the fallback. `-Section AO,BB` runs only those sections (and A, the setup), for working on one area; it isn't a full pass, and its last line says so. `-AsModule` builds [the module](#as-a-module) and tests that instead of dot-sourcing the file; `-AsModule -Section MODULE` runs the sections where that can make a difference, in about a minute and a half.

GitHub runs the same harness on Windows PowerShell 5.1 and on PowerShell 7 for every pull request and every change to `main`, and then those sections on the module. It also runs the soak test below on both before each release ([runs](https://github.com/HalRiveria/PowerShell-ParallelKit/actions/workflows/soak.yml)), and the whole harness on the module, which it then checks with PSScriptAnalyzer and packs ([runs](https://github.com/HalRiveria/PowerShell-ParallelKit/actions/workflows/module.yml)). The other scripts in `Testing/` are run by hand.

Expand Down