Report: reproduction info (seed/size/index) and replay of a single case #7

Closed
opened 2026-09-13 21:24:22 +09:00 by natsukium · 1 comment
Owner

Missing

Enough information in a failing Report to reproduce the case, and a way to re-run exactly that case.

Why

failure carries original / shrunk / shrinkSteps but not the seed, size or index that produced it. A counterexample seen in CI cannot be replayed locally without re-running the whole suite with the same seed and hoping it is deterministic. Hedgehog has recheck size seed, fast-check reports { seed, path }, Hypothesis has @reproduce_failure.

Suggested shape

  • failure gains seed, size, index (position in the run).
  • check { replay = { seed; size; }; } (or recheck) runs the single case and shrinks it.
  • Falls out of the loop refactor planned for #1: once cases opts gen yields { tree; size; index; } the runner only has to keep them.
## Missing Enough information in a failing `Report` to reproduce the case, and a way to re-run exactly that case. ## Why `failure` carries `original` / `shrunk` / `shrinkSteps` but not the seed, size or index that produced it. A counterexample seen in CI cannot be replayed locally without re-running the whole suite with the same seed and hoping it is deterministic. Hedgehog has `recheck size seed`, fast-check reports `{ seed, path }`, Hypothesis has `@reproduce_failure`. ## Suggested shape - `failure` gains `seed`, `size`, `index` (position in the run). - `check { replay = { seed; size; }; }` (or `recheck`) runs the single case and shrinks it. - Falls out of the loop refactor planned for #1: once `cases opts gen` yields `{ tree; size; index; }` the runner only has to keep them.
Author
Owner

Implemented in 1ef73bd, pushed to main.

Implemented in 1ef73bd, pushed to main.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
natsukium/nixcheck#7
No description provided.