From 1c8f356e079903f7e31db5a021b4b4363bdd36d7 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 13 Dec 2024 10:07:27 +0100 Subject: [PATCH] Re-enable the fuzzer job on PRs (#14953) ## Summary This reverts https://github.com/astral-sh/ruff/pull/14478 I now broke main twice because I wasn't aware that the API was used by the fuzzer. ## Test Plan --- .github/workflows/ci.yaml | 2 +- fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9d8c157715..70c73dfe63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -312,7 +312,7 @@ jobs: name: "cargo fuzz build" runs-on: ubuntu-latest needs: determine_changes - if: ${{ github.ref == 'refs/heads/main' || needs.determine_changes.outputs.fuzz == 'true' }} + if: ${{ github.ref == 'refs/heads/main' || needs.determine_changes.outputs.fuzz == 'true' || needs.determine_changes.outputs.code == 'true' }} timeout-minutes: 10 steps: - uses: actions/checkout@v4 diff --git a/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs b/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs index 96e5c1d7c7..7be30ebecc 100644 --- a/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs +++ b/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs @@ -110,7 +110,7 @@ fn setup_db() -> TestDb { Program::from_settings( &db, &ProgramSettings { - target_version: PythonVersion::default(), + python_version: PythonVersion::default(), search_paths: SearchPathSettings::new(src_root), }, )