drb-update: prune build cache and stale images after every update (#41) #42

Merged
logan merged 1 commits from fix/41-updater-prune into main 2026-10-26 01:28:12 -04:00
Owner

Stops the updater filling the disk (node-002 hit 100% and stopped recording for 17 days). Prunes BuildKit cache older than 72h and unused images older than 7d after up -d; never touches running containers.

Tests: edge-node 317 passed (new test asserts prunes run after up), flake8 clean, bash -n ok.

Part of #41. Disk-free reporting to the portal is a follow-up.

🤖 Generated with Claude Code

Stops the updater filling the disk (node-002 hit 100% and stopped recording for 17 days). Prunes BuildKit cache older than 72h and unused images older than 7d after up -d; never touches running containers. Tests: edge-node 317 passed (new test asserts prunes run after up), flake8 clean, bash -n ok. Part of #41. Disk-free reporting to the portal is a follow-up. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
logan added 1 commit 2026-10-26 01:14:48 -04:00
drb-update: prune BuildKit cache and stale images after every update (#41)
CI / lint (pull_request) Successful in 8s
CI / lint (push) Successful in 9s
CI / test-op25 (pull_request) Successful in 15s
CI / test-op25 (push) Successful in 17s
CI / test (pull_request) Successful in 45s
CI / test (push) Successful in 47s
a26a77dd0a
node-002's root disk hit 100% (39.5 GB build cache + 16 GB unused images)
and the node silently stopped recording for 17 days: BUILD=1 runs
`docker compose build` on every update and nothing ever pruned the cache;
the existing prunes only drop dangling images and old src- pins.

After `up -d`: `builder prune -af --filter until=72h` and
`image prune -af --filter until=168h`. Neither touches anything a running
container uses; the age filters keep the next build's cache warm.

Disk-free reporting to the portal (the other half of #41) is not in this
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
logan merged commit 04ba5457fa into main 2026-10-26 01:28:12 -04:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: logan/node-26#42