tursodatabase avatar

Differential Fuzzer

Turso-vs-SQLite differential fuzzer that generates SQL, reproduces failures by seed, and minimizes them for probing.

skills.sh installs
1.2K
GitHub stars
25.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers running the fuzzer with fixed seeds or looped random runs, and reproducing failures by replaying seed and profile together
  • Writes test.sql, schema.json, and optional .db files to simulator-output/, plus minimized.sql for failure reproduction
  • Provides differential_probe, which runs a script on Turso and SQLite side by side and flags divergences
  • Designed for engineers chasing correctness bugs in Turso who need to minimize a failure into a *.sqltest regression

Install

$ npx -y skills add tursodatabase/turso --skill differential-fuzzer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Differential Fuzzer

The differential fuzzer compares Turso results against SQLite for generated SQL statements to find correctness bugs.

Location

testing/differential-oracle/fuzzer/

Running the Fuzzer

cargo run --bin differential_fuzzer -- --seed 12345 --keep-files   # reproducible run, keep .db files
cargo run --bin differential_fuzzer -- loop 50                     # 50 runs with random seeds; omit the count to run forever

Run with --help for all options (statement count, tables, columns, --profile, --verbose).

Output Files

All output goes to simulator-output/ directory:

FileDescription
test.sqlAll executed SQL statements. Failed statements prefixed with -- FAILED:, errors with -- ERROR:
schema.jsonDatabase schema at end of run (or at failure)
test.dbTurso database file (only with --keep-files)
test-sqlite.dbSQLite database file (only with --keep-files)

Reproducing Errors

  1. Find the seed and profile in the error output:
    INFO: Starting differential_fuzzer with config: SimConfig { seed: 12345, ..., weight_profile: Writes }
    

Details

Repository
github.com/tursodatabase/turso
Categories
Testing & QA, Databases
First seen
May 16, 2026

More from tursodatabase/turso

All 7

Similar to Differential Fuzzer

More Testing & QA