From b6644ee7091ed1ba19b8e696a83f562c2686c805 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 21 Nov 2026 15:36:47 -0300 Subject: replica: daemon.py plain from 2 of 3 failing on Debug ("the first terminal drawn", the first of two attach clients never shown the shell's last line) to 10 of 10: a client's acknowledgement of a terminal's delta is followed by a flush to it (core/replica.zig `Peers.boundary`, the `.screen` arm: the boundary flushed at its unit and then took the clients' notes, so room an acknowledgement freed in a client's flight, 32 versions at most, sent nothing, and a client at that bound when the last output came kept an old screen until something else stepped; a user could hit it: the last lines of a fast output left unshown on a slow client); and the joiner takes the session's view only for a pair's first join (`Joining.own`) or the first back after a Restore (`Peers.restored`, set by `restoring`; the restored core has the one view), a detached session's attach opening a view of its own again as before `slxkptto` (the coordinator's lean: the wider rule was NOT (A)'s cause, which failed with the narrow rule alone 2 of 3); test/daemon.py `far` waits for the refusal's words through ssh instead of reading the Term the moment the client is gone; core-test 895/1055 (160 skipped), shell-test 1097/1100 (3 skipped) (+1 each: "a detached session's first attach opens a view of its own beside the session's; the first back after a Restore takes the session's"); process-test as a pair 0 of 145 (load 13), own path 0 of 145; plain on Debug 10 of 10 (loads 3-6), on ReleaseSafe 4 of 6, both failures answer_late's adopted `echo $$`, which pardes-rows' `adopted_pid` (ymvuluxr, not in this base) fixes Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/daemon.py') diff --git a/test/daemon.py b/test/daemon.py index 5c075520..23189578 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -2035,7 +2035,10 @@ def far(binary): time.sleep(.3) os.write(ts.master, b' sD') wait_for(f'the client through ssh ends ({name})', lambda: sc.poll() is not None, timeout=30) - assert name == 'files' or b"no session called 'nobody'" in ts.text(), ts.text()[-300:] + # Its words are read off its terminal by a thread of the Term's: + # the process can be gone before they are in `text()`. + if name == 'nobody': + wait_for('the refusal said through ssh', lambda: b"no session called 'nobody'" in ts.text(), timeout=5) wait_for(f'its ssh and socket gone ({name})', lambda: not forwarded(), timeout=10) body = texts() for words in (b'from-A', b'from-B', b'again-A', b'from-C', b'from-D', b'from-E', b'from-F'): -- cgit v1.3