Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test(web): qualify admission races and reconnect at phone height

pulse-triage[bot]9fdf8059e08a
diff --git a/scripts/check-navigation-admission-race.mjs b/scripts/check-navigation-admission-race.mjs
index 275aacb7da..2692f9ead4 100644
--- a/scripts/check-navigation-admission-race.mjs
+++ b/scripts/check-navigation-admission-race.mjs
@@ -14,6 +14,7 @@ import { readFileSync } from "node:fs";
const repo = fileURLToPath(new URL("../", import.meta.url));
const root = `${repo}frontend-modern`;
const width = Number(process.env.PULSE_PROOF_WIDTH || 1440);
+const height = width === 390 ? 844 : 900;
const mode = process.env.PULSE_PROOF_MODE || "failure";
if (
![390, 1440].includes(width) ||
@@ -48,7 +49,7 @@ let browser;
try {
await server.listen();
browser = await chromium.launch({ headless: true });
- const page = await browser.newPage({ viewport: { width, height: 900 } });
+ const page = await browser.newPage({ viewport: { width, height } });
const errors = [];
page.on("pageerror", (error) => errors.push(error.message));
await page.route("**/*", (route) =>
@@ -246,6 +247,16 @@ try {
await expect(menu).toBeHidden();
await page.screenshot({ path: `${output}/recovered-navigation.png` });
}
+ // A later reconnect must refresh the current organisation, not resurrect
+ // the delayed outgoing request or require a document reload.
+ await page.evaluate(async () =>
+ (await import("/src/stores/events.ts")).eventBus.emit(
+ "websocket_reconnected",
+ ),
+ );
+ await expect.poll(() => requests.length).toBe(5);
+ await expect(platform).toBeVisible();
+ expect(requests).toEqual(["default", "default", "acme", "default", "default"]);
expect(await page.evaluate(() => performance.timeOrigin)).toBe(
documentIdentity,
);
@@ -253,7 +264,7 @@ try {
const result = {
result: "passed",
browser: browser.version(),
- viewport: { width, height: 900 },
+ viewport: { width, height },
mode,
phase,
requests,
diff --git a/tests/integration/tests/96-navigation-socket-recovery.spec.ts b/tests/integration/tests/96-navigation-socket-recovery.spec.ts
index e3d467a1bd..16ec842304 100644
--- a/tests/integration/tests/96-navigation-socket-recovery.spec.ts
+++ b/tests/integration/tests/96-navigation-socket-recovery.spec.ts
@@ -55,7 +55,7 @@ for (const admissionFailure of [false, true]) {
test(`populated navigation survives socket loss at ${width}px (admission failure: ${admissionFailure})`, async ({ page, browser }, testInfo) => {
test.skip(!enabled, 'Requires isolated mock backend and explicit qualification opt-in');
test.setTimeout(120_000);
- await page.setViewportSize({ width, height: 900 });
+ await page.setViewportSize({ width, height: width === 390 ? 844 : 900 });
let blocked = false;
let failAdmission = false;
let failedAdmissions = 0;
@@ -122,7 +122,7 @@ for (const admissionFailure of [false, true]) {
if (width === 390) await mobileDestinations(page);
expect(await page.evaluate(() => performance.timeOrigin)).toBe(documentIdentity);
await capture('recovered');
- await testInfo.attach('environment', { body: JSON.stringify({ browser: browser.version(), width, height: 900, zoom: 1, admissionFailure, failedAdmissions, before }), contentType: 'application/json' });
+ await testInfo.attach('environment', { body: JSON.stringify({ browser: browser.version(), width, height: width === 390 ? 844 : 900, zoom: 1, admissionFailure, failedAdmissions, before }), contentType: 'application/json' });
});
}
}
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-followup/README.md b/tests/qualification/navigation-reconnect/2026-09-05-followup/README.md
new file mode 100644
index 0000000000..86b5d81f44
--- /dev/null
+++ b/tests/qualification/navigation-reconnect/2026-09-05-followup/README.md
@@ -0,0 +1,61 @@
+# Browser follow-up — 5 September 2026
+
+Qualified supplied main-based `0c3846d8bf56e41e03436ebad785665405597143`
+with the test-only changes accompanying this receipt. No product code changed.
+Chromium 141.0.7390.37; synthetic inventory and local authentication only.
+
+## Results
+
+- Admission race harness: six passes, failure/success/reverse at 1440×900 and
+ 390×844. Delayed outgoing organisation admission cannot restore destinations
+ after switching to Acme, whether Acme returns 503, an empty admission facet,
+ or completes after the outgoing response. Returning to Default restores
+ navigation without a document reload. Narrow More/Settings and Docker
+ platform selection work. JSON receipts retain the runtime source hash.
+- Added a subsequent synthetic `websocket_reconnected` event assertion: the
+ production subscriber requests the current organisation and navigation remains
+ available. This is subscriber/request evidence, not an actual socket recovery.
+- Separate real-backend socket qualification: all six checks passed (1.4m),
+ widths 1440, 1100 and 390, each with and without admission HTTP 503 on
+ reconnect. Real connected sockets are interrupted with 1013, HTTP remains
+ available, navigation survives, mobile menus and incident controls remain
+ accessible, and transport recovers without reload. The runner built embedded
+ assets and the Go backend, then stopped its owned backend; PID absence checked.
+- Focused `useAppRuntimeState.test.ts`: 28 tests passed. Diff check passed.
+
+## Visual evidence
+
+Both attached recovered screenshots were viewed at native 390×844. These contain
+only the local backend's synthetic estate. Bottom navigation remains accessible.
+Docker names are truncated and rightmost container update badges are visibly
+cut off at the table edge. This remains a narrow-layout investigation item,
+not a visual-polish pass. No assertion about horizontal scroll reachability,
+full names via assistive technology or other platforms follows from these images.
+The admission harness has empty inventory and cannot qualify table layout.
+
+## Reproduction
+
+Install locked dependencies in frontend-modern and tests/integration, with the
+pinned Chromium available. From repository root:
+
+```sh
+pulse-heavy-run -- bash -c 'set -e; for width in 390 1440; do for mode in failure success reverse; do PULSE_PROOF_WIDTH=$width PULSE_PROOF_MODE=$mode node scripts/check-navigation-admission-race.mjs; done; done'
+pulse-heavy-run -- env PULSE_E2E_USE_LOCAL_BACKEND=1 PULSE_E2E_SKIP_PLAYWRIGHT_INSTALL=1 PULSE_MOCK_MODE=true PULSE_E2E_NAVIGATION_RECOVERY=1 PULSE_E2E_LOCAL_BACKEND_PORT=18765 npm --prefix tests/integration test -- tests/96-navigation-socket-recovery.spec.ts --project=chromium
+```
+
+## Judgment and limits
+
+Fresh external read: https://community-scripts.org/scripts/pulse?id=pulse
+on September 5 lists installed v6.4.1 and exposes upstream preview recovery and
+mobile accessibility claims. This is distribution context, not independent
+confirmation of those claims or demand for a new surface. Combined with the
+unfinished admission frontier it favours verification over new UI scope.
+
+No published image, release candidate, reporter installation, alert dispatch,
+long outage soak or full shell/Playwright Test/container interruption was
+qualified. Docker is available here; full-stack interruption is unfinished work,
+not an established environment blocker. A third organisation switch that
+supersedes an already incoming request is not covered by this two-organisation
+matrix. Next useful work: diagnose narrow-table reachability and qualify that
+additional race or full-stack cleanup separately. No new product bet or demand
+ledger edit; no release-readiness upgrade.
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-followup/admission-results.json b/tests/qualification/navigation-reconnect/2026-09-05-followup/admission-results.json
new file mode 100644
index 0000000000..7f3261547d
--- /dev/null
+++ b/tests/qualification/navigation-reconnect/2026-09-05-followup/admission-results.json
@@ -0,0 +1,122 @@
+[
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 1440,
+ "height": 900
+ },
+ "mode": "failure",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 1,
+ "verified_at": "2026-09-05T16:30:28.984Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ },
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 1440,
+ "height": 900
+ },
+ "mode": "reverse",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 0,
+ "verified_at": "2026-09-05T16:31:01.303Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ },
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 1440,
+ "height": 900
+ },
+ "mode": "success",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 0,
+ "verified_at": "2026-09-05T16:30:45.301Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ },
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 390,
+ "height": 844
+ },
+ "mode": "failure",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 1,
+ "verified_at": "2026-09-05T16:29:25.974Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ },
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 390,
+ "height": 844
+ },
+ "mode": "reverse",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 0,
+ "verified_at": "2026-09-05T16:30:12.835Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ },
+ {
+ "result": "passed",
+ "browser": "141.0.7390.37",
+ "viewport": {
+ "width": 390,
+ "height": 844
+ },
+ "mode": "success",
+ "phase": "repaired",
+ "requests": [
+ "default",
+ "default",
+ "acme",
+ "default",
+ "default"
+ ],
+ "failed": 0,
+ "verified_at": "2026-09-05T16:29:49.675Z",
+ "source_sha256": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"
+ }
+]
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-390x844.png b/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-390x844.png
new file mode 100644
index 0000000000..b9c9359f82
Binary files /dev/null and b/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-390x844.png differ
diff --git a/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-admission-503-390x844.png b/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-admission-503-390x844.png
new file mode 100644
index 0000000000..3ce5f6c8b2
Binary files /dev/null and b/tests/qualification/navigation-reconnect/2026-09-05-followup/recovered-admission-503-390x844.png differ