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
test: isolate shell runner browser artifacts and multi-tenant auth
pulse-triage[bot]a6a02847ef93
diff --git a/tests/integration/scripts/run-tests-images.test.mjs b/tests/integration/scripts/run-tests-images.test.mjsindex 39b775b691..0446ea37a5 100644--- a/tests/integration/scripts/run-tests-images.test.mjs+++ b/tests/integration/scripts/run-tests-images.test.mjs@@ -17,6 +17,7 @@ function run(failImage = '') {printf '%s\\n' "$*" >> "$CALL_LOG"if [ "$1 $2" = 'compose version' ]; thenprintf 'target=%s command=%s file=%s path=%s skip=%s\\n' "$PULSE_E2E_PULSE_CONTAINER" "$PULSE_E2E_ENTITLEMENT_WRITE_COMMAND" "$PULSE_E2E_BILLING_STATE_PATH" "$PULSE_E2E_CONTAINER_BILLING_PATH" "$PULSE_E2E_SKIP_DOCKER" >> "$CALL_LOG"+ printf 'report=%s results=%s browser=%s\\n' "$PULSE_E2E_REPORT_DIR" "$PULSE_E2E_RESULTS_DIR" "$PLAYWRIGHT_BASE_URL" >> "$CALL_LOG"exit 0fiif [ "$1 $2" = 'image inspect' ]; then exit 0; fi@@ -32,7 +33,7 @@ exit 91PULSE_E2E_ENTITLEMENT_WRITE_COMMAND: 'unowned-command',PULSE_E2E_BILLING_STATE_PATH: '/unowned/billing.json',PULSE_E2E_CONTAINER_BILLING_PATH: '/unowned/billing.json',- PULSE_E2E_SKIP_DOCKER: 'true', },+ PLAYWRIGHT_BASE_URL: 'http://unowned.invalid', PULSE_E2E_SKIP_DOCKER: 'true', PULSE_E2E_REPORT_DIR: '/unowned/report', PULSE_E2E_RESULTS_DIR: '/unowned/results', },encoding: 'utf8',});const project = result.stdout.match(/Isolated integration project: (pulse-e2e-[a-f0-9]+)/)?.[1];@@ -80,3 +81,14 @@ test('shell runner binds entitlement writes to its owned server and clears exterconst result = run();assert.ok(result.calls.includes(`target=${result.project}-server command= file= path= skip=`));});++test('shell runner overrides inherited artifact roots with invocation-specific paths', () => {+ const a = run();+ const b = run();+ for (const result of [a, b]) {+ assert.ok(result.calls.includes(+ `report=${repo}/tests/integration/playwright-report/${result.project} results=${repo}/tests/integration/test-results/${result.project} browser=`,+ ));+ }+ assert.notEqual(a.project, b.project);+});diff --git a/tests/integration/scripts/run-tests.sh b/tests/integration/scripts/run-tests.shindex a5adf7a3fb..11d0c2ab3d 100755--- a/tests/integration/scripts/run-tests.sh+++ b/tests/integration/scripts/run-tests.sh@@ -39,7 +39,12 @@ export PULSE_E2E_SEED_CONTAINER="$PULSE_E2E_RUN_ID-seed"export PULSE_E2E_PULSE_CONTAINER="$PULSE_E2E_SERVER_CONTAINER"unset PULSE_E2E_ENTITLEMENT_WRITE_COMMAND PULSE_E2E_BILLING_STATE_PATHunset PULSE_E2E_CONTAINER_BILLING_PATH PULSE_E2E_SKIP_DOCKER+unset PLAYWRIGHT_BASE_URLexport PULSE_E2E_PORT=0 PULSE_E2E_AGENT_PORT=0 PULSE_E2E_MOCK_GITHUB_PORT=0+# Reports and browser artifacts must be as isolated as the containers.+# Override inherited paths: sharing these can erase another invocation's receipts.+export PULSE_E2E_REPORT_DIR="$TEST_ROOT/playwright-report/$PULSE_E2E_RUN_ID"+export PULSE_E2E_RESULTS_DIR="$TEST_ROOT/test-results/$PULSE_E2E_RUN_ID"echo "Isolated integration project: $PULSE_E2E_RUN_ID"if command -v docker >/dev/null 2>&1 && docker compose version >/dev/null 2>&1; thendiff --git a/tests/integration/tests/03-multi-tenant.spec.ts b/tests/integration/tests/03-multi-tenant.spec.tsindex 395ada342f..154c0beede 100644--- a/tests/integration/tests/03-multi-tenant.spec.ts+++ b/tests/integration/tests/03-multi-tenant.spec.ts@@ -1,6 +1,5 @@import fs from 'node:fs';import path from 'node:path';-import { fileURLToPath } from 'node:url';import { test as base, expect } from '@playwright/test';import {apiRequest,@@ -14,8 +13,6 @@ import {waitForAppShell,} from './helpers';-const __dirname = path.dirname(fileURLToPath(import.meta.url));-type WorkerFixtures = {authStorageStatePath: string;};@@ -26,20 +23,17 @@ const test = base.extend<{}, WorkerFixtures>({},authStorageStatePath: [async ({ browser }, use, workerInfo) => {- const storageStatePath = path.resolve(- __dirname,- '..',- '..',- 'tmp',- 'playwright-auth',- `multi-tenant-${workerInfo.project.name}.json`,- );- fs.mkdirSync(path.dirname(storageStatePath), { recursive: true });- await createAuthenticatedStorageState(browser, storageStatePath);+ // Unique per worker; the shell runner also isolates the output root.+ // Never let one worker overwrite or remove another worker's credentials.+ const authRoot = path.join(workerInfo.project.outputDir, '.auth');+ fs.mkdirSync(authRoot, { recursive: true });+ const authDir = fs.mkdtempSync(path.join(authRoot, 'multi-tenant-'));+ const storageStatePath = path.join(authDir, 'state.json');try {+ await createAuthenticatedStorageState(browser, storageStatePath);await use(storageStatePath);} finally {- fs.rmSync(storageStatePath, { force: true });+ fs.rmSync(authDir, { recursive: true, force: true });}},{ scope: 'worker' },diff --git a/tests/qualification/runner-isolation/README.md b/tests/qualification/runner-isolation/README.mdnew file mode 100644index 0000000000..f2bba02369--- /dev/null+++ b/tests/qualification/runner-isolation/README.md@@ -0,0 +1,41 @@+# Runner isolation diagnostic — 5 September 2026++Base: 319b52a1efb291146bffdc28960a5ed32579ee10 plus accompanying harness repair.+No application code changed.++Fresh external reference: https://playwright.dev/docs/auth recommends isolated+state for tests modifying server state. This is qualification maintenance,+not new product demand.++Validation:+- 16 focused Node runner image/cleanup checks passed, including inherited+ report/results/browser URL override regression checks.+- Two simultaneous shell multi-tenant invocations within one pulse-heavy-run+ command built and started real Docker stacks, then failed because this+ checkout lacked @playwright/test. Both cleaned up.+- Installed locked integration dependencies with npm ci --ignore-scripts.+ Repeated simultaneous invocations under pulse-heavy-run. Both reached healthy+ stacks and entitlement bootstrap, then returned 1: No tests found.+ e2e-tiering.mjs explicitly quarantines 03-multi-tenant.spec.ts for chromium.+ Quarantine was not removed or bypassed.+- Scoped docker inspect captured the identities below without credentials.+ Cleanup logs report removal of each server/mock/seed, network and data volume.++/pulse-e2e-a460ce699143f7d50f46eed8aeaf8f03-mock image=sha256:0d673a0b6ab8352142d39f59ac7c9614f38c98b52b33b009bcdb33ba055e5307 project=pulse-e2e-a460ce699143f7d50f46eed8aeaf8f03 ports={"8080/tcp":[{"HostIp":"127.0.0.1","HostPort":"32780"}]} status=running+/pulse-e2e-a460ce699143f7d50f46eed8aeaf8f03-server image=sha256:7927dba54e1ccb5f6c549ef5ce996bfca9c5e414381859678589ffeb0250ac0d project=pulse-e2e-a460ce699143f7d50f46eed8aeaf8f03 ports={"7655/tcp":[{"HostIp":"127.0.0.1","HostPort":"32782"}],"7656/tcp":[{"HostIp":"127.0.0.1","HostPort":"32783"}]} status=running+/pulse-e2e-da316da1633b0a1fa503a680e6a75d89-mock image=sha256:51f71b5e63e4425a7e28f5e5e422d3bb134a04969d0c44e8c03792b44ff1b48c project=pulse-e2e-da316da1633b0a1fa503a680e6a75d89 ports={"8080/tcp":[{"HostIp":"127.0.0.1","HostPort":"32781"}]} status=running+/pulse-e2e-da316da1633b0a1fa503a680e6a75d89-server image=sha256:1b5561f58972f3c5dd11a5428c72d6d72fa933d6fec703a1cf9ff8a6280949cb project=pulse-e2e-da316da1633b0a1fa503a680e6a75d89 ports={"7655/tcp":[{"HostIp":"127.0.0.1","HostPort":"32784"}],"7656/tcp":[{"HostIp":"127.0.0.1","HostPort":"32785"}]} status=running++Limits and next work:+- This proves concurrent startup and failure-path cleanup, not browser success,+ auth-fixture execution, signal interruption, organisation admission/reconnect,+ installed-customer behaviour or release qualification.+- Direct npm startup remains shared: compose-command.mjs supplies no project,+ Compose uses fixed default container names, and entitlement/helpers default to+ pulse-test-server. run-playwright.mjs scopes runtime state but not report roots.+ Do not advertise direct npm invocations as concurrency-safe.+- Other specs still store authentication in tests/tmp/playwright-auth.+ This repair is limited to the shell runner and multi-tenant fixture.+- Resolve the multi-tenant qualification entry point explicitly without silently+ weakening stable-tier quarantine, then complete the browser matrix on exact+ image identities. Retain identities/ports automatically rather than polling.