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
fix: honour the browser-owner unit exclusion on every platform (#12292)
[._.]/ Adam Eivy50d74b81a557
diff --git a/docs/GITHUB_ACTIONS.md b/docs/GITHUB_ACTIONS.mdindex bed933f053..8e406807d9 100644--- a/docs/GITHUB_ACTIONS.md+++ b/docs/GITHUB_ACTIONS.md@@ -607,7 +607,8 @@ The selected work is split across parallel jobs:the serial DB suite when database-sensitive files changed.- **Browser suites** (their own `browser` job, beside DB tests) — the exact`BROWSER_SUITES` registry in `scripts/lib/browserSuites.js` owns these tests.- Linux server shards exclude that registry with `PORTOS_CI_BROWSER_OWNER=unit`;+ Server unit runs exclude that registry whenever `PORTOS_CI_BROWSER_OWNER=unit`+ is exported (Linux server shards, and `npm run pregate` on every platform);other browser files, including `overlayTextService`, keep their existing owner.The planner selects affected registered files and the browser job requiresChrome, FFmpeg and bundler prerequisites instead of silently skipping them.diff --git a/scripts/lib/workspaceTests.js b/scripts/lib/workspaceTests.jsindex ed9a3b25f6..231f676636 100644--- a/scripts/lib/workspaceTests.js+++ b/scripts/lib/workspaceTests.js@@ -49,11 +49,13 @@ export const CLIENT_TEST_INCLUDE = Object.freeze(['src/**/*.{test,spec}.{js,jsx}export const CLIENT_TEST_EXCLUDE = Object.freeze(['**/node_modules/**', '**/.git/**']);/**- * Linux CI gives the registered browser contracts one browser-owner job; only- * the explicitly opted-in unit profile excludes them from the server runner.+ * Linux CI gives the registered browser contracts one browser-owner job. An+ * explicitly exported `PORTOS_CI_BROWSER_OWNER=unit` (CI's Linux server shards,+ * and pregate on every platform) excludes them from the server unit runner, so+ * they run once in the browser stage. Local and Windows defaults keep them.*/-export function browserOwnerExcludes({ platform = process.platform, env = process.env } = {}) {- return platform === 'linux' && env.PORTOS_CI_BROWSER_OWNER === 'unit'+export function browserOwnerExcludes({ env = process.env } = {}) {+ return env.PORTOS_CI_BROWSER_OWNER === 'unit'? BROWSER_SUITES.map(path => path.slice('server/'.length)) : [];}diff --git a/scripts/lib/workspaceTests.test.js b/scripts/lib/workspaceTests.test.jsindex 7e1e0aa1b9..be17a4984e 100644--- a/scripts/lib/workspaceTests.test.js+++ b/scripts/lib/workspaceTests.test.js@@ -49,11 +49,13 @@ describe('workspace test enumeration', () => {expect(listWorkspaceTests('server', { repoRoot: REPO_ROOT, env: {} })).toEqual(vitestListedFiles(REPO_ROOT, 'server'));}, 120_000);- it('drops the registered browser suites only for the Linux unit owner', () => {+ it('drops the registered browser suites for an explicit unit owner on every platform', () => {const all = listWorkspaceTests('server', { repoRoot: REPO_ROOT, platform: 'linux', env: {} });- const owned = listWorkspaceTests('server', { repoRoot: REPO_ROOT, platform: 'linux', env: { PORTOS_CI_BROWSER_OWNER: 'unit' } });expect(all).toContain('lib/filmLook.browser.test.js');- expect(owned).not.toContain('lib/filmLook.browser.test.js');- expect(listWorkspaceTests('server', { repoRoot: REPO_ROOT, platform: 'win32', env: { PORTOS_CI_BROWSER_OWNER: 'unit' } })).toEqual(all);+ for (const platform of ['linux', 'darwin', 'win32']) {+ const owned = listWorkspaceTests('server', { repoRoot: REPO_ROOT, platform, env: { PORTOS_CI_BROWSER_OWNER: 'unit' } });+ expect(owned).not.toContain('lib/filmLook.browser.test.js');+ }+ expect(listWorkspaceTests('server', { repoRoot: REPO_ROOT, platform: 'darwin', env: {} })).toEqual(all);});});diff --git a/server/vitest.config.test.js b/server/vitest.config.test.jsindex bd435b7f4c..5f5ebb1637 100644--- a/server/vitest.config.test.js+++ b/server/vitest.config.test.js@@ -67,7 +67,8 @@ describe('browser suite CI ownership', () => {['linux', undefined, false],['linux', 'browser', false],['linux', 'unit', true],- ['win32', 'unit', false],+ ['win32', 'unit', true],+ ['darwin', 'unit', true],])('collects the intended contracts on %s with owner %s', async (platform, owner, excluded) => {restorePlatform = pinPlatform(platform);vi.stubEnv('PORTOS_CI_BROWSER_OWNER', owner);