Skip to content

Commit baaa8da

Browse files
authored
[ty] Re-enable fuzzer seeds that are no longer slow (#20937)
1 parent a21cde8 commit baaa8da

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ jobs:
666666
- determine_changes
667667
# Only runs on pull requests, since that is the only we way we can find the base version for comparison.
668668
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && github.event_name == 'pull_request' && (needs.determine_changes.outputs.ty == 'true' || needs.determine_changes.outputs.py-fuzzer == 'true') }}
669-
timeout-minutes: 20
669+
timeout-minutes: 5
670670
steps:
671671
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
672672
with:

python/py-fuzzer/fuzz.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,13 @@ def print_description(self, index: int, num_seeds: int) -> None:
152152

153153
def fuzz_code(seed: Seed, args: ResolvedCliArgs) -> FuzzResult:
154154
"""Return a `FuzzResult` instance describing the fuzzing result from this seed."""
155-
# TODO debug slowness of these seeds
156-
skip_check = seed in {32, 56, 208}
157-
158155
code = generate_random_code(seed)
159156
bug_found = False
160157
minimizer_callback: Callable[[str], bool] | None = None
161158

162159
if args.baseline_executable_path is None:
163160
only_new_bugs = False
164-
if not skip_check and contains_bug(
161+
if contains_bug(
165162
code, executable=args.executable, executable_path=args.test_executable_path
166163
):
167164
bug_found = True
@@ -172,7 +169,7 @@ def fuzz_code(seed: Seed, args: ResolvedCliArgs) -> FuzzResult:
172169
)
173170
else:
174171
only_new_bugs = True
175-
if not skip_check and contains_new_bug(
172+
if contains_new_bug(
176173
code,
177174
executable=args.executable,
178175
test_executable_path=args.test_executable_path,

0 commit comments

Comments
 (0)