commit bf16c76a52feccba05d33f6ca4010b3840085f05
parent cff7dfbdb0be558f6259213323bf2d14812cf31a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 18:05:10 -0500
umtool: A2's two tests follow its temp names -- heavy-gate's stand-in checkout copies atomicFile.mjs beside renderPriority.mjs (which now imports it), and makeTrailer's encode target is `.cut.trailer.tmp-<pid>-<seq>-<random>.mp4` (E5 A2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/umtool/report-to-video/heavy-gate.test.mjs b/umtool/report-to-video/heavy-gate.test.mjs
@@ -122,6 +122,8 @@ test("with no HEAVY_LOCK_FILE the lock is pinned to the checkout's git common di
// ...and render mode's state module, which the gate imports.
mkdirSync(path.join(repo, "common", "lib"), { recursive: true });
copyFileSync(path.join(checkoutRoot(), "common", "lib", "renderPriority.mjs"), path.join(repo, "common", "lib", "renderPriority.mjs"));
+ // ...and the temp-name helper it writes its state through.
+ copyFileSync(path.join(checkoutRoot(), "common", "lib", "atomicFile.mjs"), path.join(repo, "common", "lib", "atomicFile.mjs"));
const lock = path.join(repo, ".git", "heavy-queue.lock");
const seen = await withEnv(
{ HEAVY: undefined, HEAVY_HELD: undefined, HEAVY_LOCK_FILE: undefined, HEAVY_MIN_FREE_MB: "0" },
diff --git a/umtool/report-to-video/trailer.test.mjs b/umtool/report-to-video/trailer.test.mjs
@@ -268,7 +268,7 @@ test("makeTrailer: the encode runs in the slot, the file lands by rename, the re
});
assert.equal(slotted, 1);
assert.equal(res.outPath, path.join(take, "out", "cut.trailer.mp4"));
- assert.match(path.basename(ran.at(-1)), /^\.cut\.trailer\.\d+\.tmp\.mp4$/);
+ assert.match(path.basename(ran.at(-1)), /^\.cut\.trailer\.tmp-\d+-\d+-[0-9a-f]{8}\.mp4$/);
assert.equal(await readFile(res.outPath, "utf8"), "trailer");
const rec = JSON.parse(await readFile(path.join(take, "out", "cut.trailer.json"), "utf8"));
assert.equal(rec.kind, "trailer");