Skip to content

Compare the soak test's lowest handle and thread counts - #79

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

HalRiveria-Bot merged 1 commit into
mainfrom
test/soak-lowest

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

The soak test failed on Windows PowerShell 5.1 with no leak. There, the runspace pool holds tens more handles each round and lets go of them all at once, 6 to 22 rounds apart, so the count swings by hundreds while its low point stays put. A bare RunspacePool doing the same work without the kit behaves the same way. The test compared one round (the end of the warm-up) with the last, so it passed or failed depending on where in that cycle each landed.

Handles and threads are now compared by their lowest count in each half of the rounds after the warm-up. The default goes from 40 to 60 rounds so each half (27 rounds) takes in at least one drop, and -Rounds must leave halves of at least 25. Managed memory is checked as before. The README line gives the new totals and time.

Tested:

  • The 5.1 log of an earlier run that failed the old check (775 → 982) passes the new one.
  • With three soak runs side by side, 5.1 passed (lowest 823 → 808) and 7 passed (611 → 608). A copy that leaks 10 handles a round failed (896 → 1206).
  • 5.1 on its own passed (796 → 789) in 153 s.
  • -Rounds 24 stops with a clear message.

No change to the kit or the harness.

🤖 Generated with Claude Code

On Windows PowerShell 5.1 the runspace pool holds tens more handles each
round and lets go of them all at once, 6 to 22 rounds apart, so comparing
one round with another failed runs with no leak. Handles and threads are
now compared by their lowest count in each half of the rounds after the
warm-up, and the default is 60 rounds so each half takes in a drop.

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