diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 22:06:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 22:23:50 -0300 |
| commit | 920110be4c597b4b93fc2d38179c09b335186253 (patch) | |
| tree | fb5a3eaebb48b8c52ec0e23540e5065d940995d0 /test/cross_replay.py | |
| parent | 7d10ad68b07a7bbab23fa8565d39183e4387c478 (diff) | |
| download | pardes-920110be4c597b4b93fc2d38179c09b335186253.tar.gz pardes-920110be4c597b4b93fc2d38179c09b335186253.zip | |
words: a session with no frontend of its own is `detached` in the code, one word for what was `headless`, `parked`, `alone_unattended`, `Term.none` and `!attached()` (PARDES.md ruling 1): main.zig's and gui.zig's `headless` (run, runNative, localSession) are `detached`, tui.zig's `Term.none` is `Term.detached`, the window's `Shell.parked` (its Gui kept while detached) is `Shell.detached`, `replica.Peers.alone_unattended` is `Peers.detached`, and the terminal's `Shell.attached()` is `Shell.detached()`, its five callers and `watched` negated to match (a test's Shell with no screen is not detached, as it was attached); the tape's `headless`, a replica core that skips `render` and the host calls inside it (set on every client), is `skips_render`, its replay run named `skips-render` ("replay X: skips-render replica: N digests agree"), and the two that read that line follow (test/tty.zig's other-build replay, test/cross_replay.py); NOT renamed, a different fact: `Core.unattended` (detached AND no client: nobody looks), a watched field on the tape by index; names only, no logic moved; tui core-test 811/950 (139 skipped), shell-test 993/996, behaviour-test 269/273 (the four addon ABI tests the base fails) and the same with --replay, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), replicas pass (checked/wrong 0), daemon.py main passes; gui frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 8 failures)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/cross_replay.py')
| -rw-r--r-- | test/cross_replay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cross_replay.py b/test/cross_replay.py index 21367ca1..fe9638f7 100644 --- a/test/cross_replay.py +++ b/test/cross_replay.py @@ -114,7 +114,7 @@ def record(binary, out): def replay(binary, tape): """`binary`'s replay of `tape`: its replicas' digests agree. A replica client never draws its session's frames, and only the replica that - draws none (`headless`) must agree with another frontend's tape: the + draws none (`skips-render`) must agree with another frontend's tape: the two that draw meet the other build's drawing (a window's, a terminal's).""" env = {k: v for k, v in os.environ.items() if not k.startswith('PARDES_')} env['PARDES_REPLAY'] = str(tape) @@ -122,7 +122,7 @@ def replay(binary, tape): said = got.stderr.decode(errors='replace') alike = ('gui' in Path(tape).name) == ('gui' in Path(binary).name) agreed = [line for line in said.splitlines() if line.endswith('digests agree')] - assert ('headless replica' in ''.join(agreed)) and (not alike or (got.returncode == 0 and len(agreed) == 3)), \ + assert ('skips-render replica' in ''.join(agreed)) and (not alike or (got.returncode == 0 and len(agreed) == 3)), \ f'{binary} replaying {tape}:\n{said[-3000:]}' print(f'cross_replay: {Path(binary).name} replayed {Path(tape).name}: ' + '; '.join(line.split(': ', 1)[1] for line in said.splitlines() if 'replica' in line)) |
