From 7dbcaa13cc3bebd5470ce1ac3f5e112357564063 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 23 Nov 2026 09:37:41 -0300 Subject: upgrade: the test that an Upgrade's outcome is said in every view: runtime/upgrade.zig:449 (`load`'s end) set "Upgrade: now ..." or "... it goes on as ..." at `p.view().active`, the live view at the dump, the one whose input came last before the Upgrade's step, not the one that asked (the pair round's `--with-pair --upgrade` ReleaseSafe to Debug 1 of 3: the message on pane 5, a pane of client f's view, which the session's /screen does not show); the unit test (two views, the second's keyboard on a New pane of its own and its input last, dumped and loaded as an upgrade loads it: each view's pane at its keyboard must say "Upgrade: now pardes ") fails at upgrade.zig:493 (logs/t7-upgrade-unfixed.log); and test/daemon.py's refused-upgrade row (two replica clients, the Upgrade written over 9P to the shell's pane) now waits for each client's own screen to say "Upgrade: the new build" Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/daemon.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/daemon.py b/test/daemon.py index dc1abcbc..b240b887 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -3561,6 +3561,9 @@ def upgrades(old, new): raise TimeoutError(f'the client joined again: not {[c.stem for _, c in owners if c not in joined]} ' f'{time.monotonic() - t0:.1f} s after the Upgrade, the session back at {back:.1f} s') from None assert again.poll() is None and again5.poll() is None + # The session's news: each client's own screen says it, not only + # the view whose input came last before the Upgrade's step. + wait_for("each client's own screen saying the Upgrade's outcome", lambda: all(b'Upgrade: the new build' in t.text() for t, _ in owners), timeout=15) for (t, check), pane, theirs in zip(owners, mine, reversed(mine)): in_own_view('its own view again', lambda: made_live(t, check), client, pane, theirs) for c, t in ((again, term4), (again5, term5)): -- cgit v1.3 From 3ea7524ba026f03052e8861c9d4cb18eed8102cb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 23 Nov 2026 10:04:38 -0300 Subject: test/daemon.py: the refused-upgrade row's new check reads the outcome's end, `it goes on as`, where it read its head: a message longer than its pane shows its end (each client's screen in the kept evidence: "...ssion (refused by PARDES_TEST_UPGRADE_REFUSE); it goes on as pardes 0.24 (e22d77e95959)"), so `Upgrade: the new build` never reached a client's bytes and the row failed at the check of `ulztktwm` (3 of 3 `--upgrade` from the installed build, its session's log saying the outcome on every view's pane: `msg 3`, `msg 4`, `msg 5`); a change of its own on top, since the coordinator's integrations already stand on `ulztktwm` Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/daemon.py b/test/daemon.py index b240b887..c96425c2 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -3561,9 +3561,10 @@ def upgrades(old, new): raise TimeoutError(f'the client joined again: not {[c.stem for _, c in owners if c not in joined]} ' f'{time.monotonic() - t0:.1f} s after the Upgrade, the session back at {back:.1f} s') from None assert again.poll() is None and again5.poll() is None - # The session's news: each client's own screen says it, not only - # the view whose input came last before the Upgrade's step. - wait_for("each client's own screen saying the Upgrade's outcome", lambda: all(b'Upgrade: the new build' in t.text() for t, _ in owners), timeout=15) + # The session's news: each client's own screen says it (a long + # message shows its end), not only the view whose input came + # last before the Upgrade's step. + wait_for("each client's own screen saying the Upgrade's outcome", lambda: all(b'it goes on as' in t.text() for t, _ in owners), timeout=15) for (t, check), pane, theirs in zip(owners, mine, reversed(mine)): in_own_view('its own view again', lambda: made_live(t, check), client, pane, theirs) for c, t in ((again, term4), (again5, term5)): -- cgit v1.3