Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Evaluation: the separation suite's video check holds on a fresh checkout, with no clip of your own

Claude03e49f2dd866
diff --git a/tests/eval-harness.test.ts b/tests/eval-harness.test.ts
index 65d7a27c..a7914c85 100644
--- a/tests/eval-harness.test.ts
+++ b/tests/eval-harness.test.ts
@@ -387,7 +387,19 @@ describe("the runner on the demo provider", () => {
["shorts/session", "fuobe-shorts", null],
]);
// Clean up dialogue's hosted cleaners: planned and priced as dry runs, each on its own op.
- const sep = await dry(["--suite", "separation", "--engine", "cloud", "--variants", "clean-veed,clean-deepfilternet,demucs", "--cases", "separation/centre,separation/video", "--allow-fixtures"]);
+ // The video case reads your own clip (scripts/eval/local, git-ignored); where there is none, it borrows the fixture
+ // clip (a video with sound) for this check, so the case is a video here too, not the audio fixture it falls back to.
+ const clip = path.join(process.cwd(), "scripts/eval/local/separation/video/clip.mp4");
+ const lent = !fs.existsSync(clip);
+ // The first folder this check made (none if the folder was already there): removed afterwards with the clip.
+ const made = lent ? fs.mkdirSync(path.dirname(clip), { recursive: true }) : undefined;
+ if (lent) fs.copyFileSync(path.join(process.cwd(), "scripts/eval/fixtures/walk-6s.mp4"), clip);
+ let sep: Plan;
+ try {
+ sep = await dry(["--suite", "separation", "--engine", "cloud", "--variants", "clean-veed,clean-deepfilternet,demucs", "--cases", "separation/centre,separation/video", "--allow-fixtures"]);
+ } finally {
+ if (lent) fs.rmSync(made ?? clip, { recursive: true, force: true });
+ }
expect(sep.jobs.map((j) => [j.case, j.variant, j.model, j.skip ? "refused" : typeof j.costUsd])).toEqual([
["separation/centre", "clean-veed", "veed-clean-audio", "number"],
["separation/centre", "clean-deepfilternet", "deepfilternet3", "number"],