Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuzz-parser: catch exceptions from pysource-minimize #14586

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

AlexWaygood
Copy link
Member

Summary

#14566 added the new --bin flag to the fuzz-parser script. Running with --bin red_knot seems to be triggering quite a few crashes in the script locally due to pysource-minimize not being able to minimize the code that triggers a red-knot bug. I'm not sure if that's a bug in red-knot or pysource-minimize (or both), but this PR adds some exception handling in case CouldNotMinimize is raised by pysource-minimize.

Test Plan

python scripts/fuzz-parser/fuzz.py --bin red_knot 0-500. The script aborts with a CouldNotMinimize exception on some seeds on main, but runs to completion on this branch.

@AlexWaygood AlexWaygood added the testing Related to testing Ruff itself label Nov 25, 2024
@AlexWaygood AlexWaygood enabled auto-merge (squash) November 25, 2024 15:09
@AlexWaygood AlexWaygood merged commit fab1b0d into main Nov 25, 2024
19 checks passed
@AlexWaygood AlexWaygood deleted the fuzzer-catch-exceptions branch November 25, 2024 15:14
@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement testing Related to testing Ruff itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants