Say what the per-run schema directory costs

Soul G3: the comment asserted only the half that improved -- a passing
run leaves nothing -- and was silent about the failing run, which is the
only case that creates a directory at all and now leaks one permanently,
one per failing run where the shared directory was overwritten however
often it failed. The trade is still right; the comment now names its
cost and says who cleans up.

Comment only. No behaviour, so no mutation.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-16 12:53:57 +02:00
commit 4a654351e3

View file

@ -1464,8 +1464,14 @@ mod tests {
// produces -- are not this derivation, and copying one of those into
// `schemas/cultnet` publishes a schema no Rust type produces. A shared
// directory cleared first would have to defend that clear against a
// held handle; an unshared one has nothing to defend. The directory is
// only created when something is stale, so a passing run leaves none.
// held handle; an unshared one has nothing to defend. The cost is that
// nothing ever removes one. The directory is only created when
// something is stale, so a passing run leaves none -- but a failing run
// leaves its copies behind for good, one directory per failing run
// where the shared design left one however often it failed. That is the
// trade: the copies are the evidence the failure message names, and
// they outlive the run that wrote them. Whoever reads the failure is
// the one who deletes them.
let derived_dir = std::env::temp_dir().join(format!(
"epiphany-pipeline-schemas-{}-{}",
std::process::id(),