Skip to content

PYTHON-6178 Persist coverage-increasing inputs from the nightly BSON fuzz runs - #40

Open
blink1073 wants to merge 56 commits into
mainfrom
PYTHON-6178
Open

blink1073 wants to merge 56 commits into
mainfrom
PYTHON-6178

Conversation

@blink1073

Copy link
Copy Markdown
Owner

PYTHON-6178

Changes in this PR

  • The nightly fuzz task now harvests its coverage-increasing inputs into the committed fuzz/corpus/ and opens an automated [Fuzz Corpus] PR against main, so later nights build on prior discoveries instead of restarting from the spec seed corpus.
  • Harvest dedupes by content digest against a baseline manifest recorded at setup, caps growth at 50 units per run and 64 KiB per unit (overridable from Evergreen), and treats a run that finds nothing new as a clean no-op.
  • Crashing inputs are excluded automatically: a crashing target fails the task before the harvest command runs, so reproducers keep the existing fuzz/regression/ triage flow.

Test Plan

  • just test test/test_fuzz_harvest.py: 8 unit tests for the harvest module (digest diffing, caps, summary, no-op), written first.
  • just setup-tests fuzz fuzz writes a 485-digest baseline manifest, and a unit committed in fuzz/corpus/ reaches both the scratch corpus and the baseline.
  • Harvest guards: patch builds skip (patch run), an empty harvest exits 0.
  • Evergreen patch on fuzz-regression-rhel8: task green; seeding, baseline manifest, and target replay verified on a real host (patch run).
  • Evergreen patch of the nightly fuzz task, using a temporary in-patch guard that runs the harvest without PR creation: all three targets ran 60s crash-free, and the harvest kept 50 units while skipping 17 oversize and dropping 58 over the per-run cap (patch run).
  • The GitHub-facing PR creation needs the App secrets, so the first real nightly after merge exercises it.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)? (The repo has no changelog file.)
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s). (None filed.)

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

NoahStapp and others added 30 commits November 9, 2026 08:42
The nightly fuzz run seeds from a committed fuzz/corpus/ directory and, after a green run, harvests its coverage-increasing inputs into an automated [Fuzz Corpus] PR, so later nights build on prior discoveries instead of restarting from the spec seeds. Harvest dedupes by content digest and caps growth at 50 units per run and 64 KiB per unit, overridable from Evergreen; nothing new means no PR. Crashing inputs fail the task before harvest runs, keeping reproducers on the fuzz/regression/ triage flow.
Co-authored-by: mongodb-drivers-pr-bot[bot] <147046816+mongodb-drivers-pr-bot[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
…ongodb#3179)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
blink1073 and others added 26 commits November 12, 2026 07:30
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
# Conflicts:
#	.evergreen/scripts/test_generate_config.py

This branch has not been deployed

No deployments
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.

3 participants