Skip to content

Add a soak test for long runs - #78

Merged
HalRiveria-Bot merged 1 commit into
mainfrom
test/soak
Nov 19, 2026
Merged

HalRiveria-Bot merged 1 commit into
mainfrom
test/soak

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

Adds Testing/soak/run.ps1, a long-running check that's meant to be run by hand before a release, not on every change.

Each of 40 rounds runs 250 programs through Invoke-PkProcessBatch (quick ones, ones over a -MaxOutputChars cap, ones whose helper holds output past -StreamTimeoutMs, ones killed at a time limit), then 100 runspace jobs. Between rounds it kills only its own leftover helpers, which it finds by a tag on their command line. It fails if handles, threads or managed memory keep growing after the warm-up rounds, or if any round has the wrong counts. -NoBatch and -NoRunspace narrow a growth down. -Compat runs it against a kit older than 3.4.

The README's Testing list gets a line for it.

Tested: full runs pass on Windows PowerShell 5.1 (handles 904 → 775) and PowerShell 7 (751 → 801), about 100 s each. -NoRunspace passes on 5.1 (692 → 651). -Rounds 3 stops with a clear message. No ping left running afterward. No change to the kit or the harness.

🤖 Generated with Claude Code

Testing/soak/run.ps1 runs 10,000 programs and 4,000 runspace jobs in
rounds and fails if the PowerShell's handles, threads or managed memory
keep growing after the warm-up rounds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria-Bot
HalRiveria-Bot merged commit e0c1480 into main Nov 19, 2026
2 checks passed
@HalRiveria-Bot
HalRiveria-Bot deleted the test/soak branch November 19, 2026 12:41
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