Skip to content

test(personal-kits): give detector cost scans a timeout above the 5 s default - #131

Merged
mrgoonie merged 1 commit into
mainfrom
claude/modest-wozniak-bwp2yt
Oct 25, 2026
Merged

mrgoonie merged 1 commit into
mainfrom
claude/modest-wozniak-bwp2yt

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

Closes #129 (found while verifying #128).

Change

apps/web/tests/personal-kits/proposal-detector-cost.test.ts: the linear-time cases and the end-of-run case now have a 120 s timeout. The 1 MiB scans take seconds (the "chained assignments" case took about 3.5 s alone), and during a parallel full-suite run they went over vitest's 5 s default. That contradicts the file header's "No wall-clock bound". The ratio assertion (MAX_RATIO, FLOOR_MS, RUNS) is unchanged.

Verification

  • Before: a full npx vitest run on a 4-core machine failed with scans chained assignments in linear time: Test timed out in 5000ms.
  • After: two consecutive full runs passed, 127 files, 2462 passed, 3 skipped.
  • pnpm typecheck: clean.

Generated by Claude Code

… default

The linear-time cases scan 1 MiB several times and take seconds; under a
parallel full-suite run they exceeded vitest's 5 s default, contradicting
the file's promise of no wall-clock bound. The ratio check is unchanged.

Closes #129

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RCDbVS52poV8kxgnXrrBY
@mrgoonie
mrgoonie merged commit f6e23ac into main Oct 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: proposal-detector-cost hits vitest's 5 s default timeout under full-suite load

2 participants