Repository navigation
Clean up test servers when a run ends (D226) - #11
Merged
Merged
Conversation
D226: tests remove everything they created and touch nothing else. The harness now records each server folder and Java process it makes and removes them at exit, on Ctrl-C, SIGTERM and SIGHUP too. A folder left by an earlier run stops the run instead of being deleted. KEEP_TEST_SERVERS=1 keeps the folders. Checked on MobShowdown with a full run and an interrupted one; both left nothing behind. The other harnesses share the code but weren't run here. 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.
Tests now remove the server folders and Java processes they created when the run ends, whether it passes, fails or is interrupted, and touch nothing else. A leftover folder from an earlier run stops the run. Checked by hand on MobShowdown: a full run (42/42) and one interrupted after 45 seconds both left the work folder empty. The other harnesses share the code but weren't run.
🤖 Generated with Claude Code