
Image: Datadog
Why it mattersA test method that needed a specialist to set up now runs from a prompt. A team can point it at their own library and see what falls out.
Open-source software that has been tested for years is turning out to hold deep bugs. Datadog released Ephyra on Monday, a library where coding agents write the test-case generators. It found 535 new bugs in 26 well-tested projects, Datadog says.
Of those 535 bugs, Datadog reported 373 as confirmed by maintainers. 313 of those are already fixed. The projects include SQLite, PostgreSQL, OCaml, Lean 4, DataFusion and FoundationDB, Datadog says.
The oldest bugs it found
A memory-safety crash in OCaml had been in the code for 24 years when Ephyra found it. A pattern-match that was not exhaustive made the program jump through a wild pointer, Datadog says. OCaml should have raised a Match_failure and did not.
A database-corruption bug in SQLite had been there for nearly 13 years. Datadog says three DELETE statements made SQLite report its own file as malformed. The report is on the SQLite forum.
A parsing bug in PostgreSQL ran out exponentially on inputs 21 years old, per Datadog. Lean 4 treated the number 5 and the number 5.0 as different patterns in a match. The Datadog team reported this four months after the bug was introduced.
How Ephyra uses coding agents
Property-based testing is an older method. Engineers define a rule the code must keep, for every input. A framework then generates random inputs that try to break the rule. The hard part has always been writing good generators, Datadog says.
Ephyra hands that work to a coding agent. The engineer writes the property. The agent writes and improves the generator using feedback from each test run. Datadog says a shrinker reduces each failing input to a small example that still shows the bug.
On SQLite, Datadog says the generator grew from 79 to 261 features over 37 rounds. Code coverage rose from 35.9 percent to 74.1 percent. Testing found 26 bugs in that one run.
What you can use today
Ephyra is at datadog-labs/ephyra on GitHub, written in Rust. It includes the library, case studies, a CLI and a Datadog integration. Datadog says Ephyra is experimental and not a supported product offering.
The team wrote a starter prompt for a coding agent. Point it at the repository, and ask it to read the README and startup guide first. Then let it write Ephyra tests on a target library until it finds bugs. Ephyra tests software in many languages, including C++ and Python, Datadog says.
The method's own limits still apply. A property has to be written, and writing a good property takes thought. A finding has to be confirmed by a maintainer, and 162 of the 535 reports have not been confirmed yet. The gain Datadog shows is that the generator, which used to take real expert time, is cheap now. That is the cost that kept many teams off this method.
The accompanying paper will appear at the Future of Property-Based Testing workshop at POPL 27 in January, Datadog says. The full bug list is in the repository and the paper's appendix.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.