summaryrefslogtreecommitdiff
path: root/test/soak.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 19:38:27 -0300
committerGabriel Schneider <[email protected]>2026-10-30 19:38:27 -0300
commit725e6d4abec56f41688bfb979fbe3b1eadad4729 (patch)
treef99204b5945fd2ddf0a5bfae135eba57ab76a7f9 /test/soak.py
parenta50c7a6ebe1f877ed4bcda71d6843ffd8a1eba2d (diff)
downloadpardes-725e6d4abec56f41688bfb979fbe3b1eadad4729.tar.gz
pardes-725e6d4abec56f41688bfb979fbe3b1eadad4729.zip
test/soak.py: a pane that left a client's view says whether the client joined again since (its view new, the known gap) or not, with its /index row; the check compares serials (/layout's and /index's), never slots
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/soak.py')
-rw-r--r--test/soak.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/soak.py b/test/soak.py
index 191408b0..b30254a1 100644
--- a/test/soak.py
+++ b/test/soak.py
@@ -1129,14 +1129,20 @@ def panes_check(run, c):
w = line.split()
if len(w) > 6 and w[0].isdigit():
shown |= {int(x) for x in w[6:] if x.isdigit()}
+ # Serials both (/layout's pane fields and /index's first are pane serials,
+ # never reused): a pane closed and another opened in its slot is no loss.
before = getattr(c, 'shown', None)
+ links_before = getattr(c, 'links_seen', 0)
c.shown = shown
+ c.links_seen = len(c.links())
if before is None:
return
lost = (before - shown) & exist
if lost:
c.lost = getattr(c, 'lost', 0) + len(lost)
- run.breach(f'{c.label}: panes {sorted(lost)} left its view while still open (links {len(c.links())})')
+ rows = [r.decode(errors='replace') for r in index.splitlines() if r.split() and r.split()[0].isdigit() and int(r.split()[0]) in lost]
+ why = 'after a rejoin (its view is new: the known gap)' if c.links_seen > links_before else 'with no rejoin since the last quiet point'
+ run.breach(f'{c.label}: panes {sorted(lost)} left its view while still open, {why}: {rows}')
def view_check(run, c):