Skip to content

Conversation

ntBre
Copy link
Contributor

@ntBre ntBre commented Apr 4, 2025

Summary

Updates fuzz.py to run with --preview, which should allow it to catch semantic syntax errors.

Test Plan

@AlexWaygood and I temporarily made any named expression a semantic syntax error and checked that this led to fuzzing errors. We also tested that reverting the --preview addition did not show any errors.

We also ran the fuzzer on 500 seeds on main but didn't find any issues, (un)fortunately.

Summary
--

Updates `fuzz.py` to run with `--preview`, which should allow it to catch
semantic syntax errors.

Test Plan
--

@AlexWaygood and I temporarily made any named expression a semantic syntax error
and checked that this led to fuzzing errors. We also tested that reverting the
`--preview` addition did not show any errors.

We also ran the fuzzer on 500 seeds on `main` but didn't find any
issues, (un)fortunately.
@ntBre ntBre added the fuzzer Surfaced via fuzzing. label Apr 4, 2025
@ntBre ntBre requested a review from AlexWaygood as a code owner April 4, 2025 17:36
Copy link
Contributor

github-actions bot commented Apr 4, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@ntBre ntBre merged commit b3243b5 into main Apr 4, 2025
22 checks passed
@ntBre ntBre deleted the brent/fuzz-preview branch April 4, 2025 19:14
dcreager added a commit that referenced this pull request Apr 4, 2025
* main:
  [red-knot] Empty tuple is always-falsy (#17213)
  Run fuzzer with `--preview` (#17210)
  Bump 0.11.4 (#17212)
  [syntax-errors] Allow `yield` in base classes and annotations (#17206)
  Don't skip visiting non-tuple slice in `typing.Annotated` subscripts (#17201)
  [red-knot] mypy_primer: do not specify Python version (#17200)
  [red-knot] Add `Type.definition` method (#17153)
  Implement `Invalid rule provided` as rule RUF102 with `--fix` (#17138)
  [red-knot] Add basic on-hover to playground and LSP (#17057)
  [red-knot] don't remove negations when simplifying constrained typevars (#17189)
  [minor] Fix extra semicolon for clippy (#17188)
  [syntax-errors] Invalid syntax in annotations (#17101)
  [syntax-errors] Duplicate attributes in match class pattern (#17186)
  [syntax-errors] Fix multiple assignment for class keyword argument (#17184)
  use astral-sh/cargo-dist instead (#17187)
  Enable overindented docs lint (#17182)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzzer Surfaced via fuzzing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants