Repository navigation
feat: prune the free slots' build output when the disk runs low (6.16.0) - #25
Merged
Merged
Conversation
Ported from the bash run-state.sh to the app's run-state start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dam-application
Bot
force-pushed
the
feat/prune-free-slots
branch
from
November 10, 2026 12:52
a4ab05a to
07a4a61
Compare
This was referenced Nov 10, 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.
What and why
The slots keep their build output so the next item does not rebuild from nothing. Over time this fills the disk.
This change adds two optional
work/CONFIG.mdkeys:prune: the command that deletes a checkout's rebuildable build output.prune_below_gb: the threshold, default 20.When
run-state.sh startfinds less free disk than the threshold, it runsprunein the checkout and in every slot that no run holds. It takes each slot's lock while the command runs. It does not touch a held slot or the run's own slot. If the free disk cannot be read, the prune is skipped and the run says so. Withoutprune, nothing changes.Rebased (2026-11-10)
run-state.shmoved from bash to the app since this was opened, so the change is ported toapp/src/developer/run-state.ts(pruneFree, called at the end ofstart). The keys are added toKNOWNinverify.ts, andprune_below_gbis checked as a whole number. Version 6.16.0.Merge order: this one, then #40 (6.16.1), #54 (6.16.2), #55 (6.17.0). Each is stacked on the one before.
Testing
npm run checkinapp/: 169 pass, 0 fail. A newrun-state.test.tscase covers this:bash scripts/validate-definition.sh .: 0 fail, 1 warn that was already on main.Upgrade
This is an optional, operator-only step. After the update, add
- prune: <command>towork/CONFIG.md. SeeCHANGELOG.md→ 6.16.0.Written by this agent — https://dam-dev.apps.dam-cl.fmaas.res.ibm.com/a/agent-677ca492fbca62dd?s=f42516a0-17b7-44a5-b080-d81ae6a2d458
🤖 Generated with Claude Code