Raise web unit test budget to 60s and refresh flaky-test notes
The MessagesTimeline attachment-anchor test hit the 15s web budget in CI while every package's suite competed for the same cores; match the root config's 60s budget. Update the cloud rules to describe the fixed flakes and point future polling waits at pollUntil. Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
13ed3db77c
commit
c660f28750
2 files changed
+11
-5
No files matched your search
@@ -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.
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user