tests: Add the cargo-fuzz fuzzing suite#36982
Draft
def- wants to merge 1 commit into
Draft
Conversation
This was referenced Jun 12, 2026
Squashes every fuzzing-infrastructure change in this branch into one commit, separate from the individual bug fixes the fuzzing surfaced (one commit each): * The cargo-fuzz crates under `src/*/fuzz` — targets, seed corpora, dictionaries, and `prepare-corpus.sh` scripts — covering the SQL parser / pretty-printer, repr (strconv, jsonb, Row codec/proto, arithmetic oracles), the expr optimizer transforms, Avro/Protobuf/CSV/pgwire/pgcopy decoders, pgrepr/pgtz, the upsert state machine, persist durable-state decode, and the proto round-trips across storage-types/persist/catalog/external table descs. * The harness and runner wiring: `--profile fruitful`, `--jobs auto`, per-crate sharding, artifact-based crash detection, `.repro.txt` sidecars, and the auto-generated `buf.yaml` fuzz-crate excludes. * CI: move cargo-fuzz from nightly to release qualification (24h, 48-core). * The production-side enablement the targets require: the `fuzzing`/`fuzz` Cargo features and the `#[doc(hidden)]` / `cfg`-gated re-exports that expose upsert, persist-client, and pgwire internals to the fuzz crates. * The macOS build fixes those exports necessitated: raising and then removing the storage `recursion_limit` workaround by switching the affected `Stream::inspect` calls to `InspectCore::inspect_container`, which avoids the objc2-driven trait-solver overflow. * The sqllogictest/testdrive golden updates for the identifier-quoting changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Adds the cargo-fuzz suite: fuzz targets, seed corpora, dictionaries, and the runner/CI integration (release-qualification, 24h). Covers the SQL parser/pretty-printer, repr (strconv, jsonb, Row codec/proto, arithmetic oracles), the expr optimizer transforms, the Avro/Protobuf/CSV/pgwire/pgcopy decoders, pgrepr/pgtz, the upsert state machine, persist durable-state decode, and proto round-trips across storage-types/persist/catalog/external table descs.
Also includes the production-side enablement the targets require (the
fuzzing/fuzzCargo features and#[doc(hidden)]/cfg-gated re-exports) and the macOS build fixes those exposures necessitated.This is the infrastructure PR — mostly mechanical (generated corpora/dicts). The individual bugs it surfaced are split into separate per-subsystem PRs.
Depends on #36983, #36984, #36985, #36986, #36987
🤖 Generated with Claude Code