Skip to content

Fuzz on ClusterFuzzLite - #120

Open
LucaCappelletti94 wants to merge 2 commits into
isdaniel:mainfrom
LucaCappelletti94:fuzz-clusterfuzzlite
Open

LucaCappelletti94 wants to merge 2 commits into
isdaniel:mainfrom
LucaCappelletti94:fuzz-clusterfuzzlite

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Summary

In the past, I had configured the CI fuzzer as a simple periodic run. I have since moved to ClusterFuzzLite in all of the relevant projects I maintain, like diesel and sqlparser. Both are already deployed and have already caught several real bugs.

This runs the three existing cargo-fuzz targets on ClusterFuzzLite. Every pull request gets ten minutes of fuzzing aimed at the code it changes, and a daily batch run fuzzes for an hour and keeps its corpus on a clusterfuzzlite branch of this repository, pruned an hour before each batch. That covers what fuzz.yml did on pull requests and every night, so this removes it. The OSS-Fuzz image builds tokio under AddressSanitizer on its own nightly without the compiler crash that pinned fuzz.yml to nightly-2026-07-23. I checked the build locally through the same compile entrypoint the action runs, then fuzzed each target for a minute.

Only the batch and prune jobs request contents: write, since they push the corpus to the clusterfuzzlite branch. That branch is created on the first run.

Related issues

I haven't opened one.

Type of change

  • Bug fix
  • New feature
  • Performance improvement
  • Refactor / internal cleanup
  • Documentation
  • CI / build

Checklist

  • make before-git-push passes locally (check, build, format, audit, test, doc-check)
  • Tests added/updated for the change (coverage stays ≥ 90%)
  • Both backends build (--features rustls-tls if connection/streaming code changed)
  • Docs / README updated if public API changed

Performance notes

n/a

@codspeed

codspeed Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing LucaCappelletti94:fuzz-clusterfuzzlite (5185dc6) with main (0c2b01c)

Open in CodSpeed

@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.32%. Comparing base (0c2b01c) to head (5185dc6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   95.33%   95.32%   -0.02%     
==========================================
  Files          33       33              
  Lines       25346    25346              
==========================================
- Hits        24164    24160       -4     
- Misses       1182     1186       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant