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
test: move the browser-suite registry scan to an always-run guard (#10312)
[._.]/ Adam Eivy2cf28be4eb01
diff --git a/scripts/browser-suite-registry.test.js b/scripts/browser-suite-registry.test.jsnew file mode 100644index 0000000000..d29f3041d5--- /dev/null+++ b/scripts/browser-suite-registry.test.js@@ -0,0 +1,14 @@+import { execFileSync } from 'node:child_process';+import { fileURLToPath } from 'node:url';+import { describe, expect, it } from 'vitest';+import { BROWSER_SUITES } from './ci-test-plan.js';++// Scans the tracked tree, so it is registered in ALWAYS_RUN_TESTS (#10312).+describe('cross-workspace browser suite registry', () => {+ it('lists exactly the suites that guard canRun with the browser suite gate', () => {+ const root = fileURLToPath(new URL('../', import.meta.url));+ const gated = execFileSync('git', ['grep', '-l', 'browserSuiteGate', '--', 'server/**/*.browser.test.js'], { cwd: root, encoding: 'utf8' })+ .split('\n').filter(Boolean).sort();+ expect(gated).toEqual([...BROWSER_SUITES].sort());+ });+});diff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.jsindex f33ae094d9..8f36dea19f 100644--- a/scripts/ci-test-plan.js+++ b/scripts/ci-test-plan.js@@ -30,8 +30,8 @@ const MAX_TARGETED_TEST_FILES = 120;// 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 in-// ci-test-plan.test.js fails when a suite importing the gate is left out.+// thresholds) flaked its first CI run. 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',@@ -248,6 +248,9 @@ export const ALWAYS_RUN_TESTS = ['docs/deps-doc.test.js','docs/features/product-surfaces.test.js','scripts/agent-instructions-files.test.js',+ // Whole-tree scanner: a new browser suite can adopt the gate with no import+ // edge back to the registry it must join (#10312).+ 'scripts/browser-suite-registry.test.js',// The union-merged catalogs are `.md` to the planner — documentation-only —// so a rebase that doubled a row would otherwise never be re-checked.'scripts/catalog-merge-union.test.js',diff --git a/scripts/ci-test-plan.test.js b/scripts/ci-test-plan.test.jsindex 56435c2d21..1a93e959ed 100644--- a/scripts/ci-test-plan.test.js+++ b/scripts/ci-test-plan.test.js@@ -1402,13 +1402,6 @@ describe('cross-workspace browser suites (#10312)', () => {expect(plan.suiteReasons.browser).toMatch(/browser suite/);});- it('registers exactly the suites that guard canRun with the browser suite gate', () => {- const root = fileURLToPath(new URL('../', import.meta.url));- const gated = execFileSync('git', ['grep', '-l', 'browserSuiteGate', '--', 'server/**/*.browser.test.js'], { cwd: root, encoding: 'utf8' })- .split('\n').filter(Boolean).sort();- expect(gated).toEqual([...BROWSER_SUITES].sort());- });-it('runs every registered browser suite on a full plan, and no unregistered browser test', () => {const trackedFiles = [...BROWSER_SUITES,