Skip to content

test(shared): give the acceptance criteria input-bound test timing headroom - #3524

Merged
integry merged 1 commit into
3498-epic-trust-the-arvfrom
fix/acceptance-criteria-timing-bound
Nov 13, 2026
Merged

integry merged 1 commit into
3498-epic-trust-the-arvfrom
fix/acceptance-criteria-timing-bound

Conversation

@integry

@integry integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Problem

packages/shared/test/acceptanceCriteria.test.ts ("bounds the input that slow Markdown constructs can make expensive") asserts that the bounded parse finishes within 2 seconds of wall clock. On a busy machine the bounded work itself takes 2.0 to 2.3 seconds, so the test fails intermittently (2 of 3 local runs under load).

Change

Raise the limit to 20 seconds and say why in a comment. Without the input bounds the same inputs take minutes, so the test still catches a regression. No production code changes.

Verification

The test passes repeatedly on the machine where it was failing.

🤖 Generated with Claude Code

…adroom

The test asserted the bounded parse finished within 2 seconds of wall
clock. The bounded work takes about 2 seconds on a busy machine, so the
assertion failed intermittently. Unbounded, the same inputs take
minutes, so a 20 second limit still catches a regression.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@integry
integry merged commit 10177a6 into 3498-epic-trust-the-arv Nov 13, 2026
41 checks 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.

2 participants