From 725e6d4abec56f41688bfb979fbe3b1eadad4729 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 19:38:27 -0300 Subject: 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 --- test/soak.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') 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): -- cgit v1.3