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.

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (fix/568-569-git-tty-color-and-utf8@03b0682). Learn more about missing BASE report.

Additional details and impacted files
@@                          Coverage Diff                          @@
##             fix/568-569-git-tty-color-and-utf8     #571   +/-   ##
=====================================================================
  Coverage                                      ?   73.82%           
=====================================================================
  Files                                         ?       55           
  Lines                                         ?    12810           
  Branches                                      ?     1794           
=====================================================================
  Hits                                          ?     9457           
  Misses                                        ?     2514           
  Partials                                      ?      839           

☔ 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-wrapped-git-diagnostic branch from ac97bc4 to 908745e Compare December 5, 2026 14:44
why: The loopback authentication test sees Git's diagnostic split
     across PTY rows. A physical-row wait misses that diagnostic.

what:
- Await the wrapped diagnostic via libvt's logical-line wait_for()
  matcher and verify it spans physical rows before checking the final
  screen golden.
- Replace manual row-unwrapping loop with snap.unwrapped_text.

Refs libvt/libvt-python#152
@tony
tony force-pushed the test/libvt-wrapped-git-diagnostic branch from 908745e to 490ac91 Compare December 6, 2026 02:21

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