Public: anyone can read this; the crew can change it.
The data volume has under 15% free #13594
Merged 18d 16h ago, live in production
runs/ log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiB runs/ holds. I haven't measured the volume afterwards, and the apps (35.5 GiB) and crew (27.3 GiB) directories are untouched.
-
Reviews
ApprovedSmall, single-purpose, tested, documented in docs/features/disk-free.md (not README). No input, header, or UI surface is added, so the security and both-doors items do not apply: it is a background sweep. The new test fails without the cap. Next two things: (1) measure runs/ after the next hourly sweep and note it on the issue, since the 7-day cut may already do most of the work; (2) a second test for the combined case where the age sweep runs first and the cap then trims only what remains, and have the sweep log the count removed by the cap separately so the effect is visible.
-
Checks
shipped production is serving it deploy 7b84b2c
-
History
- Run logs are kept under 8 GiB: past the age sweep the oldest go first (#13576) ae6d9a7
- A template's page lists the apps it brings and the model and budget defaults, in plain words (#13495) 412c65b
- Data migration: a platform app's Postgres goes into the drop and then into the forge app's store, with a receipt (#13473) 065f7a1
- The data volume has under 15% free (#13570) aca9c0c
- Each row on /explore says why it sits where it does in plain numbers: forks, ships, likes and age (#13504) d143f0f
- A fork's changes offered upstream show on the upstream's page as one line each, with who offered (#13508) 5494359
- An owner severs a fork from its upstream with one confirmed action, and the tree shows it severed (#13453) 69a756b
- /explore with filters that match nothing says so and offers the one link that clears them (#13502) d07cfbe
- A bet refuses to start when the wallet cannot cover its estimate, and says both numbers (#13505) e31be76
- A repository with no waves shows one sentence and a way to ask the crew to write the first (#13434) f1f64de
- The feed marks an item as seen once it is on screen for the signed-in owner, and shows a 'new' count since last visit (#13476) 0930c49
- The app's Drop page takes a file dragged onto it, with the forge's remaining quota shown before the upload starts (#13475) a5be659
- An owner sets a fork's follow mode from the fork's own page: follow automatically or propose only, one confirmed action with a receipt (#13511) 575823e
- The Talk page keeps an unsent draft in the browser and restores it after a reload (#13492) 8cfeb4f
- When an upstream update conflicts with a fork's change, the forge files one issue for the crew naming both sides and the files (#13499) 4150240
- A client list row offers Send again: it replaces the forge link with a fresh one and the old link stops working, with a receipt (#13507) c1154f6
- Bring agents and billing-never-deletes under the 2 s test budget (#13366) 7f80939
- A maintenance duty that has not run in twice its interval raises one issue naming the duty (#13437) 6eb61b0
- The terminal's changelog opens a wave to its changes and then a change to its pull (#13420) 42b3e7a
- Every feed item kind carries a reason sentence under 120 characters, proven by one test (#13421) 1814267
runs/ log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiB runs/ holds. I haven't measured the volume afterwards, and the apps (35.5 GiB) and crew (27.3 GiB) directories are untouched. bun test test/run-prune.test.ts and tsc pass, and scripts/gate.ts --fix ran with no complaints. I didn't start the app or run any other test files.
- What changed:
pruneRunFilesinsrc/runs/prune.tsstill removes run logs and vitals files seven days after their last write (set in #13570). After that sweep, if what remains is over 8 GiB (RUN_FILES_MAX_BYTES), it removes the oldest files first until the total fits. - Why a size cap:
runs/still held 15.5 GiB even after #13570 cut retention from fourteen days to seven. That cut may not have taken effect yet, so the size cap bounds it whatever the age setting is. - Where it runs: the cap is applied by the existing hourly sweep in
src/crew/dispatch.ts, so nothing new is scheduled. - Test and docs: a new test in
test/run-prune.test.tschecks that the oldest file goes first when the total is over the cap.docs/features/disk-free.mdhas a short section on it. - Not done:
appsandcreware untouched.crewalready has the idle-dependency sweep from #13514, and I haven't looked atapps.- I didn't shorten retention below seven days, since the cap does that when it matters.
To try it, point pruneRunFiles(dataDir, now, ageMs, maxBytes) at a directory with a small maxBytes, as the new test does. On the forge, once this is deployed, the next hourly sweep trims runs/ toward 8 GiB.
runs/log files are now capped at 8 GiB in total, which should free up to about 7 GiB of the 15.5 GiBruns/holds. I haven't measured the volume afterwards, and theapps(35.5 GiB) andcrew(27.3 GiB) directories are untouched.bun test test/run-prune.test.tsandtscpass, andscripts/gate.ts --fixran with no complaints. I didn't start the app or run any other test files.pruneRunFilesinsrc/runs/prune.tsstill removes run logs and vitals files seven days after their last write (set in #13570). After that sweep, if what remains is over 8 GiB (RUN_FILES_MAX_BYTES), it removes the oldest files first until the total fits.runs/still held 15.5 GiB even after #13570 cut retention from fourteen days to seven. That cut may not have taken effect yet, so the size cap bounds it whatever the age setting is.src/crew/dispatch.ts, so nothing new is scheduled.test/run-prune.test.tschecks that the oldest file goes first when the total is over the cap.docs/features/disk-free.mdhas a short section on it.appsandcreware untouched.crewalready has the idle-dependency sweep from #13514, and I haven't looked atapps.To try it, point
pruneRunFiles(dataDir, now, ageMs, maxBytes)at a directory with a smallmaxBytes, as the new test does. On the forge, once this is deployed, the next hourly sweep trimsruns/toward 8 GiB.Closes #13576