Skip to content

test: register fuzz targets with their replay corpora - #6331

Open
rwgk wants to merge 2 commits into
pybind:masterfrom
rwgk:rwgk/fuzz-replay-registration
Open

rwgk wants to merge 2 commits into
pybind:masterfrom
rwgk:rwgk/fuzz-replay-registration

Conversation

@rwgk

@rwgk rwgk commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

— codex GPT-6.2-Sol on behalf of Ralf —

Description

PRs #6317, #6318, #6319, and #6320 each propose another harness executable. The current fuzz_replay target only runs the original harness. This extracts the common CMake wiring so that each follow-up can register its executable and corpus in one call.

Each registration adds a build dependency and a replay command to the existing fuzz_replay target. That target checks the original decoder and runs each registered harness on its own checked-in inputs. This PR registers only pybind_fuzzer with its existing corpus and documents how to add another pair.

Local validation passed with Python 3.15.2, both with GIL and free-threaded, and with Clang/libFuzzer/AddressSanitizer replay of the checked-in inputs. A temporary two-target CMake fixture confirmed that both targets replay in order and that a failure in the second fails the aggregate target. All lint hooks passed.

Pair each harness with its corpus in one CMake registration. Build and replay every registered pair from the existing fuzz_replay target, after the decoder check.

Verified fixed-input replay on Python 3.15 with GIL and free-threaded, native libFuzzer/AddressSanitizer linking and replay, and a disposable two-target check that propagates a replay failure. Repository lint passed.

Assisted-by: Codex:GPT-6.2-Sol
@rwgk

rwgk commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @arthurscchan, I’ve pulled the shared CMake and corpus replay wiring from your four harness PRs (#6317, #6318, #6319, and #6320) into this standalone PR. Could you please take a look? Once it lands, each harness can register its executable and corpus for CI replay with a single CMake call.

In parallel, could you address the Ubuntu Python 3.15 build failures? All four jobs hit the same GCC warnings under -Werror. Please give the fixture types internal linkage, for example by putting them in an anonymous namespace, and leave the unused LLVMFuzzerInitialize parameters unnamed. Example failing job log

This branch has not been deployed

No deployments
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