Repository navigation
test(shared): give the acceptance criteria input-bound test timing headroom - #3524
Merged
integry merged 1 commit intoNov 13, 2026
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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