Repository navigation
Testing: add a force-kill check and a stop-in-call check - #58
Merged
Merged
Conversation
force-kill/run.ps1 starts cmd /c ping jobs through Start-PkProcess, kills the PowerShell running them with taskkill /F (that process only), and counts any ping left running: the check behind "No orphans" for a script killed outright. stop-in-call/run.ps1 sends a real Ctrl+C (to a child console of its own) or PowerShell.Stop() while a .NET call runs, and records where the stop takes effect: never inside the call, and only at the next function or cmdlet call, also once PowerShell has compiled the code. Behind the Limits note on workers stuck in a .NET call. The README lists both. 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.
Two checks for
Testing/, behind claims the README already makes. Like the other scripts there, they aren't part of the harness. No change to the kit or the harness.Testing/force-kill/run.ps1, behind "No orphans": each round starts a host PowerShell that runs 20cmd /c pingjobs throughStart-PkProcess, kills that host withtaskkill /F(the host only, not its tree), and counts anypingstill running. Nothing in the harness kills PowerShell itself outright with child programs running.Testing/stop-in-call/run.ps1, behind the Limits note that a worker stuck in a .NET call can't be interrupted: a real Ctrl+C (sent to a child console of its own, as harness section V does) orPowerShell.Stop()arrives during a 3 s .NET call. It records whether the call is cut short and how far the script gets before the stop takes effect, also after PowerShell has compiled the code.The README's
Testing/list gets a line for each.Tested on Windows PowerShell 5.1 and PowerShell 7.6:
Stop()waited about 2.2 s for each to finish), and the stop always took effect at the script function call (step 4), after the assignment, theif/tryaround a .NET method call, and the secondtry/if(steps 1 to 3) had all run.🤖 Generated with Claude Code