Skip to content

fix: fuzz test timeout on pathological inputs#2981

Merged
markphelps merged 1 commit into
mainfrom
md/fix-fuzz-timeout
May 1, 2026
Merged

fix: fuzz test timeout on pathological inputs#2981
markphelps merged 1 commit into
mainfrom
md/fix-fuzz-timeout

Conversation

@michaeldwan
Copy link
Copy Markdown
Contributor

FuzzParseTypeAnnotation occasionally times out in CI -- the fuzzer finds a deeply nested or long type string that makes tree-sitter chew for longer than the per-worker grace period, and the whole run fails with "context deadline exceeded."

Cap inputs at 1 KB for type annotations and 64 KB for full source. Pathological inputs get skipped instead of hanging the run. Real Python source and type annotations are well within these bounds.

FuzzParseTypeAnnotation occasionally times out in CI because the
fuzzer finds pathologically long/nested type strings that make
tree-sitter exceed the per-worker grace period. Cap inputs at
1 KB (type annotations) and 64 KB (full source) so slow inputs
are skipped instead of causing the fuzz run to fail.
@michaeldwan michaeldwan requested a review from a team as a code owner May 1, 2026 16:58
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 1, 2026

LGTM

github run

@michaeldwan michaeldwan requested a review from markphelps May 1, 2026 17:07
@markphelps markphelps added this pull request to the merge queue May 1, 2026
Merged via the queue into main with commit d9c2b14 May 1, 2026
43 checks passed
@markphelps markphelps deleted the md/fix-fuzz-timeout branch May 1, 2026 18:56
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