summaryrefslogtreecommitdiff
path: root/test/daemon.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 02:59:43 -0300
committerGabriel Schneider <[email protected]>2026-11-23 03:37:59 -0300
commitaac453a5bf4730405cdeac4b42bffbcd24d73947 (patch)
tree88a006bdce13994e754c04023874f105c8af50f7 /test/daemon.py
parent961e4cc938615de45294c78d42792706376c577e (diff)
downloadpardes-aac453a5bf4730405cdeac4b42bffbcd24d73947.tar.gz
pardes-aac453a5bf4730405cdeac4b42bffbcd24d73947.zip
test/daemon.py `upgrades`: the row's last Exit by `exit_session`, and the fresh start's shell check says what it saw: the dump-digest gate's one-CPU upgrade rows (30 runs on its own builds, every run past the rejoin that fault D failed) failed twice at steps with no join in them: self-9 at the row's end, its Exit written by a bare `client.write`, answered, and its clunk cut by the exit it asked (EOFError: 9P peer closed the connection), the race `exit_session` (test/daemon.py:209) already takes for every other mode's Exit; back-16 at `assert alive(shell_pid) and ppid(shell_pid) == session` after an Upgrade every build refuses (a fresh session adopting the shell), a bare assertion: its kept evidence (kept/upgrade-20261123-024622-1894745) has the shell alive and listed as the session's afterwards, but not which half was false at the moment; now that assertion names the shell, its parent (false when not alive) and the session; on this tree (the same builds) the one-CPU rows: ReleaseSafe to Debug 20 of 20, Debug to ReleaseSafe 10 of 10 (loads 0.6-8.1)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/daemon.py')
-rw-r--r--test/daemon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/daemon.py b/test/daemon.py
index d1406ae1..6e7bad3f 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -3580,7 +3580,7 @@ def upgrades(old, new):
# upgrade of one pid is `upgrade-<pid>-2`).
kept = client.read('/dumps').decode()
assert any(line.split()[0].startswith(f'upgrade-{session}') for line in kept.splitlines()), kept
- assert alive(shell_pid) and ppid(shell_pid) == session
+ assert alive(shell_pid) and ppid(shell_pid) == session, ('the shell under the fresh session', shell_pid, alive(shell_pid) and ppid(shell_pid), session)
pids = {p: run(client, p, b'echo $$\n') for p in terminals(client)}
adopted = [p for p, out in pids.items() if out.split(b'\n')[1:2] == [str(shell_pid).encode()]]
assert adopted, ('the shell is a pane of the fresh session', shell_pid, pids, client.read('/index'))
@@ -3622,7 +3622,7 @@ def upgrades(old, new):
pid, said = adopted_pid(client, pane)
assert pid == str(shell_pid).encode(), (said, shell_pid)
print(f'upgrade: the upgraded daemon kept shell {shell_pid} through kill -9 of its session, and it was adopted')
- client.write(f'/pane/{pane}/exec', b'Exit\n')
+ exit_session(client, pane)
stub.wait(timeout=10)
client.socket.close()
term.close()