fix: keep test envs and patches in disk cleanup

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 03:38:59 +01:00
1 parent a5425d69cd
commit 54bed5c235
4 files changed
+51 -7

No files matched your search

+4 -2
View File
@@ -14,8 +14,10 @@ kept, so committed work stays reachable. A worktree with real uncommitted
code is listed, never removed.
tmp/ entries older than --hours that no process uses are removed, except
tmp/acquire, git bundles (*.bundle, which are backups) and an entry that
holds a linked worktree, which the worktree rule judges.
what KEPT_TMP in devtools/diskcleanup.py lists (tmp/acquire, git bundles and
patches, the TUI test environments, the Python 3.8 wrapper, the CI
guardian's state) and an entry that holds a linked worktree, which the
worktree rule judges.
The last line reports free space, and an ALERT line when it is under
--alert-gb. The exit code is 1 under that threshold, so a timer sees it.