Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 453f353604e999710a85fd87fcb7ebd4e11ff09c
parent de7d365573579316a899b57e2c8184e12661b25a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 23:45:53 -0500

umtool: a take's play manifest is written through a tmp name of its own -- two writes at once (the intro and the deck preview) lost a rename (intro-play.spec flake, found in L4's runs)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/lib/report/takeManifest.mjs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/umtool/lib/report/takeManifest.mjs b/umtool/lib/report/takeManifest.mjs @@ -209,7 +209,9 @@ export async function cachedTakeManifest(projectDir, id) { /** Write a take's play manifest (tmp + rename); returns its path. */ export async function writePlayManifest(projectDir, id, manifest) { const file = playManifestPath(projectDir, id); - const tmp = `${file}.${process.pid}.tmp`; + // A tmp name of its own per write: Play asks the intro and the deck preview at once, and two writes of one + // take in this process sharing `<file>.<pid>.tmp` lost a rename (ENOENT; intro-play.spec, 9 Nov). + const tmp = `${file}.${process.pid}.${Math.random().toString(36).slice(2, 10)}.tmp`; await writeFile(tmp, `${JSON.stringify(manifest, null, 2)}\n`, "utf8"); await rename(tmp, file); return file;