ci: nightly cargo-fuzz job for fuzz/ (PR #103 harness) #104

Merged
sirius merged 1 commit from wt/t_16e835ef into main 2026-09-18 01:00:40 +00:00
Owner

Summary

Add a fuzz job to .forgejo/workflows/ci.yml that builds the four libFuzzer targets on nightly (ratchet_frame, qr_decode, dispatch_classify, file_decode) and runs each for 15s.

  • Own registry + target volumes (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 the test/sdk jobs.
  • Path allowlist extended with fuzz/** and scripts/run-fuzz.sh so fuzz-only PRs actually trigger the job.
  • Follows the same runs-on: docker + sh -euxc container pattern as the other two jobs; rustup toolchain install nightly --profile minimal, cargo install cargo-fuzz --locked, export PATH=/usr/local/cargo/bin:$PATH so +nightly resolves.

Scope

Only .forgejo/workflows/ci.yml. Does NOT touch src/, fuzz/fuzz_targets/, fuzz/Cargo.toml, or fuzz/seeds/.

Note

The fuzz/ crate (PR #103, card t_1265efb2) is a detached workspace that root cargo test --locked / cargo clippy --all-targets never see, and the existing path allowlist excluded fuzz/**. So until #103 merges, this job is a no-op — it will run only on the CI workflow's own branch changes and on workflow_dispatch. Once #103 lands on main, every fuzz/- or scripts/run-fuzz.sh-touched PR triggers it.

Acceptance

  1. cargo +nightly fuzz list inside the job lists all four targets.
  2. The job fails when a target crashes (verified by temporarily injecting a panic!() on a throwaway branch — push, confirm red, remove).
  3. A fuzz/-only PR triggers the job; a docs-only PR does not.
  4. Green run recorded with per-target crashes=0/0/0 lines posted to the card.
## Summary Add a `fuzz` job to `.forgejo/workflows/ci.yml` that builds the four libFuzzer targets on nightly (`ratchet_frame`, `qr_decode`, `dispatch_classify`, `file_decode`) and runs each for 15s. - Own registry + target volumes (`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 the `test`/`sdk` jobs. - Path allowlist extended with `fuzz/**` and `scripts/run-fuzz.sh` so fuzz-only PRs actually trigger the job. - Follows the same `runs-on: docker` + `sh -euxc` container pattern as the other two jobs; `rustup toolchain install nightly --profile minimal`, `cargo install cargo-fuzz --locked`, `export PATH=/usr/local/cargo/bin:$PATH` so `+nightly` resolves. ## Scope Only `.forgejo/workflows/ci.yml`. Does NOT touch `src/`, `fuzz/fuzz_targets/`, `fuzz/Cargo.toml`, or `fuzz/seeds/`. ## Note The `fuzz/` crate (PR #103, card t_1265efb2) is a detached workspace that root `cargo test --locked` / `cargo clippy --all-targets` never see, and the existing path allowlist excluded `fuzz/**`. So until #103 merges, this job is a no-op — it will run only on the CI workflow's own branch changes and on `workflow_dispatch`. Once #103 lands on `main`, every `fuzz/`- or `scripts/run-fuzz.sh`-touched PR triggers it. ## Acceptance 1. `cargo +nightly fuzz list` inside the job lists all four targets. 2. The job fails when a target crashes (verified by temporarily injecting a `panic!()` on a throwaway branch — push, confirm red, remove). 3. A `fuzz/`-only PR triggers the job; a docs-only PR does not. 4. Green run recorded with per-target `crashes=0/0/0` lines posted to the card.
ci: nightly cargo-fuzz job for fuzz/ (PR #103 harness)
Some checks failed
ci / test (pull_request) Successful in 4m47s
ci / sdk (pull_request) Successful in 57s
ci / fuzz (pull_request) Failing after 1m8s
bfbbdbf14f
Add a  job to .forgejo/workflows/ci.yml that builds the four
libFuzzer targets on nightly (ratchet_frame, qr_decode,
dispatch_classify, file_decode) and runs each for 15s. Own registry
and target volumes (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 the
test/sdk jobs. Path allowlist extended with fuzz/** and
scripts/run-fuzz.sh so fuzz-only PRs actually trigger it.

Job is a no-op until PR #103 lands on main; the fuzz/ crate is a
detached workspace that root cargo test/clippy never sees.
sirius merged commit deaa8a7cfa into main 2026-09-18 01:00:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!104
No description provided.