Repository navigation
testing(feat[replay]): Replay failed pytest runs - #139
Merged
Merged
Conversation
5 of 6 tasks
tony
force-pushed
the
concept/pytest-replay
branch
from
December 1, 2026 03:31
f47da1d to
7dda244
Compare
This was referenced Dec 3, 2026
tony
force-pushed
the
concept/pytest-replay
branch
from
December 3, 2026 02:54
7dda244 to
07463a6
Compare
tony
force-pushed
the
concept/pytest-replay
branch
from
December 3, 2026 23:58
07463a6 to
54321df
Compare
This was referenced Dec 4, 2026
tony
force-pushed
the
concept/pytest-replay
branch
from
December 5, 2026 14:53
54321df to
fcbc53b
Compare
tony
force-pushed
the
concept/pytest-replay
branch
from
December 5, 2026 15:06
fcbc53b to
eaba00e
Compare
tony
force-pushed
the
concept/pytest-replay
branch
from
December 5, 2026 15:33
eaba00e to
8ef451d
Compare
why: Visually identical screen boxes can hide trailing spaces or out-of-bounds expected rows, and flight-recorder byte tails alone omit external resizes, worker-thread assertion frames, and initial encoding needed to reproduce failing pytest runs offline. what: - Add opt-in --vt-replay-dir capture in libvt.pytest_plugin using lock-protected _ReplayCapture on TerminalRecorder, thread-safe mismatch observers for assert_screen/assert_screen_box (including worker threads), invocation-dir path anchoring, and item.stash cleanup after call/teardown. - Add python -m libvt replay CLI with strict artifact schema/hex validation, whole-feed and --chunk-size playback, and stdin support. - Report exact first differing row/column or cursor mismatch in libvt.testing.assert_screen with legacy ?2027l CLUSTER_NONE fidelity. - Add examples/replay_prompt.py (packaged via sdist), unit/PTY/CLI and schema tests, docs/topics/testing.md, README.md, and CHANGES entries. Fixes #136 Fixes #127 Fixes #117
tony
marked this pull request as ready for review
December 5, 2026 17:46
tony
force-pushed
the
concept/pytest-replay
branch
from
December 5, 2026 17:46
8ef451d to
f180c75
Compare
35 of 38 tasks
This branch was successfully deployed
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.
Add opt-in
--vt-replay-dirfailure capture tolibvt.pytest_plugin, offlinepython -m libvt replayverification (including--chunk-size 1and stdin), and exact cell-difference reporting inlibvt.testing.assert_screen.TerminalRecorderwithout test-only state onScreenorSnapshot.assert_screen_box, releasesitem.stashafter call/teardown, and anchors relative--vt-replay-dirpaths to pytest invocation directory acrosschdir.?2027lsegmentation (CLUSTER_NONE), wide-wrapSPACER_HEAD, BCE blanks, and open?2026held frames.examples/replay_prompt.py(packaged via sdist), tests intests/test_testing.py/tests/test_codec.py, and docs indocs/topics/testing.md,README.md, andCHANGES.Fixes #136
Fixes #127
Fixes #117