Repository navigation
Conversation
Shared on request in elixir-lang#16102: the generated harness that found elixir-lang#16101, elixir-lang#16102 and elixir-lang#16105-elixir-lang#16111. Assisted-by: Claude Code:Claude Opus 5.5
1 task done
Member
|
Excellent, thanks for sharing! |
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.
Not for merge. Shared on request in #16102: the harness that found #16101, #16102 and #16105–#16111, as it was when the run stopped, cleaned up only enough to run outside our machine.
How it found these bugs
Ephyra is a property-based testing library in Rust, and ephyra-agent is a loop of Claude agents around it. The agents get a target (here, Elixir main and its type system docs), write a harness, and run it continuously in 30-minute search windows. They triage each new failure (shrink it, check it on main and v1.20.5, look for an existing issue). When a bug is real they patch it locally so the search can get past it, and they change the generator wherever Erlang
covershowsModule.Types*code it never reaches.Rust is only the driver. It generates small modules (multi-clause defs, patterns, guards,
case/fn/with/for, maps, tuples, lists, bitstrings, structs,Map/Tuple/Enumcalls) and shrinks failures. The checking happens inworker.exs, a long-lived VM built from the tree under test. For each module it:Module.Types.Descroperations (union, intersection, difference,subtype?, map/tuple/list operators) for consistency, and parses printed types back;Module.Typeswhile compiling a valid module.Over the run (about 9M cases),
covermeasured 82% ofModule.Types*lines. Every issue was re-checked by hand on current main and searched against existing issues before filing.Running it
From the repo root (needs OTP 27+, stable Rust and rsync; see
ephyra-harness/README.md):On today's main (0823e72) a 15-second run still reports a few failures. They haven't been triaged, so they may be harness false positives rather than bugs.
The same harness is in datadog-labs/ephyra#34, with the 9 reports.
Assisted-by: Claude Code:Claude Opus 5.5