commit a837bf8560a1050e680c9e5930b325d309f735cf
parent 85d56ad907bdaed9c18234c84115b63184dfd593
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 9 Oct 2026 11:15:15 -0400
common: jobKinds test — fetch-windows is drainable but not an ingest kind (it writes only the clip cache the index never reads)
Main's fetch-windows met r18's "every drainable kind is ingest" invariant at
the merge; the test now names it beside fetch-window.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/common/jobs/jobKinds.test.ts b/common/jobs/jobKinds.test.ts
@@ -274,10 +274,12 @@ test("release 18: the kinds no longer created keep their labels (seven of them n
assert.equal(jobKindLabel("build-deploy-homepage"), "Build & deploy homepage");
});
-test("release 18: every drainable kind but the lane runners is an ingest kind", () => {
+test("release 18: every drainable kind but the lane runners and the clip-window batch is an ingest kind", () => {
const runners = new Set(["auto-transcribe", "auto-download", "auto-digest", "auto-backfill", "auto-publish"]);
+ // fetch-windows writes only `data/<id>/clips/`, a cache the index never reads.
+ const notIngest = new Set(["fetch-windows"]);
for (const kind of jobKindIds()) {
- if (!isDrainableKind(kind) || runners.has(kind)) continue;
+ if (!isDrainableKind(kind) || runners.has(kind) || notIngest.has(kind)) continue;
assert.equal(isIngestKind(kind), true, `${kind} is drainable and per channel: an ingest kind`);
}
for (const kind of runners) assert.equal(isIngestKind(kind), false, kind);
@@ -286,7 +288,7 @@ test("release 18: every drainable kind but the lane runners is an ingest kind",
assert.equal(isIngestKind(kind), true, kind);
}
// Nothing that publishes, moves or only reads.
- for (const kind of ["publish-build-site", "build-export", "relocate-channel-media", "scan-media", "fetch-window"]) {
+ for (const kind of ["publish-build-site", "build-export", "relocate-channel-media", "scan-media", "fetch-window", "fetch-windows"]) {
assert.equal(isIngestKind(kind), false, kind);
}
assert.equal(isIngestKind("no-such-kind"), false);