Repository navigation
cargo-mutants 27.1.0 (new): mutation testing for Rust (fv-lab) - #1609
Conversation
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 58 minutes for your next included review. View limit details
|
There was a problem hiding this comment.
Scope matches the title. The diff adds one package, packages/cargo-mutants/build.ncl and packages/cargo-mutants/build.sh, and touches nothing else. Clobber none: both files are new, and git log shows only the PR commit on that path. Correctness The recipe follows packages/zola and packages/cargo-nextest: the same gs://minimal-staging-archives mirror shape, the same glibc + subsetOf gcc ["libgcc"] runtime deps, and no cd after strip_prefix. The detbuild rules hold: detbuild is in build_deps, cargo fetch --locked runs without the preload, and the preload is a prefix on one cargo build --frozen command. The readelf gate fails closed, also on empty output. The comments explain the code and do not narrate the change. One nit: build_args forwards version, and build.sh does not read it. Not checked I did not build the package. I did not verify the source sha256, the mirror bytes, the upstream license, or the exact cargo mutants --list output that the list test expects. gitleaks and trivy did not run, because the harness denied those commands. The PR body lists RustSec advisories in the upstream Cargo.lock, and I did not verify that list. The CLI version is not known, because the harness denied claude --version.
| } | Needs, | ||
|
|
||
| cmd = "./build.sh", | ||
| build_args = { include version }, |
There was a problem hiding this comment.
nit · build_args forwards version, but build.sh does not read MINIMAL_ARG_VERSION. The source extracts into the cwd through strip_prefix, so the script needs no version. Remove the line, as packages/zola/build.ncl does. packages/cargo-nextest/build.ncl has the same unused forward, so this is a small pattern and not one instance.
What
New package cargo-mutants 27.1.0 (sourcefrog/cargo-mutants, latest release), mutation testing for Rust. Wanted for the fv-lab loadout (formal-verification lab sessions, amd64 + arm64): it reads mutation testing against the proofs.
rust:cargo fetch --lockedagainst upstream's Cargo.lock, thencargo build --frozen --releaseunder thedetbuildpreload. RUSTFLAGS carry-C linker=gcc,--remap-path-prefixfor the source and cargo-home paths,codegen-units=1and v0 mangling (as codex, nushell and zola do).gs://minimal-staging-archives/sourcefrog/cargo-mutants/v27.1.0.tar.gz, byte-identical to GitHub'sarchive/refs/tags/v27.1.0.tar.gz(sha256e57d8c31…).cargois on PATH, sorustis only a test dep. Runtime deps areglibcandsubsetOf gcc ["libgcc"](libgcc_s, for unwinding). build.sh fails closed if the binary ever NEEDs anything outside glibc and libgcc_s.-syscrates and no build script that downloads anything.Tests (standalone)
version_check:cargo-mutants mutants --versionis exactlycargo-mutants 27.1.0.list: writes a one-function crate, runscargo mutants --listthrough cargo's subcommand lookup, and requires two specific mutants ofadd. It usesrustas a test dep. Nothing is compiled, so it needs no linker.How tested
pkgbuildloadout):min package build --rebuild --verbose cargo-mutantsbuilt, andmin check --packages cargo-mutantspassed every check, standalone tests included.listtest failed. Restored afterwards.nickel formatand evaluated on both arches.Unresolved / for the reviewer
gcc-runtime (gcc 15.2.0 → 16.2.0, with gcc-runtime split out (pm#1182) #1545).
mainhas nogcc-runtimeyet, so this usessubsetOf gcc ["libgcc"]like every other Rust package. gcc 15.2.0 → 16.2.0, with gcc-runtime split out (pm#1182) #1545'sgcc_runtime_guardrejects that. Whichever of the two merges second has to change this line tosubsetOf gcc-runtime ["libgcc"].RustSec advisories in upstream's Cargo.lock (OSV.dev, all 202 registry crates checked). None is a CVE in reachable code, and none is lock-patched here:
Error::downcast_mut(fixed in 1.0.103)fmt::Pointeron an invalid pointer (fixed in 0.9.20)If we want floors,
pkgmgr lock-patch cargo-mutantscan generate them as a follow-up.🤖 Generated with Claude Code