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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Extend dev-runtime stream recovery proof
rcourtmanfe048c4a63eb
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 3b8c0de318..a4806beee8 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -157,7 +157,8 @@ managed-backend restart command instead of forcing operators or tests to killlistener PIDs ad hoc, and the integration harness must be able to attachPlaywright to the browser entrypoint on `5173` rather than only the backendport on `7655`. Recovery proof for this surface must run through the managed-browser runtime, bounce the real backend through the launcher contract, and+browser runtime, cover both stream-only reconnect degradation and full backend+loss, bounce the real backend through the launcher contract when needed, andprove that the shell degrades and recovers through the proxy instead ofrelying on backend-only API checks that miss browser/runtime drift.That shared `scripts/install.sh` boundary must also keep one canonical servicediff --git a/tests/integration/tests/16-dev-runtime-recovery.spec.ts b/tests/integration/tests/16-dev-runtime-recovery.spec.tsindex d99c8aa7ba..ad756a1e03 100644--- a/tests/integration/tests/16-dev-runtime-recovery.spec.ts+++ b/tests/integration/tests/16-dev-runtime-recovery.spec.ts@@ -7,6 +7,77 @@ const truthy = (value: string | undefined) =>['1', 'true', 'yes', 'on'].includes(String(value || '').trim().toLowerCase());test.describe.serial('Managed dev runtime recovery', () => {+ test('browser shell distinguishes stream-only reconnect from total backend loss', async ({+ page,+ }, testInfo) => {+ test.setTimeout(120_000);+ test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only managed dev runtime coverage');+ test.skip(!truthy(process.env.PULSE_E2E_USE_HOT_DEV), 'Runs only against the managed hot-dev runtime');++ let blockNextSocket = false;+ await page.routeWebSocket('/ws', async (ws) => {+ if (blockNextSocket) {+ blockNextSocket = false;+ await ws.close({ code: 1013, reason: 'test-stream-interruption' });+ return;+ }++ ws.connectToServer();+ });++ await ensureAuthenticated(page);+ await page.goto('/infrastructure', { waitUntil: 'domcontentloaded' });++ const mainContent = page.locator('main, [role="main"], #root > div').first();+ await expect(mainContent).toBeVisible();+ await expect(+ page.getByRole('status', { name: 'Backend and live data stream are connected.' }),+ ).toBeVisible({ timeout: 20_000 });++ blockNextSocket = true;+ await page.evaluate(() => {+ window.__pulseWsStore?.reconnect();+ });++ await expect+ .poll(+ async () => {+ const labels = await page.locator('[role="status"]').evaluateAll((nodes) =>+ nodes.map((node) => node.getAttribute('aria-label') || ''),+ );+ return labels.find((label) =>+ label === 'Backend is healthy. Live updates are reconnecting.' ||+ label === 'Backend is healthy, but the live data stream is not connected.',+ ) || '';+ },+ {+ timeout: 30_000,+ message: 'expected stream-only reconnect state while backend health remained available',+ },+ )+ .not.toBe('');++ await expect(mainContent).toBeVisible();+ await expect(page.getByRole('status')).not.toHaveAttribute(+ 'aria-label',+ 'Backend and live data stream are unavailable.',+ );++ await page.evaluate(() => {+ window.__pulseWsStore?.reconnect();+ });++ await expect(+ page.getByRole('status', { name: 'Backend and live data stream are connected.' }),+ ).toBeVisible({ timeout: 30_000 });+ await expect+ .poll(async () => (await page.request.get('/api/health')).status(), {+ timeout: 15_000,+ message: 'expected backend health to stay available during stream-only reconnect coverage',+ })+ .toBe(200);+ });+test('browser shell stays usable and recovers after a managed backend bounce', async ({page,}, testInfo) => {