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: classify log socket fanout as full CI (#10030)
[._.]/ Adam Eivy82628427a021
diff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.jsindex c2f2e3f7ce..e10d7888e9 100644--- a/scripts/ci-test-plan.js+++ b/scripts/ci-test-plan.js@@ -86,6 +86,10 @@ const FULL_TRIGGER_RULES = [// Own the cost honestly: a full plan, sharded in CI. It also owns cross-platform// worktree lifecycle, so Windows escalates (matches WINDOWS_RISK_RULES).{ re: /^server\/services\/worktreeManager\.js$/, reason: 'worktree manager source changed (broad import fanout)', windowsEscalates: true },+ // Measured log socket hotspot (#10030): changing this source fans out through+ // nearly the full server suite, so make the cost explicit in CI. The socket+ // starts and supervises a real PM2 child process; keep Windows at full depth.+ { re: /^server\/sockets\/logs\.js$/, reason: 'log socket source changed (broad import fanout)', windowsEscalates: true },// The scripts that decide what CI runs, run it, and gate the release on it.// A bug in any of them can make a scoped plan silently test nothing, so they// prove themselves against the complete suite rather than their own scope —diff --git a/scripts/ci-test-plan.test.js b/scripts/ci-test-plan.test.jsindex 2afc69f090..fcd54da6d4 100644--- a/scripts/ci-test-plan.test.js+++ b/scripts/ci-test-plan.test.js@@ -1033,6 +1033,32 @@ describe('CI test impact planner', () => {expect(buildCiTestPlan(['server/services/worktreeManager.test.js'], { trackedFiles: TRACKED }).full).toBe(false);});+ it('routes log socket source to full sharded CI while nearby socket sources stay scoped (#10030)', () => {+ const trackedFiles = [+ ...TRACKED,+ 'server/sockets/logs.js',+ 'server/sockets/logs.test.js',+ 'server/sockets/apps.js',+ 'server/sockets/apps.test.js',+ ];+ const logs = buildCiTestPlan(['server/sockets/logs.js'], { trackedFiles });+ expect(logs.full).toBe(true);+ expect(logs.reason).toMatch(/log socket source changed \(broad import fanout\)/);+ expect(logs.server.mode).toBe('full');+ expect(logs.client.mode).toBe('full');+ expect(logs.windowsMode).toBe('full');+ expect(logs.shards).toEqual({+ server: shardIndexes('full', FULL_SUITE_SHARDS.server),+ client: shardIndexes('full', FULL_SUITE_SHARDS.client),+ windows: shardIndexes('full', FULL_SUITE_SHARDS.windows),+ });++ const nearbySocket = buildCiTestPlan(['server/sockets/apps.js'], { trackedFiles });+ expect(nearbySocket.full).toBe(false);+ expect(nearbySocket.server.mode).toBe('related');+ expect(nearbySocket.shards).toEqual({ server: [1], client: [1], windows: [1] });+ });+it('honors an explicit full-CI request', () => {const plan = buildCiTestPlan(['docs/README.md'], {trackedFiles: TRACKED,