Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
ci: run the documentRender browser suite in CI behind the browser-suite gate (#10325)
[._.]/ Adam Eivy4c23eb7d1f9e
diff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.jsindex 07ee3ce9de..c057841a2c 100644--- a/scripts/ci-test-plan.js+++ b/scripts/ci-test-plan.js@@ -30,14 +30,14 @@ const MAX_TARGETED_TEST_FILES = 125;// the files selected here run for real (issue #10312).//// An explicit list, not `*.browser.test.js`: only suites that guard `canRun`-// with server/lib/browserSuiteGate.js can be told to fail instead of skip, and-// `services/musicVideo/documentRender.browser.test.js` (server-only, pixel-// thresholds) flaked its first CI run. The registry test-// (browser-suite-registry.test.js) fails when a suite importing the gate is left out.+// with server/lib/browserSuiteGate.js can be told to fail instead of skip. The+// registry test (browser-suite-registry.test.js) fails when a suite importing+// the gate is left out.export const BROWSER_SUITES = ['server/routes/musicVideoProductionReview.browser.test.js','server/routes/musicVideoRichAuthoring.browser.test.js','server/routes/musicVideoSongRevision.browser.test.js',+ 'server/services/musicVideo/documentRender.browser.test.js',];const browserSuitesIn = (paths) => uniqueSorted(paths.filter((path) => BROWSER_SUITES.includes(path)));diff --git a/server/services/musicVideo/documentRender.browser.test.js b/server/services/musicVideo/documentRender.browser.test.jsindex 1040902cd5..b6a15b1755 100644--- a/server/services/musicVideo/documentRender.browser.test.js+++ b/server/services/musicVideo/documentRender.browser.test.js@@ -14,6 +14,7 @@ import { execFileSync, spawn } from 'node:child_process';import { chromium } from 'playwright-core';import sharp from 'sharp';import { cleanupTempDataRoots, lazyTempDataRoot, makePathsProxy, ownTestBodies } from '../../lib/mockPathsDataRoot.js';+import { browserSuiteCanRun } from '../../lib/browserSuiteGate.js';const { it, drain } = ownTestBodies(vitestIt);const ownedChildren = vi.hoisted(() => []);@@ -72,8 +73,7 @@ const chrome = [process.env.CHROME_PATH, chromium.executablePath(),].find((path) => path && existsSync(path));const ffmpeg = await findFfmpeg();// Imported discovery helpers can initialize mocked paths even on a skip.-const canRun = Boolean(chrome && ffmpeg);-if (!canRun) cleanupTempDataRoots();+const canRun = browserSuiteCanRun('documentRender browser suite', { Chrome: chrome, ffmpeg }, { onUnavailable: cleanupTempDataRoots });describe.skipIf(!canRun)('layered template with real Chrome and ffmpeg', () => {let proc;