FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into fix-240
Brandon Thomasde0299bd1bfb
diff --cc apps/filmcraft-web/tests/smoke.mjsindex f0ede5efe,0ff290e37..71951edf5--- a/apps/filmcraft-web/tests/smoke.mjs+++ b/apps/filmcraft-web/tests/smoke.mjs@@@ -13,7 -13,7 +13,8 @@@ import { spawn } from "node:child_proceimport { mkdirSync, writeFileSync, readdirSync, statSync, mkdtempSync } from "node:fs";import { join } from "node:path";import { tmpdir } from "node:os";+ import { checkImportBins } from "./import-bins.mjs";+import { checkImportCollision } from "./import-collision.mjs";const arg = (k, d) => {const i = process.argv.indexOf(`--${k}`);@@@ -163,17 -163,8 +164,19 @@@ tryawait sleep(500);await send("Emulation.setDeviceMetricsOverride", { width: 1600, height: 1000, deviceScaleFactor: 1, mobile: false });report.steps.modes = { screenshot: await shot("05-modes") };+ report.steps.importBins = await checkImportBins({evaluate: js, media});+ if (!report.steps.importBins.ok) throw new Error("import bin regression: " + JSON.stringify(report.steps.importBins.gates));+ report.steps.importCollision = await checkImportCollision({+ evaluate: js,+ url,+ navigate: async (nextUrl) => {+ await send("Page.navigate", { url: nextUrl });+ await until("!!(window.filmcraftLoad && (window.filmcraftLoad.readyMs || window.filmcraftLoad.error))", 120000);+ const load = await js("window.filmcraftLoad");+ if (load.error) throw new Error(load.error);+ },+ });+ if (!report.steps.importCollision.ok) throw new Error("import collision regression: " + JSON.stringify(report.steps.importCollision.gates));// still alive? (a panicked app never answers)await Promise.race([js("filmcraft.inspect().then(() => true)"), sleep(5000).then(() => { throw new Error("app stopped answering"); })]);const fatal = logs.filter((l) => /panicked at|RuntimeError|EXCEPTION/.test(l));