Skip to content

Add differential fuzzing with PR checks and nightly campaigns - #354

Merged
vincentlaucsb merged 4 commits into
masterfrom
codex/differential-fuzzing
Nov 10, 2026
Merged

vincentlaucsb merged 4 commits into
masterfrom
codex/differential-fuzzing

Conversation

@vincentlaucsb

@vincentlaucsb vincentlaucsb commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Adds opt-in Clang/libFuzzer coverage for stream parsing, stream/mmap equivalence, synchronous/threaded scheduling, and synthesized chunk boundaries. Ordinary builds remain unchanged. PRs and master pushes replay committed inputs and run 60-second fast campaigns; nightly/manual runs add longer campaigns, with separate TSan replay, retained corpora, crash artifacts, and resource limits.

Boundary recipes cover both stream windows and mmap's preview-adjusted windows, including compact cases and default-window cases with over 500,000 rows. Corpus files preserve their exact bytes across checkouts.

Differential replay found that empty files returned OpenFailed while empty streams reported EOF. Readable empty files now report EOF, with checked and throwing API regressions covering both backends. The ETL missing-file test now uses a genuinely absent path instead of an empty fixture.

Coverage capture applies the existing source exclusions before processing function metadata. This avoids GCC metadata inconsistencies in test helpers without broadening ignored errors or changing the intended coverage scope.

Validation:

  • All 54 GitHub checks passed on 3af6bc5, including compiler/compatibility matrices, explicit-error modes, fuzzing, ASan, UBSan, TSan, coverage capture/upload, and Python packaging.
  • Rebuilt local ASan/UBSan regressions passed: 30 assertions across four test cases.
  • Local Clang 20 fuzz campaigns, corpus replay, TSan replay, and exception-disabled checks passed. Local TSan required Docker to allow its runtime ASLR setup.

Fixes #352.

@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.18%. Comparing base (86f1cab) to head (3af6bc5).

Files with missing lines Patch % Lines
include/internal/parser/driver.cpp 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #354      +/-   ##
==========================================
+ Coverage   92.08%   92.18%   +0.10%     
==========================================
  Files          64       64              
  Lines        4660     4671      +11     
  Branches     1383     1431      +48     
==========================================
+ Hits         4291     4306      +15     
  Misses        107      107              
+ Partials      262      258       -4     
Flag Coverage Δ
cpp 92.10% <50.00%> (+0.11%) ⬆️
python 93.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@vincentlaucsb
vincentlaucsb merged commit 416362c into master Nov 10, 2026
54 checks passed
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.

Add differential libFuzzer coverage for stream/mmap parsing and chunk boundaries

1 participant