diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 21:47:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 22:27:25 -0300 |
| commit | 86414697b09897bdd5091037a4709748cecbc3bf (patch) | |
| tree | 553ef412485ef03c330a11bd152d617da7ffcda6 /test | |
| parent | 0593b639b584e272518562e587f2a02cdfad8f5a (diff) | |
| download | pardes-86414697b09897bdd5091037a4709748cecbc3bf.tar.gz pardes-86414697b09897bdd5091037a4709748cecbc3bf.zip | |
daemon.py: pair_rows' last row says which side went when "a Detach with no daemon is refused" fails (the client, the session, or both; the client's exit code; whether the session lives; the client terminal's last 600 bytes, its last screen and words: a pair's session writes no log), as merge58's ReleaseSafe plain run 2 of 3 failed there saying nothing; not reproduced as it is (this tree's ReleaseSafe, pair_rows alone: 20 of 20 pinned to two CPUs, 20 of 20 to one); widened by an experiment (the lone pair's client put off the session after its third unit, PARDES_TEST_DIVERGE=3) it fails with those words and now says "the client and the session went (client exit 1, session gone)", the client's last words "'lone' let this client go", its screen showing the Detach refused just before: the Detach is refused as it should be, and what ends the editor is the client letting its link go (a divergence, or 2 s behind) and its rejoin through the daemon's replica socket failing (no daemon keeps a PARDES_DAEMON=off pair), then the session ending with its last link (runtime/session.zig): the product's, open (a ruling: a link with no way back kept through a lag; a divergence there has no remedy without a re-dump over the same link)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test')
| -rw-r--r-- | test/daemon.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py index 9e0047e5..1c86e5ad 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -925,7 +925,11 @@ def pair_rows(binary): t, c, nine, session, pane = started('lone', dict(env, PARDES_DAEMON='off')) typed_detach(t, nine, pane) time.sleep(1) - assert c.poll() is None and alive(session), 'a Detach with no daemon is refused' + # Which went, if one did: the client's exit and its screen's last + # words, the session's life (its stderr is /dev/null: no log). + went = [w for w, gone in (('the client', c.poll() is not None), ('the session', not alive(session))) if gone] + assert not went, (f'a Detach with no daemon is refused: {" and ".join(went)} went (client exit {c.poll()}, ' + f'session {"alive" if alive(session) else "gone"}); the terminal\'s last bytes: {t.text()[-600:]!r}') nine.socket.close() t.close() terms.remove(t) |
