feat(fuzz): coverage-guided fuzz testing pipeline with cargo-fuzz#460
Merged
Smartdevs17 merged 2 commits intoMay 28, 2026
Merged
Conversation
- subscription: full lifecycle fuzzing (create_plan → subscribe → charge → pause → resume → cancel) - pricing: boundary price values, refund math, charge timing - rate_limit: per-function rate-limit enforcement windows - state_machine: illegal state transitions (double-cancel, charge-while-paused, etc.) - utils: shared helpers for byte parsing, env setup, time management - .gitignore for cargo-fuzz artifacts and corpus directories - seed corpus files for all 4 targets with edge-case inputs Each target parses raw bytes from libFuzzer into a command stream and catches panics to keep fuzzing on invalid inputs.
… triage - 4-target matrix (subscription, pricing, rate_limit, state_machine) running in parallel - nightly toolchain + cargo-fuzz installation - seed corpus copied from .github/corpus/ and cached between runs - 30-minute run per target with AddressSanitizer - crash artifacts uploaded on failure with 14-day retention - corpus uploaded weekly for coverage continuity - scheduled weekly run (Monday 06:00 UTC) - explicit error notification with local reproduction command
|
@activatedkc Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements issue #438 — a production-ready fuzz testing pipeline using
cargo-fuzz(libFuzzer) with 4 coverage-guided targets, CI integration, seed corpus management, and crash triage workflow.Changes
contracts/fuzz/— cargo-fuzz crate (2 commits).github/workflows/fuzz-test.yml— CI rewriteCloses #438