Skip to content

sync(test[vt]): Await wrapped Git errors - #571

Draft
tony wants to merge 1 commit into
fix/568-569-git-tty-color-and-utf8from
test/libvt-wrapped-git-diagnostic
Draft

tony wants to merge 1 commit into
fix/568-569-git-tty-color-and-utf8from
test/libvt-wrapped-git-diagnostic

Conversation

@tony

@tony tony commented Dec 4, 2026

Copy link
Copy Markdown
Member

Stacked on #570.

The loopback Git authentication test displays terminal prompts disabled across two physical rows at 80 columns. A string wait in the published libvt release reaches EOF on that output. libvt logical-line wait fix

Summary

  • Await the real Git authentication diagnostic with a logical-line string wait.
  • Verify physical wrapping and keep the final boxed screen assertion.
  • Pin libvt revision 846afe8f6c8a5ac4658268b4bffad54beca43e22 in the test dependency groups.

Test plan

  • Reproduced the EOF failure with the published release and a deliberate physical-row predicate.
  • Passed all seven VT subprocess tests and all three Syrupy goldens.
  • Passed 941 tests on Python 3.15 and 321 focused tests on Python 3.11.
  • Verified Ruff, vendored signatures, both ty targets, and a wheel with zero runtime requirements.

why: The loopback authentication test sees Git's diagnostic split
     across PTY rows. A physical-row wait misses that diagnostic.

what:
- Pin libvt's logical-line matcher in the Python 3.12+ test groups.
- Await the wrapped diagnostic before checking the final screen golden.

Refs tmux-python/libvt#152
@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 73.88%. Comparing base (85e5c96) to head (ac97bc4).

Additional details and impacted files
@@                          Coverage Diff                           @@
##           fix/568-569-git-tty-color-and-utf8     #571      +/-   ##
======================================================================
+ Coverage                               73.84%   73.88%   +0.03%     
======================================================================
  Files                                      55       55              
  Lines                                   12793    12796       +3     
  Branches                                 1790     1790              
======================================================================
+ Hits                                     9447     9454       +7     
+ Misses                                   2511     2507       -4     
  Partials                                  835      835              

☔ 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.

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