Skip to content

v0.7.0

Choose a tag to compare

@t-k t-k released this 24 Nov 13:59
· 52 commits to main since this release
v0.7.0
f3e2097

Added

  • Unified output format flag (--format text|json|jsonl|sarif) while preserving --json, --jsonl, and --sarif as backward-compatible shorthand flags.
  • Grouped CLI help organizing all options into six workflow sections (Target & Scope, Mutation Mode, Test Execution & Selection, Output & Baselines, Performance & Cargo Build, Work Directory & Fixtures) with compact -h summaries, detailed --help descriptions, usage examples, and an exit-code reference.
  • Expanded SARIF 2.1.0 reporting:
    • Added rules for unstable-prediction, weakened-test, and audit-disagreement, plus properties.audit metadata on SARIF runs.
  • Structured audit diagnostics:
    • Added Audit.not_audited for sampled survivors whose full re-run was Unable or an unconfirmed timeout.
    • Added TraceDifference.rerun_failed so trace rerun failures are distinguished from ordinary trace drift in text, JSON, and SARIF output.
  • Subreaper-aware orphan cleanup (ACTIVE_CHILDREN tracking, PID 1 / Linux PR_GET_CHILD_SUBREAPER detection, Linux pidfd_open + pidfd_send_signal + waitid(P_PIDFD) with safe fallbacks, and non-Linux ps-bracketed lsof verification) with an updated formal/tla/Leftovers.tla model.
  • Documentation:
    • Documented i128/u128 probe specialization limits (--source-only workaround) and async/thread-pool worker thread attribution limits (tokio/rayon, --isolate-tests workaround) in README.md.

Changed

  • Consistent CLI exit codes:
    • All CLI argument parse, range, and conflict errors now exit with code 1 (instead of clap's default 2), keeping exit code 2 unambiguous for test gaps, unstable predictions, and audit discrepancies in CI pipelines.
    • --audit discrepancies (disagreements, source_disagreements, and trace_differences) now count as gaps and return exit code 2 (while unconfirmed timeouts still take precedence with exit code 3).
  • Baseline ignore-comment lexing:
    • Replaced line-based comment scanning with a Rust lexer supporting string literals, raw strings, escaped character literals ('\''), and nested block comments (/* ... */). Inline trailing // tmt:ignore comments now apply only to their own line, while standalone comment lines continue to apply to the next line.
  • Stronger-assertion witness discovery:
    • Added support for super::f(...) calls inside direct child mod tests modules, normalized argument token deduplication so duplicate/reformatted calls do not crowd out distinct inputs within the 4-call budget, and bounded scenario memory to O(MAX_CALLS).
    • Included boundary source mutants in stronger-assertion witness synthesis and preserved original binaries with exclusive create_new temporary files during shared witness runs.
  • Parallel filtered timing pre-warming:
    • Keyed cached filtered baseline timings by (test_threads, filter) and pre-warmed uncached jobs serially at the parallel thread count. Added a warning when combining --source-only with --jobs > 1.
  • Internal module structure:
    • Extracted shared witness AST helpers into src/witness/common.rs, split src/instrument.rs and src/driver.rs into cohesive submodules, and decomposed run_package into focused phase helpers without changing public APIs.

Fixed

  • Probe runtime memory ordering: used Release/Acquire ordering on MODE so TARGET writes are guaranteed visible on weakly ordered architectures (e.g. ARM64), added fast idle(site) short-circuits, and fixed -0.0/+0.0/NaN handling in MinMaxPrim.
  • Checkpoint partial completion: kept checkpoints resumable when Outcome::Unable remains in the source phase instead of marking the campaign completed (verified with formal/tla/CampaignCheckpoint.tla).
  • Work-copy and wrapper safety: skipped special files (FIFOs, sockets, device nodes) and symlinks pointing into excluded paths during workspace copying; rejected absolute, parent-traversal, and control-character paths in --test-wrapper; rejected --jobs 0.
  • Output fixtures on case-insensitive filesystems: safely allowed case-only renames of owned fixtures while rejecting hard links to unowned files (same_directory_entry).
  • Git diff & scope parsing: unified Scope::from_diff with hunks() to avoid mistaking +++ lines in diff bodies for file headers and handled diff.suppressBlankEmpty=true.
  • Instrumentation edge cases: preserved inner attributes (#![...]) at the start of function bodies, avoided dropping meaningful trailing commas in 1-element tuples during same_built_tokens, inserted whitespace when removing unary !/- would merge tokens, and skipped #[cfg]/#[cfg_attr]/#[mutants::skip]-annotated assignments (including destructuring assignments).
  • Process cleanup and audit accuracy: killed timed-out/errored child processes before leftover sweeps, guarded process-group signalling with id > 1, snapshotted nextest child groups before wait, skipped Linux pseudo-FDs (/proc/<pid>/fd/*) without dropping renamed regular files, and avoided reporting Unable/unconfirmed-timeout audit reruns as false disagreements.
  • SARIF path handling: normalized Windows separators without breaking Unix literal backslashes or existing Windows baseline paths.
  • Campaign identity: hashed canonicalized executable targets when the invoked binary is a symlink.