Skip to content

chore(gx10): disk cleanup script for old distill runs#1885

Merged
noahgift merged 3 commits into
mainfrom
chore/gx10-disk-cleanup-script
May 23, 2026
Merged

chore(gx10): disk cleanup script for old distill runs#1885
noahgift merged 3 commits into
mainfrom
chore/gx10-disk-cleanup-script

Conversation

@noahgift

Copy link
Copy Markdown
Contributor

Summary

scripts/cleanup-gx10-runs.sh reclaims disk on gx10 by removing old distill runs from /home/noah/runs. PMAT-704 cascade post-mortem caught gx10 at 98% disk; the Stage D dispatch wrapper preflight requires ≥ 15 GB free.

Safety

  • Dry-run by default; --apply required to actually delete.
  • Excludes runs younger than AGE_DAYS (default 3).
  • Excludes runs containing the .production marker file.
  • Excludes the most-recent run regardless of age.

Env vars

AGE_DAYS, RUNS_DIR, GX10_HOST, GX10_USER.

QA

  • bash -n syntax-ok
  • bashrs lint 0 errors

🤖 Generated with Claude Code

`scripts/cleanup-gx10-runs.sh` reclaims disk on gx10 by removing old
distill runs from /home/noah/runs. PMAT-704 cascade post-mortem caught
gx10 at 98% disk; the Stage D dispatch wrapper preflight requires
>= 15 GB free.

Safety:
* Dry-run by default; --apply required to actually delete.
* Excludes runs younger than AGE_DAYS (default 3).
* Excludes runs containing the `.production` marker file.
* Excludes the most-recent run regardless of age (in case it's still
  in flight and the operator forgot to mark .production).

Override env vars: AGE_DAYS, RUNS_DIR, GX10_HOST, GX10_USER.

QA: bashrs lint reports 0 errors.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@noahgift noahgift enabled auto-merge (squash) May 22, 2026 13:51
@noahgift noahgift merged commit 45c59a3 into main May 23, 2026
10 checks passed
@noahgift noahgift deleted the chore/gx10-disk-cleanup-script branch May 23, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant