You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fuzz: keep the corpus between nightly runs and add an operation-sequence target #387
.github/workflows/fuzz.yml does not cache or commit the corpus. Each night every target starts again from the seeds in fuzz/corpus/. It then spends its 55 minutes finding the same coverage again, so the search never goes deeper over time.
All six targets parse one input: a WAL entry, header, page, query or eval. No target fuzzes a sequence of storage operations.
The fuzzers have found real bugs (#319, #321), so the setup is worth building on.
Ask
Cache the corpus per target with actions/cache, keyed by target and restored with a prefix. Every week or so, run cargo fuzz cmin and commit the minimized corpus.
Add a differential target, ops_sequence. It decodes the fuzz input into a list of operations (transact, retract, checkpoint, reopen, query), runs them on a file-backed database, and compares the results with an in-memory reference model. It panics when they differ.
Add a target that writes a valid database, flips or truncates bytes at fuzzer-chosen offsets, then opens and queries it. Opening must return an error or correct data, never wrong data. (This depends on page checksums, filed separately.)
Activity
Merge pull request #498 from project-minigraf/fuzz/387-corpus-and-pag…
Merge pull request #500 from project-minigraf/fuzz/387-workflows-main
Merge pull request #502 from project-minigraf/fuzz/387-cmin-dedup-v3
Merge pull request #503 from project-minigraf/fuzz/387-cmin-dedup-main
Merge pull request #507 from project-minigraf/fuzz/387-ops-and-corrupt
fuzz: minimized corpus for main (weekly cmin) (#563)
adityamukho commentedon Oct 14, 2026
Every item here has been merged:
fuzz.yml.cargo fuzz cmincommitted as a PR:fuzz-corpus.yml(fuzz: v8 page targets that reach their decoders; keep the corpus between runs (#387, #375) #498/ci(fuzz): fuzz main and v3 nightly in parallel jobs, keep the corpus (#387) #500, seed fix ci(fuzz): drop the hashed copy of each seed after cmin (#387) #502/ci(fuzz): drop the hashed copy of each seed after cmin (#387, main) #503). The scheduled runs have passed; the minimized corpora are merged in fuzz: minimized corpus for main #563 (main) and fuzz: minimized corpus for v3 #565 (v3).ops_sequencedifferential target andcorrupt_filetarget: fuzz: ops_sequence and corrupt_file targets that check results (#387) #507.corrupt_filealso checks that a file shorter than one page opens as an empty database (A file shorter than one page opens as a new empty database (read-write re-initializes it) #506).The PRs referenced this issue without a closing keyword, so it stayed open after they merged.
🤖 Generated with Claude Code
fuzz: minimized corpus for main (weekly cmin) (#632)
fuzz: minimized corpus for v3 (weekly cmin) (#639)
fuzz: minimized corpus for main (weekly cmin) (#767)
fuzz: minimized corpus for main (weekly cmin)
fuzz: minimized corpus for main (weekly cmin) (#803)
fuzz: minimized corpus for main (weekly cmin) (#880)
fuzz: minimized corpus for v3 (weekly cmin) (#881)
fuzz: minimized corpus for v3 (weekly cmin) (#898)