Repository navigation
Conversation
Each seed grows a realm's base tables over six commits, inserting rows and deleting rows of earlier commits together with the rows referencing them, and compares every derived view on both backends after every commit. Seeds start tiny and grow, so the first failing seed is a small case; its message names the seed and the commits. Runs Graph, Triangle, TransitiveClosure and both Bipartite realms, 30 seeds each by default. COLN_FUZZ_CASES and COLN_FUZZ_SEED widen or narrow a run. The realm test harness becomes a twin of both backends that checks commit by commit.
szlangini
force-pushed
the
jan/batch-realm-fuzz
branch
from
December 1, 2026 11:57
c5bdef1 to
a932c84
Compare
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.
What
Random tests that compare batch with incremental on whole realms.
How
Each case makes six commits of random inserts and deletes. After every commit, each view must hold the same rows on both engines. Five realms from the compiler's test data take part.
In default mode, data is small on purpose: at most a few dozen new rows per table and commit, often just one. This checks many small cases for correctness, not size or speed. A failure prints its seed, and COLN_FUZZ_SEED= replays it.
You can also scale:
COLN_FUZZ_MAX_ROWS and COLN_FUZZ_COMMITS allow larger runs on demand. Normal test runs are unchanged.
Tests only. Rules are not compared yet.