ci: fuzz the parser, the query modes and pg-native on a random seed - #3782
Open
nigrosimone wants to merge 7 commits into
Open
nigrosimone wants to merge 7 commits into
nigrosimone wants to merge 7 commits into
Conversation
… of NaN and an empty string
…he native client too
nigrosimone
marked this pull request as ready for review
September 13, 2026 11:09
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.
Three differential fuzzers in
fuzz/, and a CI job that runs a few hundred rounds of each on a seed nobody chose, on every push and pull request. A divergence turns the job red and prints the seed that reproduces it, with the case shrunk to the lines worth pasting into a test.wire.js: random backend messages written from the protocol description, parsed in one buffer and cut at random points, against what was writtenmodes.js:client.queryagainst the extended protocol forced, a named statement run twice, rowMode array, the binary result format, pipeline mode, pg-cursor and pg-query-streamnative.js: pg against pg-native, as a plain query, a named statement and rowMode arrayThey run from the command line too:
The first runs found #3776, #3777, #3778, #3780 and #3781, each fixed in its own PR with a test that fails on master. This branch carries those five commits so its CI is green; I will rebase it once they are merged. What it cannot fix is #980, a Buffer parameter reaching libpq as a C string, so the native arm draws none.