commit cd788cdb4c31e510d74ca5ffe6170f21985f3178
parent c8da33f9f109d6000ed6ffb11fb5581685c979fb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 1 Nov 2026 23:25:06 -0500
umtool pieced.spec: keep the pieced fixture's window under the 120 s decode cap
pc01's window was 0-199 s (a 183 s gap), past MAX_DECODE_SPAN, so the bench
decoded no covering span and played through the element, not Web Audio. That is
the bench's documented behaviour for a window past one decode, not a bug in the
pieced path. The fixture now has an 83 s gap (pieces 0-9 and 90-99, clip 1-98),
so the window is 0-99 s and the spec's webaudio expectation holds.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat:
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/umtool/e2e/fixtures/make-fixture.mjs b/umtool/e2e/fixtures/make-fixture.mjs
@@ -1891,21 +1891,21 @@ makeCutEditingFixture({ reports, manifest, deckManifest, cachedWindow: path.join
}
// A clip fetched PER KEPT PIECE (pieced.spec.ts, fetch-per-piece): no window holds its extent, the
// pieces do. READ-ONLY (the spec writes nothing), so one project serves it.
-// pc01 pcvid 1-198, gap 8-191 (183 s out): both pieces on disk -- raw windows 0-9 and 190-199
-// pc02 pcvid2 1-198, the same gap: only the first piece on disk (0-9), the second never fetched
+// pc01 pcvid 1-98, gap 8-91 (83 s out): both pieces on disk -- raw windows 0-9 and 90-99
+// pc02 pcvid2 1-98, the same gap: only the first piece on disk (0-9), the second never fetched
// The windows are the fixture's vid1 tone window (silences 2.9-3.1, 5.9-6.1), 15 fps.
{
- const gap = [{ from: 8, to: 191 }];
+ const gap = [{ from: 8, to: 91 }];
const g = manifest("pieced-fixture", "The Pieced Fixture", { siteOrigin: "https://archive.example" }, [
- { type: "clip", id: "pc01", video: "pcvid", start: 1, end: 198, cite: 1, section: 0, lock: true, quote: "a clip fetched in two pieces", gaps: gap },
- { type: "clip", id: "pc02", video: "pcvid2", start: 1, end: 198, cite: 1, section: 0, lock: true, quote: "a clip with one piece fetched", gaps: gap },
+ { type: "clip", id: "pc01", video: "pcvid", start: 1, end: 98, cite: 1, section: 0, lock: true, quote: "a clip fetched in two pieces", gaps: gap },
+ { type: "clip", id: "pc02", video: "pcvid2", start: 1, end: 98, cite: 1, section: 0, lock: true, quote: "a clip with one piece fetched", gaps: gap },
]);
g.render.fetchPad = 0;
const dir = writeProject("pieced-fixture", g);
mkdirSync(path.join(dir, "out", "clips-raw"), { recursive: true });
const win = path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4");
copyFileSync(win, path.join(dir, "out", "clips-raw", "pcvid_0.00-9.00.mp4"));
- copyFileSync(win, path.join(dir, "out", "clips-raw", "pcvid_190.00-199.00.mp4"));
+ copyFileSync(win, path.join(dir, "out", "clips-raw", "pcvid_90.00-99.00.mp4"));
copyFileSync(win, path.join(dir, "out", "clips-raw", "pcvid2_0.00-9.00.mp4"));
}
// The same cut for Play → Edit this clip → Back (phone-walk.spec.ts), which WRITES
diff --git a/umtool/e2e/pieced.spec.ts b/umtool/e2e/pieced.spec.ts
@@ -8,13 +8,13 @@ import * as urls from "./urls";
// that asked for "the window holding the clip" reads them.
//
// Fixture: pieced-fixture (make-fixture.mjs), READ-ONLY.
-// pc01 pcvid 1-198 less the gap 8-191: both pieces on disk (raw windows 0-9, 190-199)
-// pc02 pcvid2 1-198, the same gap: only the first piece on disk
+// pc01 pcvid 1-98 less the gap 8-91: both pieces on disk (raw windows 0-9, 90-99)
+// pc02 pcvid2 1-98, the same gap: only the first piece on disk
//
// - the Cut tab's pill: pc01 "cached" (data-fetched 1), pc02 "not fetched yet"
// - the bench opens pc01 on ONE window on the source's clock (the pieces where
// they were said, black filler between), plays it across the gap -- the
-// gap skipped as the cut will skip it, seven seconds of sound twice, not 197
+// gap skipped as the cut will skip it, seven seconds of sound twice, not 97
// - pc02 is not offered as playable: it offers to fetch
// - the walk (`ready N of M`) counts pc01 and not pc02
// ---------------------------------------------------------------------------
@@ -50,7 +50,7 @@ test("the bench plays a clip fetched in pieces as one timeline: the gap is skipp
};
const wins = clip.windows ?? [];
expect(wins[0]?.name, JSON.stringify(wins)).toMatch(/\.pieces\.mp4$/);
- expect([wins[0].from, wins[0].to]).toEqual([0, 199]);
+ expect([wins[0].from, wins[0].to]).toEqual([0, 99]);
await page.goto(urls.clipBenchHref(PROJECT, "pc01"));
const playback = page.locator("[data-playback]");
@@ -69,9 +69,9 @@ test("the bench plays a clip fetched in pieces as one timeline: the gap is skipp
expect(await playback.getAttribute("data-play-engine")).toBe("webaudio");
const a = Number(await playback.getAttribute("data-play-ctx-start"));
const b = Number(await playback.getAttribute("data-play-ctx-stop"));
- // 1-198 less the 183 s gap: 14 s of sound (7 + 7), not 197.
+ // 1-98 less the 83 s gap: 14 s of sound (7 + 7), not 97 (the window stays under the 120 s decode cap, else the bench plays through the element).
expect(b - a).toBeCloseTo(14, 1);
- expect(Number(await playback.getAttribute("data-play-to"))).toBeCloseTo(198, 1);
+ expect(Number(await playback.getAttribute("data-play-to"))).toBeCloseTo(98, 1);
await shot(page, "bench-pieced-playing");
await page.locator("body").press(" ");
});