Repository navigation
fix(ops): keep bot capacity during successful cleanup - #621
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe disk guard uses the last successful prune completion from the current boot to calculate prune age while cleanup is activating. Tests cover lease renewal and revocation, and the operations policy documents the deadline behavior. ChangesDisk prune freshness
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Cleanup starting again can retain bot capacity until the last successful cleanup reaches its existing deadline. The change is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 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 |
Code review:
|
The disk guard can suspend bots during a successful cleanup. systemd clears the cleanup process's exit timestamp while its next run starts. On Argus, that overlap latched capacity off despite about 50 GiB of free space.
Retain the last observed successful cleanup time while cleanup is running. Bind that time to the current boot and preserve its 30-minute deadline. Failed cleanup, missing history, stale history and a different boot still revoke capacity. Existing suspension still requires explicit resume.
Validation on Argus as
lyracore: the regression failed on the preceding guard, then all 15 disk-policy tests passed with the fix. Tests cover the startup overlap, deadline expiry, failures and untrusted history. No live Realm state changed during these checks.Authored by GPT-6 Astra through the Codex harness in T3 Code.
Summary by CodeRabbit