browser checks: the update banner and monkey checks own a cockpit and run in CI

update-banner-check.mjs drove a live cockpit by functions the redesign
of 2026-09-30 renamed (banners(), rUpdate(), #upd) and failed 7 of its
9 checks on every cockpit since; monkey-check.mjs documented a run on
port 30091, a box's agent relay. Neither ran anywhere, so nobody saw.
Both now own a dry-run cockpit, like the resilience and touch checks: a
key of their own, the engine, proxy and image lane on a closed port, a
PATH whose box commands answer nothing, a browser over a pipe that
resolves no name. The update banner check puts each state into the page
and reads it back in one evaluation (11 checks); the monkey check is the
one that found the fields fixed in the commit before, 61 of 61 now on a
cockpit of its own and 58 of 58 on a dry-run cockpit reading the
reference box. Both run in CI.

The four checks that own a cockpit left it running when they ended
early (the cockpit never healthy, the login refused, no browser):
process.exit() skips every finally, and the cockpit is spawned detached.
Their exit handler now signals what is still alive, the browser with
SIGKILL so it writes no profile back into the directory it removes
(checked by forcing the early exit: the old touch check left its child
behind, the new ones do not).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-10-02 15:49:40 +02:00
1 parent 4b14e9b3ef
commit 2ff9db4847
5 files changed
+267 -80

No files matched your search

+13 -4
View File
@@ -44,14 +44,23 @@ jobs:
- name: The cockpit page survives losing its server (headless browser, a cockpit of its own)
run: |
# The browser checks in dashboard/tests/*.mjs ran nowhere (found in review,
# 2026-09-24). This one and the touch check below own what they drive: a dry-run
# 2026-09-24). This one and the three below own what they drive: a dry-run
# cockpit on loopback with a key of its own, a PATH whose box commands answer
# nothing and no network, and a browser that resolves no name. The other five
# drive the live cockpit of a box and stay manual; they are parsed here so they
# do not rot.
# nothing and no network, and a browser that resolves no name. The other three
# drive the live cockpit of a box and stay manual; they are parsed here. Parsing
# is not running: the update banner check called functions the redesign of
# 2026-09-30 renamed and failed 7 of 9 since, parsed green, and the monkey check
# found a page that read '…' for good with no text engine (both 2026-10-02):
# they own their cockpit now and run below.
for f in dashboard/tests/*.mjs; do node --check "$f"; done
node dashboard/tests/resilience-check.mjs
- name: The cockpit says when a newer version exists (headless browser, a cockpit of its own)
run: node dashboard/tests/update-banner-check.mjs
- name: The cockpit survives a click storm on every view (headless browser, a cockpit of its own)
run: node dashboard/tests/monkey-check.mjs
- name: The cockpit page works under a finger (headless browser, real taps, a cockpit of its own)
run: |
# Every browser check switched views with element.click() from script, which