Answer stability round 1: 1 🔴, 2 🟡 (0 misread); no outcomes file means no mutant, two tests use subTest, and a test's name fits its assertion
This commit is contained in:
@@ -15,13 +15,13 @@ No model judges anything: the bench runs programs, and reads Haiku's own stream.
|
||||
|
||||
- Plant. It copies the tree at the base and runs a mutation tool there, over the files that hold the places `larv-review places`
|
||||
prints, the ones the comprehension seats found hardest: Gremlins over the Go files, as `gremlins unleash`, mutmut 3 over
|
||||
the Python files, as `mutmut run`, and cargo-mutants over the Rust files, as `cargo mutants`. It takes the mutants the tests kill in the order --seed sets, 1 by default, until --bugs of
|
||||
the Python files, as `mutmut run`, and cargo-mutants over the Rust files, as `cargo mutants`. No other language is planted
|
||||
in so far. It takes the mutants the tests kill in the order --seed sets, 1 by default, until --bugs of
|
||||
them, 5 by default, have become bugs. A mutant becomes a bug where the lines it changes stand unchanged at the head, and where,
|
||||
planted at each side, a test fails and prints a message that says more than the test's name. The bench reads that message
|
||||
from `go test`'s output for a Go file, from pytest's for a Python file and from `cargo test`'s for a Rust file, so --test must
|
||||
run the tests of each language the places name, with that runner: pytest as it prints by default, or with --tb=short. Any
|
||||
other mutant is passed over, so a change to the very lines of a bug is not benched. Go, Python and Rust are the languages so
|
||||
far.
|
||||
run the tests of each language the places name, with that runner: pytest as it prints by default, or with --tb=short, and
|
||||
`cargo test` without --nocapture. Any other mutant is passed over, so a change to the very lines of a bug is not benched.
|
||||
- Run. Haiku fixes each bug --runs times at each side, 5 by default, the sides in turn. A fix starts from a copy of that side's
|
||||
tree with the bug in it, committed once, so git doesn't show which line the bug is on. In the copy, in a container, `claude -p
|
||||
--strict-mcp-config --disable-slash-commands --no-session-persistence --model claude-haiku-5-5 --effort low` works with every
|
||||
@@ -29,7 +29,8 @@ No model judges anything: the bench runs programs, and reads Haiku's own stream.
|
||||
Claude home is new and empty, so the project's own CLAUDE.md, or AGENTS.md, in the copy is all the setup that loads. Its network
|
||||
reaches api.anthropic.com and nothing else. A fix ends after 30 minutes.
|
||||
- Check. The test command runs over the planted tree with each file that is no test as Haiku left it; a fix passes where it exits 0.
|
||||
A test Haiku changed, removed or added doesn't count, and neither does a file under a `testdata` folder.
|
||||
A test Haiku changed, removed or added doesn't count, and neither does a file under a `testdata` folder. A Rust test that
|
||||
stands in the file of the code it tests is the exception: the bench takes that file whole, so a change to such a test counts.
|
||||
|
||||
--image is the project's development image, such as golang:1.27.4. The bench adds Claude Code to it, as its installer installs it,
|
||||
so the image needs curl and bash; the result names the version. Haiku works in that image. So does --test: sh runs that text at
|
||||
@@ -48,8 +49,8 @@ for Go, for Python and then for Rust:
|
||||
docker run --rm --memory 16g --memory-swap 16g --user "$(id -u):$(id -g)" -e CARGO_HOME=/tmp/cargo -v "$PWD:$PWD" -w "$PWD" \
|
||||
rust:1.100.0 sh -c 'cargo install --quiet --locked cargo-mutants@27.1.0 && exec "$@"' sh
|
||||
|
||||
Where the places name files in more than one language, the one prefix gets each tool's command, in the order above, and a tool
|
||||
it cannot run fails the bench. Such a prefix picks the tool by "$1", which is `gremlins`, `mutmut` or `cargo`, as here for Go
|
||||
Where the places name files in more than one language, the one prefix gets each tool's command, Gremlins' first and
|
||||
cargo-mutants' last, and a tool it cannot run fails the bench. Such a prefix picks the tool by "$1", which is `gremlins`, `mutmut` or `cargo`, as here for Go
|
||||
and Python:
|
||||
|
||||
sh -c 'case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user