summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 03:27:51 -0300
committerGabriel Schneider <[email protected]>2026-11-20 03:27:51 -0300
commit6905c00e44c781741c37ca28fd68b96112eb71f4 (patch)
tree89691be9bb8e53c6a6e257f4356d0a3e43888576 /test
parent11f55f018a5eb0699d58627a4f2ea39c2b7f5e89 (diff)
downloadpardes-6905c00e44c781741c37ca28fd68b96112eb71f4.tar.gz
pardes-6905c00e44c781741c37ca28fd68b96112eb71f4.zip
test/daemon.py: a session told to Exit is given 60 s to end, not 10: its last act is the dump into the state database, whose fsync waits on the disk (the session's main thread in fsync under Db.putDump <- host_io.writeDump <- the write_dump effect, state D: the stack taken by gdb at two slow exits, 10.7 s and 20.4 s, on a disk six builders were writing; reorg/far27/loop-45.log); the wait is the durability the dump is for, not a hang: alone the exit takes 0.0 to 0.2 s (6 of 6), and --far failed at this wait once in the coordinator's gate of pardes-merge27 and 2 times in 49 in a loop under load, at the end of far and of by_hash; the six waits follow; no product change
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test')
-rw-r--r--test/daemon.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/daemon.py b/test/daemon.py
index e600beb7..6ae74c01 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -507,7 +507,7 @@ def clients(binary):
f'one killed, the other typed on and detached; a third typed into a shell, agreed '
f'{len(checks(root / "c.check"))} times, and was hung up')
exit_session(nine, pane)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
wait_for('nothing left', lambda: not [p for p in processes(root) if alive(p)], timeout=10)
print('daemon: replica clients\' session ended, nothing left behind')
@@ -704,7 +704,7 @@ def pdf_window(binary, gui_binary):
print(f'daemon: a PDF in a detached session, a window client\'s wheel over it: the session at page {page()}, '
f'the window\'s digest the session\'s {len(checks(check))} times')
exit_session(nine, pdf)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
finally:
for pid in started:
@@ -850,7 +850,7 @@ def window_clients(binary, gui_binary):
f'{agreements} and {len(checks(root / "a.check"))} times; one put off the session\'s state joined again, '
f'joined again across an Upgrade, agreed {len(checks(dcheck))} times and detached (far: its joins {joins(root / "wd.stats")})')
exit_session(nine, pane)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
# A window's session (its daemon on, as a desktop's is), served to a
# terminal's client and a window's, the window typing as they do.
@@ -1086,7 +1086,7 @@ def far(binary):
b_joins[1]['blobs'], c_join['from_disk'], c_join['blobs'], d_join['sent_kb'],
sum(len(checks(root / f'{n}.check')) for n in 'abcdef')))
exit_session(nine, pane)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
wait_for('nothing left', lambda: not [p for p in processes(root) if alive(p)], timeout=10)
finally:
@@ -1169,7 +1169,7 @@ def by_hash(binary):
os.write(t.master, b' sD')
wait_for('a client let go', lambda: c.poll() is not None, timeout=20)
exit_session(nine, pane)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
finally:
for t in terms:
@@ -1282,7 +1282,7 @@ def games(binary, libs, secs=10):
f'{got["c"]["foreign"]} (the third typing text), every digest agreed; a kind whose tick reads the clock was caught and its '
f'client joined again once')
exit_session(nine, text)
- sess.wait(timeout=10)
+ sess.wait(timeout=60)
nine.socket.close()
finally:
for t in terms: