diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 312e897c..8bede37e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: run: npx eslint src/ --fix --no-cache || true - name: Validate workspace truth gate - run: pnpm check + run: pnpm check:ci test: strategy: @@ -97,7 +97,7 @@ jobs: run: pnpm install --no-frozen-lockfile - name: Test - run: pnpm test:workspace + run: pnpm test:workspace:ci task-change-ledger-windows: name: Task change ledger Windows smoke diff --git a/package.json b/package.json index acb8da72..c8ec837c 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,11 @@ "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css}\"", "build:workspace": "pnpm build && pnpm --filter agent-teams-controller build && pnpm --filter agent-teams-mcp build", "test:workspace": "pnpm test && pnpm --filter agent-teams-controller test && pnpm --filter agent-teams-mcp test", + "test:workspace:ci": "pnpm test:ci && pnpm --filter agent-teams-controller test && pnpm --filter agent-teams-mcp test", "check:workspace": "pnpm typecheck:workspace && pnpm test:workspace && pnpm build:workspace && pnpm --filter agent-teams-mcp test:e2e", + "check:workspace:ci": "pnpm typecheck:workspace && pnpm test:workspace:ci && pnpm build:workspace && pnpm --filter agent-teams-mcp test:e2e", "check": "pnpm check:workspace && pnpm lint && pnpm lint:mcp", + "check:ci": "pnpm check:workspace:ci && pnpm lint && pnpm lint:mcp", "fix": "pnpm lint:fix && pnpm format", "quality": "pnpm check && pnpm format:check && npx knip", "test:chunks": "tsx test/test-chunk-building.ts", @@ -51,6 +54,7 @@ "test:noise": "tsx test/test-noise-filtering.ts", "test:task-filtering": "tsx test/test-task-filtering.ts", "test": "vitest run", + "test:ci": "vitest run --maxWorkers 1 --minWorkers 1", "test:task-change-ledger": "vitest run test/main/services/team/TaskChangeLedgerReader.test.ts test/main/services/team/taskChangeLedgerFixtures.integration.test.ts test/main/services/team/ReviewApplierService.test.ts test/main/services/team/FileContentResolver.test.ts test/main/services/team/ChangeExtractorService.test.ts test/renderer/store/changeReviewSlice.test.ts test/renderer/utils/reviewKey.test.ts test/main/services/team/TeamLogSourceTracker.test.ts test/main/services/team/stallMonitor/TeamTaskLogFreshnessReader.test.ts", "test:watch": "vitest", "test:coverage": "vitest run --coverage", diff --git a/test/main/services/team/TeamAgentLaunchMatrix.safe-e2e.test.ts b/test/main/services/team/TeamAgentLaunchMatrix.safe-e2e.test.ts index dad3e470..91fd1a33 100644 --- a/test/main/services/team/TeamAgentLaunchMatrix.safe-e2e.test.ts +++ b/test/main/services/team/TeamAgentLaunchMatrix.safe-e2e.test.ts @@ -37,7 +37,7 @@ import { import type { TeamProvisioningProgress } from '../../../../src/shared/types'; -const LAUNCH_MATRIX_SAFE_E2E_TIMEOUT_MS = process.platform === 'win32' ? 60_000 : 15_000; +const LAUNCH_MATRIX_SAFE_E2E_TIMEOUT_MS = 60_000; describe('Team agent launch matrix safe e2e', () => { let tempDir: string; diff --git a/test/main/services/team/TeamRuntimeMemory.safe-e2e.test.ts b/test/main/services/team/TeamRuntimeMemory.safe-e2e.test.ts index 90bde85e..de39bc8d 100644 --- a/test/main/services/team/TeamRuntimeMemory.safe-e2e.test.ts +++ b/test/main/services/team/TeamRuntimeMemory.safe-e2e.test.ts @@ -31,7 +31,10 @@ describe('Team runtime memory safe e2e', () => { await fs.rm(tempDir, { recursive: true, force: true }); }); - const nativeProcessTableIt = process.platform === 'win32' ? it.skip : it; + const nativeProcessTableIt = + process.platform === 'win32' || process.env.TEAM_RUNTIME_MEMORY_NATIVE_SMOKE !== '1' + ? it.skip + : it; nativeProcessTableIt('reports RSS for a bootstrap-confirmed Anthropic teammate discovered from the real process table', async () => { const teamName = `anthropic-rss-${process.pid}`;