ci: nightly cargo-fuzz job for fuzz/ (PR #103 harness) #104
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_16e835ef"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a
fuzzjob to.forgejo/workflows/ci.ymlthat builds the four libFuzzer targets on nightly (ratchet_frame,qr_decode,dispatch_classify,file_decode) and runs each for 15s.onionwire-cargo-registry-fuzz/onionwire-target-ci-fuzz),TMPDIR=/target/tmp, own concurrency group (onionwire-ci-pi-fuzz) so the ~12min cold build does not serialize thetest/sdkjobs.fuzz/**andscripts/run-fuzz.shso fuzz-only PRs actually trigger the job.runs-on: docker+sh -euxccontainer pattern as the other two jobs;rustup toolchain install nightly --profile minimal,cargo install cargo-fuzz --locked,export PATH=/usr/local/cargo/bin:$PATHso+nightlyresolves.Scope
Only
.forgejo/workflows/ci.yml. Does NOT touchsrc/,fuzz/fuzz_targets/,fuzz/Cargo.toml, orfuzz/seeds/.Note
The
fuzz/crate (PR #103, card t_1265efb2) is a detached workspace that rootcargo test --locked/cargo clippy --all-targetsnever see, and the existing path allowlist excludedfuzz/**. So until #103 merges, this job is a no-op — it will run only on the CI workflow's own branch changes and onworkflow_dispatch. Once #103 lands onmain, everyfuzz/- orscripts/run-fuzz.sh-touched PR triggers it.Acceptance
cargo +nightly fuzz listinside the job lists all four targets.panic!()on a throwaway branch — push, confirm red, remove).fuzz/-only PR triggers the job; a docs-only PR does not.crashes=0/0/0lines posted to the card.