Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 62 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,70 @@ jobs:
- name: JIT throughput smoke (bench_vt.py)
run: uv run python scripts/bench_vt.py --warmup 25 --runs 10

test-ghostty:
runs-on: ubuntu-24.04-arm
permissions:
contents: read
timeout-minutes: 15
env:
ZIG_VERSION: "0.17.1"
ZIG_SHA256: "a1546d5646eb184437918d6635ca6b762a0e889eac09cef720ee7a1ed3fe7795"
GHOSTTY_VT_VERSION: "1.0.2"
GHOSTTY_VT_SHA256: "1dcafa8a3357f3a6bbf4f2696e61de611400c5469518716793dfffd35f008b3e"
GHOSTTY_VT_DEPS_SHA256: "c56156dbea82fdf71f13bf0d704cdf4393b6a04208d7f9691e0d7f60c7f9ca4d"
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10.2.0
with:
version-file: .tool-versions
enable-cache: true
- uses: actions/setup-python@v7
with:
python-version: "3.14"
- name: Install testing dependencies
run: uv sync --group testing
- name: Cache compiled libghostty-vt
id: cache-ghostty
uses: actions/cache@v6
with:
path: ~/.cache/libghostty-vt
key: libghostty-vt-${{ runner.os }}-${{ runner.arch }}-${{ env.GHOSTTY_VT_VERSION }}-${{ env.GHOSTTY_VT_SHA256 }}-${{ env.GHOSTTY_VT_DEPS_SHA256 }}-${{ env.ZIG_VERSION }}-${{ env.ZIG_SHA256 }}-baseline
- name: Build pinned libghostty-vt 1.0.2
if: steps.cache-ghostty.outputs.cache-hit != 'true'
shell: bash
run: |
set -euo pipefail
work="$(mktemp -d)"
trap 'rm -rf "$work"' EXIT
curl -fsSL "https://ziglang.org/download/${ZIG_VERSION}/zig-aarch64-linux-${ZIG_VERSION}.tar.xz" -o "$work/zig.tar.xz"
echo "${ZIG_SHA256} $work/zig.tar.xz" | sha256sum -c -
tar -xf "$work/zig.tar.xz" -C "$work"
zig_bin="$work/zig-aarch64-linux-${ZIG_VERSION}/zig"
"$zig_bin" version
curl -fsSL "https://release.files.ghostty.org/libghostty-vt/${GHOSTTY_VT_VERSION}/libghostty-vt-${GHOSTTY_VT_VERSION}.tar.gz" -o "$work/src.tar.gz"
curl -fsSL "https://release.files.ghostty.org/libghostty-vt/${GHOSTTY_VT_VERSION}/libghostty-vt-${GHOSTTY_VT_VERSION}-deps.tar.gz" -o "$work/deps.tar.gz"
echo "${GHOSTTY_VT_SHA256} $work/src.tar.gz" | sha256sum -c -
echo "${GHOSTTY_VT_DEPS_SHA256} $work/deps.tar.gz" | sha256sum -c -
mkdir -p "$work/src" "$work/deps" "$work/zig-cache" "$HOME/.cache/libghostty-vt"
tar -xzf "$work/src.tar.gz" --strip-components=1 -C "$work/src"
tar -xzf "$work/deps.tar.gz" --strip-components=1 -C "$work/deps"
(
cd "$work/src"
ZIG_GLOBAL_CACHE_DIR="$work/zig-cache" "$zig_bin" build -Demit-lib-vt -Doptimize=ReleaseFast -Dcpu=baseline --system "$work/deps" --prefix "$HOME/.cache/libghostty-vt"
)
- name: Run compiled libghostty-vt differential suite
shell: bash
run: |
set -euo pipefail
lib_path="$(readlink -e "$HOME/.cache/libghostty-vt/lib/libghostty-vt.so")"
echo "Zig pin: ${ZIG_VERSION} (${ZIG_SHA256})"
echo "libghostty-vt pin: ${GHOSTTY_VT_VERSION} (${GHOSTTY_VT_SHA256})"
echo "Resolved library: ${lib_path}"
LIBGHOSTTY_VT_PATH="$lib_path" uv run pytest -m ghostty -v tests/test_differential_ghostty.py

release:
runs-on: ubuntu-latest
needs: [test, test-macos, test-windows, test-pypy]
needs: [test, test-macos, test-windows, test-pypy, test-ghostty]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
timeout-minutes: 10
permissions:
Expand Down
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ Deleting an attribute on {class}`~libvt.snapshot.Snapshot` now raises

### Documentation

#### Per-profile control-function conformance matrix (#12)

{ref}`project-conformance` maps every control function and mode in
{mod}`libvt.codec` and {mod}`libvt.modes` across host profiles, guarded by a
CI drift check and backed by a recorded `.jsonl` differential corpus verified
against compiled `libghostty-vt` (`LIBGHOSTTY_VT_PATH`).

#### Play and replay The Last Beacon (#140)

The {ref}`game walkthrough <topics-interactive-game>` drives a playable
Expand Down
181 changes: 181 additions & 0 deletions docs/project/conformance.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/project/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ Public boundaries, stability policy, and deprecation process.
Python runtime and platform support.
:::

:::{grid-item-card} Conformance
:link: conformance
:link-type: doc
Per-profile control-function and mode conformance matrix.
:::

:::{grid-item-card} Deprecations
:link: deprecations
:link-type: doc
Expand All @@ -74,6 +80,7 @@ benchmark
adr/index
public-api
compatibility
conformance
deprecations
```

Expand Down
Loading
Loading