Repository navigation
Add --timeout, keep sandbox writes out of the real node_modules, release 0.1.1 - #3
Merged
Merged
Conversation
--timeout <ms> sets the limit for the baseline run and each mutant run (1000..86400000 ms). A baseline timeout now reports the limit and names the option instead of a generic baseline failure. Sandboxes used to link the whole node_modules directory. In a pnpm workspace, pnpm's pre-run install inside the sandbox rewrote the real tree through that link: workspace links were re-pointed into the sandbox, which killdiff then deleted, leaving the clone's links dangling. pnpm 12 also refuses to run under a linked node_modules, and workspace links kept pointing at the unmutated original packages. Each sandbox now rebuilds node_modules (and .pnpm, scopes and nested node_modules) as its own directories, links package contents, copies pnpm state directories, and re-points links that target the repository at the sandbox copy. Cleanup unlinks every link before removing the sandbox, so it never follows a link. Reproduced on a disposable pnpm 12.21 workspace: before, the clone's packages/app/node_modules/@fx/core pointed into a deleted sandbox and its tests failed; after, node_modules is unchanged and the workspace mutant is killed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
verify_diff_tests takes timeoutMs with the same 1000..86400000 bounds as --timeout, shared from the runner. Version 0.1.1 and changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nously From independent review of the 0.1.1 candidate: - Rust and Maven target directories are no longer linked into sandboxes, so binaries built from a mutant cannot stay in the real target/. A CARGO_TARGET_DIR from the environment is redirected into the sandbox. - Only pnpm projects get a rebuilt node_modules (one link per .pnpm store entry, empty tool caches). npm and Yarn layouts link node_modules as before. - pnpm's install-before-run check is off for sandbox runs. - Sandbox creation and removal are asynchronous, so one worker's setup cannot push another worker into a false timeout. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rially From the re-review: - A target-dir in a Cargo config file still pointed sandboxes at a shared directory. CARGO_TARGET_DIR is now always set inside the sandbox. - Parallel from-scratch builds could exceed 2.5x the solo baseline and report TIMEOUT as a kill. Rust and Maven projects run one mutant at a time. - README and CHANGELOG state what is still shared, including the pnpm case where a stored dependency loads the original workspace package. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Closed
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.



Changes
--timeout <ms>(CLI) andtimeoutMs(MCPverify_diff_tests) set the limit for the baseline run and each mutant run, 1000 to 86400000 ms. A baseline timeout now reports the limit and names the option. Defaults are unchanged.node_modules, leaving them dangling after the sandbox was deleted. Each pnpm sandbox now has its ownnode_modulesstructure, pnpm's install-before-run check is off, and links are removed without following them. npm and Yarn layouts linknode_modulesas before.targetfolders are no longer shared,CARGO_TARGET_DIRis always inside the sandbox, and mutants run one at a time because every sandbox builds from scratch.Still shared (documented in the README)
Package contents are links to the real install. Outside pnpm, tool caches such as
node_modules/.viteare shared and npm or Yarn workspace packages imported throughnode_modulesresolve to unmutated originals. In pnpm, a stored dependency that loads a workspace package gets the original.Tests
npm test: 37 of 37 on Windows with Node 24.19;tsc --noEmitclean.node_modulesunchanged), Cargo crates with a plain and a configured target directory (both unchanged, no false timeouts), and a 600-package pnpm layout (no false timeouts).3e080e2. The three later commits (test path fixes, the Cargo fixes, version strings) have not had an independent review.