Skip to content

fix(fuzz): unbreak ClusterFuzzLite build after the 3.11 drop#75

Merged
cohenrobinson merged 2 commits into
mainfrom
fix/fuzz-build-python-floor
Jul 17, 2026
Merged

fix(fuzz): unbreak ClusterFuzzLite build after the 3.11 drop#75
cohenrobinson merged 2 commits into
mainfrom
fix/fuzz-build-python-floor

Conversation

@cohenrobinson

Copy link
Copy Markdown
Contributor

Problem

#70 (drop Python 3.11) set requires-python = ">=3.12", which broke the fuzz job — visible on #73:

ERROR: Package 'aemo-mdff-reader' requires a different Python: 3.11.13 not in '>=3.12'
ERROR: Building fuzzers failed.

OSS-Fuzz's base-builder-python still ships Python 3.11.13 — I checked :latest, not just our pinned digest — so this isn't a stale-pin problem and dependabot bumping the digest won't fix it. Until upstream ships 3.12, the metadata check will abort every fuzz build.

Fix

Pass --ignore-requires-python when installing the package in .clusterfuzzlite/build.sh. The library code is still 3.11-runnable — #70 changed metadata and CI only, no syntax — so the harnesses keep exercising the real parser. The alternative (disable fuzzing) would drop coverage on a parser that by definition consumes untrusted files, which seems the worse trade.

Comment in build.sh notes to drop the flag once base-builder-python ships 3.12.

Note

fuzz is advisory (not a required check on main), so this wasn't blocking merges — but it was silently failing on every PR.

… image

Dropping Python 3.11 (#70) set requires-python >=3.12, which broke the
ClusterFuzzLite build: OSS-Fuzz's base-builder-python still ships 3.11
(3.11.13 even on :latest), so pip aborts with

  ERROR: Package 'aemo-mdff-reader' requires a different Python:
  3.11.13 not in '>=3.12'

Bumping the pinned digest can't help until upstream ships 3.12. The
library code is still 3.11-runnable — #70 changed metadata/CI only, no
syntax — so ignoring the metadata gate keeps the harnesses exercising
the real parser rather than losing fuzz coverage on an untrusted-input
file format.
@cohenrobinson
cohenrobinson merged commit 28605fe into main Jul 17, 2026
10 checks passed
@cohenrobinson
cohenrobinson deleted the fix/fuzz-build-python-floor branch July 17, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant