Archilyzer · Source

archilyzer

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

commit 845d2eaeb0b51f04e41c65f0b0ccbb259fc4c5b1
parent 10756f177d0ead47b3fd1b38cd29643a7358d090
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 26 Oct 2026 23:31:12 -0400

frame-keys test: a layer reused from the frames take --from kept beside it

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

Diffstat:
Mumtool/report-to-video/frame-keys.test.mjs | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/umtool/report-to-video/frame-keys.test.mjs b/umtool/report-to-video/frame-keys.test.mjs @@ -194,6 +194,16 @@ test("compose-chrome: a shifted stamp layer captures only its new keys, in one r // Its scratch is gone; the .key is this page's: the third run is cached whole. assert.ok(!readdirSync(path.join(out, "chrome")).some((n) => n.startsWith("work-"))); assert.equal((await composeChrome({ manifestPath: mp, region: "stamp", doRender: true, fps: 30 })).cached, true); + + // A take started --from another keeps the other's frames beside its own + // (takeFrom.mjs: chrome/work-from-<layer>-frames): reused from there too. + const { renameSync } = await import("node:fs"); + renameSync(framesDir, path.join(out, "chrome", "work-from-stamp-frames")); + writeFileSync(path.join(out, "schedule.json"), JSON.stringify(stamps(0))); + const third = await composeChrome({ manifestPath: mp, region: "stamp", doRender: true, fps: 30 }); + assert.equal(third.frameCount, 1200); + assert.ok(third.reused >= 1000 && third.captured < 100, `${third.reused} reused from the other take's, ${third.captured} captured`); + assert.ok(!readdirSync(path.join(out, "chrome")).includes("work-from-stamp-frames"), "the borrowed frames are let go"); } finally { if (env === undefined) delete process.env.HYPERFRAMES_BIN; else process.env.HYPERFRAMES_BIN = env;