Repository navigation
Add a soak test for long runs - #78
Merged
Merged
Conversation
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>
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.
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-MaxOutputCharscap, 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.-NoBatchand-NoRunspacenarrow a growth down.-Compatruns 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.
-NoRunspacepasses on 5.1 (692 → 651).-Rounds 3stops with a clear message. Nopingleft running afterward. No change to the kit or the harness.🤖 Generated with Claude Code