Archilyzer · Source

archilyzer

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

commit a80441a99097346110ae8adf5738df7de558f00b
parent 331369f06c0939bb982fa806800fe422dea22b8c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun,  1 Nov 2026 00:19:11 -0400

Merge lane/owed-fixes-1031 (render-mode chain, Twitch links, red specs) into the fetch-per-piece branch

Diffstat:
Mumtool/e2e/live-preview.spec.ts | 14++++++++------
Mumtool/e2e/onscreen.spec.ts | 12+++++++++++-
Mumtool/e2e/stats-overlay.spec.ts | 4+++-
3 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/umtool/e2e/live-preview.spec.ts b/umtool/e2e/live-preview.spec.ts @@ -89,25 +89,27 @@ test("the live preview: the deck over the clip, the tally and the stamp at the p await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:0"); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", ""); - // 1.4 s on (source 5.4): the stamp has landed on its source second, the tally has stepped. - await nudgePlayer(page, 1.4); - await expect.poll(async () => Number(await live.getAttribute("data-live-t"))).toBeCloseTo(t0 + 1.4, 1); + // 1.5 s on (source 5.5): the stamp has landed on its source second, the tally has stepped -- and its + // roll (STAMP_MOTION.roll, 0.4 s from 5.0) is over: at 5.4 the playhead sat on the roll's last frames, + // where the outgoing 0 (power2.in) still reads ~0.2. + await nudgePlayer(page, 1.5); + await expect.poll(async () => Number(await live.getAttribute("data-live-t"))).toBeCloseTo(t0 + 1.5, 1); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", "k1:on"); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:1"); // And the pages say the same: the stamp's page shows k1, the deck's tally shows Grift 1. await expect(page.getByTestId("live-stamp")).toHaveAttribute("data-feed-ready", "1", { timeout: 15_000 }); await expect.poll(() => opacityIn(frameOf(page, /stamp-preview/), '.stamp[data-claim="k1"]')).toBeGreaterThan(0.9); await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CONTRADICTED.n1"]')).toBeGreaterThan(0.9); - expect(await opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CONTRADICTED.n0"]')).toBeLessThan(0.1); + await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CONTRADICTED.n0"]')).toBeLessThan(0.1); - // 0.8 s more (source 6.2): the clip's second mark, its own stamp and step. + // 0.8 s more (source 6.3): the clip's second mark, its own stamp and step. await nudgePlayer(page, 0.8); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", "k1b:on"); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:1,CONTRADICTED:1"); await expect.poll(() => opacityIn(frameOf(page, /stamp-preview/), '.stamp[data-claim="k1b"]')).toBeGreaterThan(0.9); await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CORROBORATED.n1"]')).toBeGreaterThan(0.9); - // Back before both (source 4.6): no stamp, nothing counted -- the pages are seeked back too. + // Back before both (source 4.7): no stamp, nothing counted -- the pages are seeked back too. await nudgePlayer(page, -1.6); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", ""); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:0"); diff --git a/umtool/e2e/onscreen.spec.ts b/umtool/e2e/onscreen.spec.ts @@ -422,6 +422,16 @@ const readSchedule = () => // A build prunes the deck's frames after the final mux and records how many // there were (report-to-video/prune-frames.mjs): the sequence must be gone, // and its count is read from the record. +/** + * Whether a renderer call wrote a layer's frames: to `<stem>-frames`, or -- a + * first render, which captures each distinct frame once and links every frame + * of the layer to it (compose-chrome.mjs reuseFrames, 61e53aea) -- to + * `work-capture-<stem>-frames` beside it. + */ +const rendersLayer = (argv: string, stem: string) => + [FRAMES.replace(/deck-frames$/, `${stem}-frames`), FRAMES.replace(/deck-frames$/, `work-capture-${stem}-frames`)].some( + (dir) => argv.includes(`--output ${dir} `) || argv.endsWith(`--output ${dir}`), + ); const prunedFrames = (name = "deck-frames") => { expect(existsSync(path.join(VARIANT_OUT, "chrome", name)), `${name} pruned after the mux`).toBe(false); const rec = JSON.parse(readFileSync(path.join(VARIANT_OUT, "chrome", "pruned.json"), "utf8")) as { @@ -470,7 +480,7 @@ test("re-render on-screen runs --chrome-only over a built cut, to done, rebuildi expect(argv).toContain("render --format png-sequence"); expect(argv).toContain("--fps 15"); expect(argv).toContain("--no-browser-gpu"); - expect(argv).toContain(`--output ${FRAMES}`); + expect(rendersLayer(argv, "deck"), argv).toBe(true); expect(built.events.filter((e) => e.ev === "chrome").map((e) => e.phase)).toEqual( expect.arrayContaining(["schedule", "compose", "render", "overlay"]), ); diff --git a/umtool/e2e/stats-overlay.spec.ts b/umtool/e2e/stats-overlay.spec.ts @@ -70,7 +70,9 @@ test("a deck build lays the stats region over each clip, and verify-build holds expect(chrome.some((e) => e.phase === "compose" && e.region === "stats")).toBe(true); expect(chrome.some((e) => e.phase === "render" && e.region === "stats")).toBe(true); const renders = readFileSync(INVOCATIONS, "utf8").split("\n").filter((l) => l.includes("stats-build-fixture")); - expect(renders.some((l) => l.includes(path.join(VARIANT_OUT, "chrome", "stats-frames")))).toBe(true); + // A first render captures each distinct frame once into work-capture-stats-frames (compose-chrome.mjs reuseFrames). + const chromeDir = path.join(VARIANT_OUT, "chrome"); + expect(renders.some((l) => l.includes(`${chromeDir}/stats-frames`) || l.includes(`${chromeDir}/work-capture-stats-frames`))).toBe(true); // The schedule draws both clips, each number held from the scan's point. const schedule = JSON.parse(readFileSync(path.join(VARIANT_OUT, "schedule.json"), "utf8")) as {