commit da811d8b677feba193367e1a0bcf468e3bed1ff0
parent 57dde30d95aa7d1bd00b892f8cf5e088b3156182
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 11:22:22 -0500
Revert "umtool e2e: the editor stub answers a held window of another fixture's channel as cached"
This reverts commit 57dde30d95aa7d1bd00b892f8cf5e088b3156182. Its premise was
wrong: in a fresh fixture the msurf cut's window is in the PROJECT's
out/clips-raw, not the corpus (the one seen there was written by an earlier
spec of the whole run), and the re-run alone failed the same way. The fix is
the chain's: cut-windows asks only for what the build would not find on disk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/umtool/e2e/fixtures/editor-stub-fetch-windows.mjs b/umtool/e2e/fixtures/editor-stub-fetch-windows.mjs
@@ -8,8 +8,7 @@
// GET /api/jobs/<id>/log the job's log (ungated, as the editor's is): one line per window,
// ` ✗ <slug>/<id> <from>–<to> (<clipId>): network — … 403 …` for a refused one
//
-// Only the montage-ops fixture's channels are served (FETCH_WINDOWS_CHANNELS); any other body is a 404,
-// unless each of its other channels' windows is already on disk (answered cached).
+// Only the montage-ops fixture's channels are served (FETCH_WINDOWS_CHANNELS); any other body is a 404.
// A window already on disk (<CHANNELS_DIR>/<slug>/data/<id>/clips/<from>-<to>.mp4, or one that holds
// it) is cached. A video id starting `vrefuse` is the Rumble embed lookup answering 403: its window
// fails. Every other window is written (a real mp4, the stub's writeWindow) when its job finishes.
@@ -56,11 +55,7 @@ export function fetchWindowsRoute(req, res, url, { channels, json, readBody, wri
if (req.method === "POST" && url.pathname === "/api/ops/fetch-windows") {
readBody(req, (body) => {
record({ route: "fetch-windows", ...(body ?? {}) });
- // A channel of another fixture is a 404 -- unless every window asked of
- // it is already on disk, which is answered cached as the editor answers
- // it (demo epic D1: Draft everything's cut-windows step asks for the
- // drafted cut's windows, and the msurf cut's are held).
- if (Array.isArray(body?.items) && body.items.some((it) => !FETCH_WINDOWS_CHANNELS.has(String(it?.slug)) && !onDisk(channels, it))) {
+ if (Array.isArray(body?.items) && body.items.some((it) => !FETCH_WINDOWS_CHANNELS.has(String(it?.slug)))) {
return json(res, 404, { ok: false, error: "not found" });
}
if (!body?.requestedBy || !Array.isArray(body.items) || !body.items.length) return json(res, 400, { ok: false, error: "items and requestedBy are required" });