diff --git a/.cursor/rules/cursor-cloud.mdc b/.cursor/rules/cursor-cloud.mdc index 98fcb1d576..8b8ea91859 100644 --- a/.cursor/rules/cursor-cloud.mdc +++ b/.cursor/rules/cursor-cloud.mdc @@ -68,5 +68,9 @@ Gradle auto-downloads any additional pinned SDK packages on demand. ## Known flaky tests (unrelated to setup) -- `apps/server/src/git/GitManager.test.ts` (cross-repo PR metadata, can time out at 12s). -- `apps/server/src/provider/Layers/ProviderRegistry.test.ts` (codex binaryPath re-probe ordering). +Previously flaky suites (`GitManager` cross-repo PR timeouts, `ProviderRegistry` codex binaryPath +re-probe, `CursorAdapter` interrupt/cancel log polling) were fixed by removing tight per-test +timeout overrides and polling on the live clock via `apps/server/src/provider/testUtils/pollUntil.ts`. +If a test needs to wait for out-of-process work (child processes, real spawns, file appends from +another process) under `it.effect`'s `TestClock`, use `pollUntil` — `Effect.yieldNow` loops and +`TestClock.adjust` provide no wall-clock time and will flake on loaded CI hosts. diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index bb6347bf1a..2cde851ffc 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -58,9 +58,11 @@ const unitTestProject = { include: ["src/**/*.test.{ts,tsx}"], // The web runtime suite exercises auth bootstrap, saved environments, // and websocket subscription lifecycles. Under the full monorepo test - // run, those async tests can exceed Vitest's default 5s budget. - hookTimeout: 15_000, - testTimeout: 15_000, + // run every package's suite competes for the same CI cores, so even + // import/transform of heavy components (e.g. MessagesTimeline) has blown + // a 15s budget. Match the root config's 60s budget. + hookTimeout: 60_000, + testTimeout: 60_000, }, } satisfies TestProjectInlineConfiguration;