Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

tests(feat[ghostty]): Add differential corpus - #215

Merged
tony merged 1 commit into
masterfrom
feat/12-ghostty-corpus
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
feat/12-ghostty-corpus

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Expand libghostty-vt differential verification into a recorded .jsonl corpus with a pinned CI job and a CI-checked per-profile control-function conformance matrix.

Changes

  • Commit 33 recorded .jsonl traces (tmux_popup_lifecycle, nvim_edit_scroll_exit, resize_mid_sync_wide, and core_sessions) verified for chunk-boundary prefix determinism in the default test suite and for full whole-feed and 1-byte split parity (lines, soft wraps, per-cell styles and BCE backgrounds, scrollback row counts, cursor, pending wrap, alternate screen, ground state, and replies) against compiled libghostty-vt 1.0.2.
  • Make load_optional_ghostty_vt() raise FileNotFoundError when LIBGHOSTTY_VT_PATH points to a missing path while still skipping when unset, and enforce strict JSONL schema validation with negative unit tests.
  • Add a pinned, cached ubuntu-24.04-arm test-ghostty job (SHA-256 verified Zig 0.17.1 -Dcpu=baseline and libghostty-vt 1.0.2 source/deps tarballs) in .github/workflows/tests.yml.
  • Add docs/project/conformance.md (linked from docs/project/index.md) mapping every control function and mode in libvt.codec and libvt.modes across all host profiles, guarded by a strict Markdown table drift check in tests/test_codec.py, plus a CHANGES entry.

Fixes #12

why: Default-profile differential checks against compiled libghostty-vt
covered only three inline traces in whole-feed mode, silently skipped
when LIBGHOSTTY_VT_PATH pointed to a missing binary, and lacked a
ci-checked per-profile conformance matrix.

what:
- Commit recorded .jsonl traces (tmux_popup_lifecycle,
  nvim_edit_scroll_exit, resize_mid_sync_wide, and core_sessions) and
  verify lines, wraps, per-cell styles/BCE, scrollback, cursor, and
  replies against libghostty-vt 1.0.2 in whole and 1-byte split modes.
- Make load_optional_ghostty_vt() raise FileNotFoundError when
  LIBGHOSTTY_VT_PATH points to a missing path while skipping when unset,
  and validate JSONL headers, bounds, and checkpoints strictly.
- Add a pinned, cached ubuntu-24.04-arm test-ghostty CI job (Zig 0.17.1
  -Dcpu=baseline and libghostty-vt 1.0.2 SHA-256 pins) in
  .github/workflows/tests.yml.
- Add docs/project/conformance.md across all host profiles, a strict
  per-section table drift check in tests/test_codec.py, and a CHANGES
  entry.

Fixes #12
@tony
tony merged commit 288041c into master Dec 5, 2026
10 checks passed
@tony
tony deleted the feat/12-ghostty-corpus branch December 5, 2026 20:18
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

1 active deployment
docs — 7b75313b Deployed Dec 5, 2026 by tony via build (3.14) #537
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.

Add ctypes differential corpus suite against libghostty-vt 1.0

1 participant