feat: add automatic disk cleanup - #79
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughAdds disk pressure cleanup for idle runner workspaces and shared CI caches, with manual CLI commands, automatic threshold-based execution, Settings controls, persisted configuration, documentation, and XCTest coverage. ChangesDisk cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant RunnerManager
participant DiskCleanupService
participant FileManager
RunnerManager->>DiskCleanupService: check available disk space
RunnerManager->>DiskCleanupService: cleanup idle workspaces and shared caches
DiskCleanupService->>FileManager: enumerate and remove cleanup candidates
DiskCleanupService-->>RunnerManager: return reclaimed bytes
Suggested labels: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# [1.18.0](v1.17.4...v1.18.0) (2026-07-24) ### Features * add automatic disk cleanup ([#79](#79)) ([8c961fb](8c961fb))
|
🎉 This PR is included in version 1.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
What changed
mac-runner cleanup,--dry-run, and--workspaces-onlyWhy
Long-running self-hosted runners accumulate workspaces and dependency/build caches until the host disk fills. MacRunner owns the runner lifecycle and is the right place to reclaim that data without racing active jobs.
Safety
Validation
swift test— 108 tests passedgit diff --checkSummary by CodeRabbit
cleanupCLI commands with dry-run and workspace-only options.