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: register the gate-using browser suites explicitly; leave the flaky documentRender suite out (#10312)
[._.]/ Adam Eivy000945fdd054
diff --git a/docs/GITHUB_ACTIONS.md b/docs/GITHUB_ACTIONS.mdindex e561795018..c7d8840e44 100644--- a/docs/GITHUB_ACTIONS.md+++ b/docs/GITHUB_ACTIONS.md@@ -447,13 +447,13 @@ The selected work is split across parallel jobs:- **DB tests** — provisions only the isolated `portos_test` database and runsthe serial DB suite when database-sensitive files changed.- **Cross-workspace browser suites** (same `database` job) — the- `server/**/*.browser.test.js` suites (`musicVideoProductionReview`,- `musicVideoRichAuthoring`, `musicVideoSongRevision`, …) bundle real client+ `BROWSER_SUITES` registered in `scripts/ci-test-plan.js` (`musicVideoProductionReview`,+ `musicVideoRichAuthoring`, `musicVideoSongRevision`) bundle real clientcomponents and drive them in Chrome. The `server` job installs no clientworkspace, so they skip there and would otherwise skip in every CI job (#10312:a `ProductionReviewPanel` prop change left all three harnesses blank behind a- green CI). The planner emits `browser_files`: every tracked server browser- suite on a full plan, otherwise the ones selected by a changed test or by the+ green CI). The planner emits `browser_files`: every registered suite on a full+ plan (a registry test fails when a suite using the gate is left out), otherwise the ones selected by a changed test or by thebasename lookup of a changed client source in a harness `entry` string. When itis non-empty the `database` job also runs (even with `db` false), installsthe client workspace (sharing `Cache client node_modules`) and runs those filesdiff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.jsindex 9abc56c1ec..f33ae094d9 100644--- a/scripts/ci-test-plan.js+++ b/scripts/ci-test-plan.js@@ -26,8 +26,18 @@ const MAX_TARGETED_TEST_FILES = 120;// job installs no client workspace, so there they always skip; the `database`// job (client deps + Chrome + ffmpeg, PORTOS_REQUIRE_BROWSER_SUITES=1) is where// the files selected here run for real (issue #10312).-const BROWSER_SUITE_RE = /^server\/.*\.browser\.test\.js$/;-const browserSuitesIn = (paths) => uniqueSorted(paths.filter((path) => BROWSER_SUITE_RE.test(path)));+//+// 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.+export const BROWSER_SUITES = [+ 'server/routes/musicVideoProductionReview.browser.test.js',+ 'server/routes/musicVideoRichAuthoring.browser.test.js',+ 'server/routes/musicVideoSongRevision.browser.test.js',+];+const browserSuitesIn = (paths) => uniqueSorted(paths.filter((path) => BROWSER_SUITES.includes(path)));// Python sidecar scripts (`scripts/generate_ltx2.py`, …). Vitest's import graph// cannot reach into them, but their contracts are pinned by suites that readdiff --git a/scripts/ci-test-plan.test.js b/scripts/ci-test-plan.test.jsindex cbb0350895..56435c2d21 100644--- a/scripts/ci-test-plan.test.js+++ b/scripts/ci-test-plan.test.js@@ -9,6 +9,7 @@ import { staticImportClosure } from '../server/lib/staticImportGraph.js';import {ALWAYS_RUN_TESTS,+ BROWSER_SUITES,buildCiTestPlan,collectPlanInputs,forceFullReasonFor,@@ -1389,11 +1390,6 @@ describe('Windows escalation on a full plan (#7440)', () => {});describe('cross-workspace browser suites (#10312)', () => {- const BROWSER_SUITES = [- 'server/routes/musicVideoProductionReview.browser.test.js',- 'server/routes/musicVideoRichAuthoring.browser.test.js',- 'server/routes/musicVideoSongRevision.browser.test.js',- ];it('selects every music-video browser suite when a client component they mount changes', () => {const cwd = fileURLToPath(new URL('../', import.meta.url));@@ -1406,11 +1402,19 @@ describe('cross-workspace browser suites (#10312)', () => {expect(plan.suiteReasons.browser).toMatch(/browser suite/);});- it('runs every tracked server browser suite on a full plan, and none from client or non-browser tests', () => {+ 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,'client/src/pages/Shell.browser.test.js','server/routes/browser.test.js',+ 'server/services/musicVideo/documentRender.browser.test.js',];const plan = buildCiTestPlan(['package.json'], { trackedFiles });