Commits
Commits on
0563cbfec08046b75ca933b5b9909fd656d3ea9fFiltered to crates/engine/src/scratch.rsClear filter2026-08-13
🧹 test(scratch): a run that never unwound has its directory taken by the next oneAhmet Kaan Gümüş · 267d45b
🧹 test(scratch): a run that never unwound has its directory taken by the next one `Drop` cleans up after a passing test and after a panicking one, but not after an aborted one -- the AV1 hardware encoder aborts whenever the driver's ring hangs, and five directories from this morning's runs were still in /tmp. The name already carries the process id that made it, so the first scratch directory of a run reaps every `ve_*` one whose owner is no longer in /proc, and leaves a live sibling suite's alone.
2026-08-11
🧹 test(scratch): a fixture directory is deleted by the test that made itAhmet Kaan Gümüş · 5c39124
🧹 test(scratch): a fixture directory is deleted by the test that made it Every suite here made its own directory under /tmp with a name and a process id and then walked away from it: 2907 `ve_*` directories, 6.4G of a 16G tmpfs, none of them reclaimable by anything but a person with `rm`. `engine::scratch::Scratch` is the one place a throwaway path comes from now -- a directory, or the single file inside one -- and `Drop` is what takes it back. That is the whole reason it is a guard rather than a cleanup call at the end of a test: unwinding runs `Drop`, so the *failing* tests, which are exactly the ones that used to leave the most behind, clean up like the passing ones. It derefs to a `Path`, so the call sites did not have to change: the helpers that handed back a `PathBuf` hand back one of these. The prefixes stay what they were, so a directory is still recognisable while a test is stopped in it. Nothing about what a test *does* moved -- only where its fixtures live and when they die. Driven: the whole engine suite and the app's own tests run with the count of `/tmp/ve_*` before equal to the count after.