Repository navigation
dev2: nightly disk-clean - #246
Merged
Merged
Conversation
…er caches) dev2's / hit 99-100% on 2026-11-08 (supabase-db PANIC: No space left on device); a manual sweep freed 73G, mostly build output in finished checkouts. disk-clean does that nightly from crontab, dry run by default. Deletes only regenerable or provably dead things, each behind several guards (idle repo, no live process, not wired to a linked CLI/cron/unit); backups via diskpush prune (newest always kept) plus dead .partial dumps; docker build cache + dangling images only, never containers or volumes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan41 finding(s) HIGH/CRITICAL: 15 | MEDIUM: 12 | LOW: 14
Snippets are redacted; ThreatCrush never prints matched credential material. |
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dev2's root disk hit 99-100% on 2026-11-08, and supabase-db logged
PANIC: No space left on device. A manual sweep freed 73 GB, mostly build output in finished checkouts.dev2/disk-cleanruns that sweep nightly from crontab (30 4 * * *, under flock). It is a dry run unless given--apply.It deletes only regenerable or provably dead things:
node_modules,target,.next,.turbo,.svelte-kit) under~/src,~/worktreesand~/scratch, only when all of these hold:package.json, or atargetnext to aCargo.tomlor holdingCACHEDIR.TAG;state.json, idle 3+ days, and no running process names the job.diskpush dbbackup pruneapplies each database's saved retention and always keeps the newest dump..partialdumps older than 24 h that nothing has open are also removed.It never touches
~/www, database data, volumes, source files or.git. Logs go to~/.local/state/disk-clean/. The first dry run on dev2 listed 9 idle build dirs and 3 finished job dirs.🤖 Generated with Claude Code