Skip to content

cli(test[vt]): Select terminal snapshot updates - #611

Draft
tony wants to merge 2 commits into
test/595-libvt-cli-snapshotsfrom
test/libvt-filtered-cli-goldens
Draft

tony wants to merge 2 commits into
test/595-libvt-cli-snapshotsfrom
test/libvt-filtered-cli-goldens

Conversation

@tony

@tony tony commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Stacked on #604.

The released libvt adapter resolves snapshot after collection, so the syrupy_snapshot marker selected the ordinary cases and skipped all 41 terminal cases. libvt fixture registration fix

Summary

  • Pin libvt revision 3de1c6b440209901dffa6cdbd11740a791bad44c in the test dependency groups.
  • Document checking and refreshing both kinds of goldens through just test.
  • Give the watchdog fixture's fast clone time to complete and refresh its affected goldens.

Test plan

  • Reproduced marker deselection on the base and restored a deliberately stale CLI golden with the pinned adapter.
  • Reproduced both clone timeouts on the untouched base and verified a single timeout with the adjusted fixture.
  • Passed all 54 selected tests and 71 goldens in the mixed Syrupy run.
  • Passed 2,117 tests and 88 goldens in the full Python 3.15 suite.
  • Verified Python 3.11 collection, both ty targets, Ruff, and the runtime wheel smoke test.

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.87%. Comparing base (805f002) to head (99228d8).

Additional details and impacted files
@@                      Coverage Diff                      @@
##           test/595-libvt-cli-snapshots     #611   +/-   ##
=============================================================
  Coverage                         85.87%   85.87%           
=============================================================
  Files                                39       39           
  Lines                              8059     8059           
  Branches                           1652     1652           
=============================================================
  Hits                               6921     6921           
  Misses                              749      749           
  Partials                            389      389           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony
tony force-pushed the test/libvt-filtered-cli-goldens branch from 3349352 to ffa7648 Compare December 5, 2026 14:46
@tony
tony force-pushed the test/595-libvt-cli-snapshots branch from afef293 to d50dc75 Compare December 5, 2026 15:23
@tony
tony force-pushed the test/libvt-filtered-cli-goldens branch 2 times, most recently from 39d6797 to 36e7bdf Compare December 5, 2026 15:29
@tony
tony force-pushed the test/595-libvt-cli-snapshots branch from 65363b3 to 33433db Compare December 6, 2026 02:12
@tony
tony force-pushed the test/libvt-filtered-cli-goldens branch from 36e7bdf to 8d34c50 Compare December 6, 2026 02:13
tony added 2 commits December 5, 2026 20:26
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189
why: Both repositories reached the test's one-second watchdog under
     load, preventing the snapshot from observing a single timeout.

what:
- Give the real fast clone five seconds under the CLI watchdog.
- Keep the slow Git shim blocked past the watchdog and refresh the
  two affected Syrupy goldens.
@tony
tony force-pushed the test/libvt-filtered-cli-goldens branch from 8d34c50 to 99228d8 Compare December 6, 2026 02:26

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant