A failure a property test once found is kept as a seed and replayed on every run: that is what makes a fixed bug stay fixed. Proptest finds the seed file from the test's source path and says nothing when the file is not there, so a seed file left behind by a moved test is never read again, silently. Four findings, one cause: - The kernel bridge's three recorded failures (the constructive split with a short remainder, and two cash-application cases) sat in tests/kernel_bridge.proptest-regressions. Since0cf013b57the bridge is a folder (tests/kernel_bridge/main.rs), and a folder test reads tests/proptest-regressions/main.txt. The three had not been replayed since. Moved there. - K-U8 found a control-total case (a sum that touches Decimal's top, f = [0, -1, -79228162514264337593543950335, 0, 5]) and the seed was never checked in; it lay untracked in the unit's worktree. Added as tests/proptest-regressions/control.txt, where control.rs reads it. - ledger-mcp's proptest-regressions/local_files.txt recorded failures of a module removed inb26c099a6(files reach the books as uploads by hash now). No test can read it. Removed. - Nothing checked any of this. tests/seed_files.rs walks every crate and fails when a seed file has no property test that reads it. How the reading rule was established, not assumed: a marker line in each candidate file, and proptest's "unparsable line" warning names the file it really opens. With the seeds back, the bridge passes whole (101 tests), so nothing had regressed behind the gap. The guard was red before the move (it named both orphans) and is green after: 21 seed files, each read by a property test. Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
426 B
Plaintext
8 lines
426 B
Plaintext
# Seeds for failure cases proptest has generated in the past. It is
|
|
# automatically read and these particular cases re-run before any
|
|
# novel cases are generated.
|
|
#
|
|
# It is recommended to check this file in to source control so that
|
|
# everyone who runs the test benefits from these saved cases.
|
|
cc b1079b286c6681eec98a5c98aff17569e47cb183b7799aa7bb8b04eae4a138b1 # shrinks to f = [0, -1, -79228162514264337593543950335, 0, 5]
|