reprocheck

v0.2.0
io.github.CloudCorpRecords/reprocheck Checked 1 day ago Published 1 month ago

Red-first repro verifier: a fix counts only when the repro fails on the base and passes on the fix.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_repro_check

Verify a fix the honest way: run the same repro in clean git worktrees of the base ref and the head ref. VERIFIED only when it fails on the base and passes on the head. NOT-REPRODUCED when it passes on the base too, STILL-FAILING when it fails on both, BROKEN-BY-HEAD when the change introduced the failure, ERROR when a run could not complete. Give either a raw command, or a native runner (pytest, go, or auto) with an optional testFile and testName, and reprocheck builds the real pytest or go test command itself. An uncommitted repro or regression test file can be copied into both worktrees wit…

ParameterTypeDescription
baseRef *stringBase ref (the code before the fix), e.g. main or a commit SHA
headRef *stringHead ref (the code with the fix), e.g. HEAD or a branch
repoPath *stringPath to a local git repository
commandstringThe raw repro command to run in both worktrees, e.g. npm test. Omit when runner is given
runnerstringNative test runner to use instead of a raw command: pytest, go, or auto (detect from the repo)
setupCommandstringOptional setup command run in each worktree first, e.g. npm install
testFilestringRepo-relative path of an uncommitted repro/test file in the working tree to copy into both worktrees
testNamestringA single named test for a native runner, e.g. test_add for pytest or TestAdd for go test
timeoutSecondsnumberPer-command timeout in seconds, default 300

detect_test_runners

Detect which native test runners a local repository supports (pytest and/or go test), with the filesystem evidence for each and the test files found. Runs no code from the target repository.

ParameterTypeDescription
repoPath *stringPath to a local repository or directory