mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-26 18:06:43 +00:00
[ty] Re-enable fuzzer seeds that are no longer slow (#20937)
This commit is contained in:
parent
a21cde8a5a
commit
baaa8dad3a
2 changed files with 3 additions and 6 deletions
|
|
@ -152,16 +152,13 @@ class FuzzResult:
|
|||
|
||||
def fuzz_code(seed: Seed, args: ResolvedCliArgs) -> FuzzResult:
|
||||
"""Return a `FuzzResult` instance describing the fuzzing result from this seed."""
|
||||
# TODO debug slowness of these seeds
|
||||
skip_check = seed in {32, 56, 208}
|
||||
|
||||
code = generate_random_code(seed)
|
||||
bug_found = False
|
||||
minimizer_callback: Callable[[str], bool] | None = None
|
||||
|
||||
if args.baseline_executable_path is None:
|
||||
only_new_bugs = False
|
||||
if not skip_check and contains_bug(
|
||||
if contains_bug(
|
||||
code, executable=args.executable, executable_path=args.test_executable_path
|
||||
):
|
||||
bug_found = True
|
||||
|
|
@ -172,7 +169,7 @@ def fuzz_code(seed: Seed, args: ResolvedCliArgs) -> FuzzResult:
|
|||
)
|
||||
else:
|
||||
only_new_bugs = True
|
||||
if not skip_check and contains_new_bug(
|
||||
if contains_new_bug(
|
||||
code,
|
||||
executable=args.executable,
|
||||
test_executable_path=args.test_executable_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue