Skip to content

Clean up test servers when a run ends (D226) - #11

Merged
mgilardi merged 1 commit into
mainfrom
test-cleanup-d226
Nov 16, 2026
Merged

mgilardi merged 1 commit into
mainfrom
test-cleanup-d226

Conversation

@mgilardi

Copy link
Copy Markdown
Contributor

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

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>
@mgilardi
mgilardi merged commit a5a245d into main Nov 16, 2026
2 checks passed
@mgilardi
mgilardi deleted the test-cleanup-d226 branch November 16, 2026 19:12
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.

1 participant