beads/internal/testutil
mayor 880b60b8e8 fix: CleanStaleTestServers now removes orphaned temp dirs and legacy PID files
Three bugs fixed:
1. Legacy PID files (/tmp/dolt-test-server-*.pid) invisible to cleanup because
   only the new prefix (beads-test-dolt-) was scanned. Now scans both prefixes.
2. Orphaned temp dirs (beads-test-dolt-*, beads-bd-tests-*, fix-test-dolt-*,
   doctor-test-dolt-*) accumulated forever because cleanup only handled PID
   files. Now removes dirs older than 5 minutes whose server PID is dead.
3. Go module caches in test dirs have read-only perms preventing rm -rf.
   Now chmod u+w before removal.

Found 94 stale test dirs (4.6GB) + 85 dolt data dirs (549MB) + 1 rogue
test server + 21 dead PID files on production machine.

Closes beads-8yk beads-4rj beads-str

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 21:33:50 -08:00
..
fixtures chore: clean up stale SQLite references in comments (bd-nlw2m) 2026-02-18 11:50:52 -08:00
testdoltserver.go fix: CleanStaleTestServers now removes orphaned temp dirs and legacy PID files 2026-02-23 21:33:50 -08:00
tmpfs.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
tmpfs_test.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00