test(fuzz): record reproducible run seeds (#6547)

This commit is contained in:
Zhengchao An
2026-08-25 04:32:41 +08:00
committed by GitHub
parent 40e6decc93
commit 82df9ec4fa
5 changed files with 145 additions and 6 deletions
+8
View File
@@ -68,10 +68,18 @@ FUZZ_TARGET=path_containment ./scripts/fuzz/run.sh
# Nightly-style: 300s per target
MAX_TOTAL_TIME=300 ./scripts/fuzz/run.sh
# Replay a recorded libFuzzer seed
FUZZ_TARGET=path_containment FUZZ_SEED=123456789 ./scripts/fuzz/run.sh
# Skip build (use pre-built harness)
SKIP_BUILD=1 FUZZ_TARGET=local_metadata ./scripts/fuzz/run.sh
```
Each run writes `fuzz/artifacts/<target>/run-manifest.txt` with the target,
libFuzzer seed, time budget, Git revision and dirty state, and runner mode. CI
uploads that manifest with the corpus and any crash input so the exact run can
be replayed.
## CI Workflow
The GitHub Actions workflow (`.github/workflows/fuzz.yml`) uses a **build/run separation** pattern: