Skip to content

Fuzz realm views on batch against incremental - #200

Open
szlangini wants to merge 2 commits into
mainfrom
jan/batch-realm-fuzz
Open

szlangini wants to merge 2 commits into
mainfrom
jan/batch-realm-fuzz

Conversation

@szlangini

@szlangini szlangini commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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
szlangini requested a review from lstwn November 24, 2026 15:07
@szlangini
szlangini force-pushed the jan/batch-realm-fuzz branch from c5bdef1 to a932c84 Compare December 1, 2026 11:57
@szlangini szlangini changed the title Fuzz realm views and compare them with Soufflé Fuzz realm views on batch against incremental Dec 1, 2026
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.

1 participant