Repository navigation
fix: retire test products across workspace lifecycles - #549
KanbanTrainer wants to merge 2 commits into
Conversation
|
Ran into this today on a clean macOS setup using XcodeBuildMCP 2.7.0 installed via the Homebrew tap. Noticed the disk was at 97% capacity (460 GB disk, 518 MB free). Traced it to: 53 accumulated Manually deleted the directories and freed ~208 GB. This PR's startup sweep and post-test retirement logic would have prevented all of it. Looking forward to this landing. |
|
This PR has been inactive for 21 days. It will be closed in 7 days if no further activity occurs. Add a comment to keep it open, or apply the |
|
Closing due to inactivity. If this is still relevant, please reopen or open a fresh PR with updated context. |
Source-based test calls currently leave an internal
.xctestproductsbundle behind after their only consumer exits, and retention only runs when the same workspace key is used again. Abandoned worktree keys therefore accumulate multi-gigabyte products indefinitely.This rebases and preserves Ian Rahman’s retention work from #532 on the current MobileBuildMCP codebase, then closes the abandoned-workspace gap:
The sweep is limited to MobileBuildMCP-managed test products. It does not delete logs, result bundles, DerivedData, unrecognized paths, or caller-owned products.
Validation: formatting, typecheck, lint (existing warnings only), build, and 59 focused lifecycle/config/test-executor tests pass. The full 2,616-test unit run passed 2,614 tests; the two unrelated environment-sensitive failures reproduce independently (
initsees an existing user skill install, and the command-runner signal assertion observed SIGTERM instead of SIGKILL).Warden runtime-boundary review could not run because the
wardenexecutable is not installed in this environment.Closes #526
Refs #524
Continues #532
Implemented with AI assistance.