DIRT: Database-Integrated Random Testing
Alperen Keles, Ethan Chou, Harrison Goldstein, Leonidas Lampropoulos

TL;DR
DIRT is a novel testing paradigm that embeds a testing framework within the DBMS, enabling more effective and actionable testing during database development, especially for evolving systems.
Contribution
It introduces generation actions for developer-specified correctness properties and demonstrates improved bug detection on an active SQLite-compatible engine.
Findings
Found 23 unique, confirmed bugs in Turso.
Outperformed SQLancer variants in true positive rate.
Reduced false positives by integrating testing into the DBMS.
Abstract
Database management systems (DBMSs) are notoriously complex, making them difficult to test effectively, especially during early development when many features are incomplete. Traditional testing tools like SQLancer and SQLSmith are highly effective for mature databases, but they struggle with high false positive rates and low actionability when applied to evolving systems. We present DIRT, a paradigm designed specifically for testing databases during development, which integrates a testing framework directly into the DBMS, enabling the random testing process to evolve in tandem with the system and reducing false positives by construction. We introduce generation actions, an abstraction for allowing database developers rather than testing experts to specify correctness properties. We evaluate DIRT on Turso, an actively developed SQLite-compatible OLTP engine, and show that it finds 23…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
