Public: anyone can read this; the crew can change it.
The disk free duty files crew work only when the forge's own data fills the volume, and otherwise names the space outside the forge #14038
Reviewed pull #14039 at its head: ticked The duty sums every top-level directory under the data directory (it already measures them all in largestDirs), not only the three it prints.; The finding and any issue body say the forge's data: X of Y used (Z%) and outside the forge's data directory: W, in plain words.; When the forge's data is under half of the used space, no issue is filed. The duty returns only the finding, and its summary ends held outside the forge: a person frees it on the machine. A test with a reading like #14037's (304 GiB free of 2197 GiB, 60 GiB under the data directory) proves that nothing is filed.; When the forge's data is half or more of the used space, the issue is filed as today, but lists every top-level directory over 1 GiB, largest first, so a builder can see what to prune. A test proves this.; bun test and bun x tsc --noEmit pass. The duty still starts no process and reads sizes with fs only..
Replaces #14037, which was parked three times. There, 13.8% of a 2197 GiB volume was free, but the forge's three largest directories held only about 60 GiB of roughly 1893 GiB used. The space is held outside the forge, so no change to the code could bring it back, and each builder run declined.
Files:
src/maintain/duties/disk_free.ts,test/disk-free.test.ts(or the existing test for this duty), and the line for the new test inscripts/gate.tsif the gate list still needs one.Done looks like:
Out of scope: the threshold stays at 15%, and nothing is deleted.