From 4562c2864ade6051206b2aa88e35f472729d06e0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 07:35:27 -0300 Subject: test: daemon.py's by_hash waits up to 60 s for each 9P reply, not ninep.py's 5 s: the 17 MiB file's Look under two clients took 1.6-6.6 s in a Debug build at a load of 35 (measured in 5 --far runs), and a reply after the 5 s was read as the next one's ('invalid 9P reply header' in 2 of 3 plain runs) 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 e68cc6ae..59a9c7d1 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -1275,7 +1275,10 @@ def by_hash(binary): started.append(sess.pid) wait_for('the replica socket', (root / 'pardes-replica.sock').exists) wait_for('the session\'s 9P socket', (root / 'pardes-9p-files.sock').exists) - nine = Client(root / 'pardes-9p-files.sock') + # Each reply waited for as long as the opens it answers take: the + # 17 MiB file's Look took 1.6-6.6 s in a Debug build at a load of + # 35 (ninep.py's 5 s is a reply's whole wait). + nine = Client(root / 'pardes-9p-files.sock', timeout=60) pane = next(int(row.split()[0]) for row in nine.read('/index').splitlines() if row.split()[1] == b'text') (ta, a), (tf, f) = client('a', False), client('f', True) seen = {n: len(checks(root / f'{n}.check')) for n in 'af'} -- cgit v1.3