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
Add hosted staging smoke entrypoint
rcourtmanf94601e26f64
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 4938734961..41cf5069f3 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -66,15 +66,20 @@ server-side update execution surfaces.44. `scripts/release_ldflags.sh`45. `scripts/run_demo_public_browser_smoke.sh`46. `scripts/demo_public_browser_smoke.cjs`-47. `scripts/trigger-release-dry-run.sh`-48. `scripts/trigger-release.sh`-49. `scripts/toggle-mock.sh`-50. `tests/integration/playwright.config.ts`-51. `tests/integration/QUICK_START.md`-52. `tests/integration/README.md`-53. `tests/integration/scripts/managed-dev-runtime.mjs`-54. `tests/integration/tests/helpers.ts`-55. `tests/integration/tests/runtime-defaults.ts`+47. `scripts/run_hosted_staging_smoke.sh`+48. `scripts/trigger-release-dry-run.sh`+49. `scripts/trigger-release.sh`+50. `scripts/toggle-mock.sh`+51. `tests/integration/playwright.config.ts`+52. `tests/integration/QUICK_START.md`+53. `tests/integration/README.md`+54. `tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs`+55. `tests/integration/scripts/hosted-mobile-token-runtime.mjs`+56. `tests/integration/scripts/hosted-tenant-runtime.mjs`+57. `tests/integration/scripts/managed-dev-runtime.mjs`+58. `tests/integration/scripts/relay-mobile-token-helper.go`+59. `tests/integration/tests/helpers.ts`+60. `tests/integration/tests/runtime-defaults.ts`## Shared Boundaries@@ -93,6 +98,7 @@ server-side update execution surfaces.6. Add or change governed release-promotion workflow inputs, operator-facing promotion metadata, artifact publication lineage enforcement, or stable-promotion rehearsal summaries through `.github/workflows/create-release.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/release-dry-run.yml`, `.github/workflows/update-demo-server.yml`, `docs/releases/V6_PRERELEASE_RUNBOOK.md`, `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`, `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`, `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/record_rc_to_ga_rehearsal.py`, `scripts/release_control/internal/record_rc_to_ga_rehearsal.py`, `scripts/release_control/release_promotion_policy_support.py`, `scripts/trigger-release.sh`, and `scripts/trigger-release-dry-run.sh`7. Preserve release-matched installer and Helm operator documentation links through `scripts/install.sh`, `.github/workflows/helm-pages.yml`, `.github/workflows/publish-helm-chart.yml`, and the chart metadata itself so deployment guidance and packaged chart metadata do not drift back to branch-tip `main` docs when a release line or promoted tag already exists.8. Add or change operator-facing hosted tenant runtime canary rollout, batch runtime contract reconciliation, canonical hosted route/public URL generation, or control-plane runtime-registry reconciliation through `cmd/pulse-control-plane/main.go`, `internal/cloudcp/docker/manager.go`, `internal/cloudcp/docker/labels.go`, and `internal/cloudcp/tenant_runtime_rollout.go`+9. Add or change the canonical hosted staging smoke operator path through `scripts/run_hosted_staging_smoke.sh`, `tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs`, `tests/integration/scripts/hosted-mobile-token-runtime.mjs`, `tests/integration/scripts/hosted-tenant-runtime.mjs`, and `tests/integration/scripts/relay-mobile-token-helper.go`## Forbidden Paths@@ -124,6 +130,12 @@ server-side update execution surfaces.`PULSE_E2E_REPO_ROOT` for runtime-state and managed-session discovery soisolated verification harnesses can relocate managed runtime state withoutmutating the live repo root.+6. Keep hosted staging smoke fail-closed and repo-tracked. `scripts/run_hosted_staging_smoke.sh`+ and the hosted onboarding helpers under `tests/integration/scripts/` must+ require explicit target environment input, compose the canonical hosted+ signup/billing Playwright evals with the hosted mobile onboarding proof, and+ avoid implicit production defaults or lane-local shell fragments that bypass+ the checked-in proof pack.## Current State@@ -236,6 +248,13 @@ open on API-only reachability. That proof must treat the visible login controlsas the readiness signal and must not block on Playwright `networkidle`, becausethe public demo shell can keep background activity alive after the page isalready usable.+That same operator-proof boundary also now owns the canonical hosted staging+smoke entrypoint. `scripts/run_hosted_staging_smoke.sh` must stay as the+repo-tracked operator command that composes the hosted signup/billing eval pack+with the hosted mobile onboarding bootstrap helpers under+`tests/integration/scripts/`, and those helpers must fail closed onto explicit+target cloud host and control-plane URL input instead of silently defaulting to+production infrastructure.Those same governed release workflows also own the operator-facing wording forthat promotion metadata. Human-visible workflow inputs, summaries, and errormessages must describe the path as a prerelease or preview flow rather thandiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 7d86d84690..86a42a1bcf 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -2421,13 +2421,18 @@"scripts/release_control/resolve_release_promotion.py","scripts/release_ldflags.sh","scripts/run_demo_public_browser_smoke.sh",+ "scripts/run_hosted_staging_smoke.sh","scripts/toggle-mock.sh","scripts/trigger-release-dry-run.sh","scripts/trigger-release.sh","tests/integration/playwright.config.ts","tests/integration/QUICK_START.md","tests/integration/README.md",+ "tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs",+ "tests/integration/scripts/hosted-mobile-token-runtime.mjs",+ "tests/integration/scripts/hosted-tenant-runtime.mjs","tests/integration/scripts/managed-dev-runtime.mjs",+ "tests/integration/scripts/relay-mobile-token-helper.go","tests/integration/tests/helpers.ts","tests/integration/tests/runtime-defaults.ts"],@@ -2531,6 +2536,25 @@"scripts/release_control/release_promotion_policy_test.py"]},+ {+ "id": "hosted-staging-smoke-runtime",+ "label": "hosted staging smoke proof",+ "match_prefixes": [],+ "match_files": [+ "scripts/run_hosted_staging_smoke.sh",+ "tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs",+ "tests/integration/scripts/hosted-mobile-token-runtime.mjs",+ "tests/integration/scripts/hosted-tenant-runtime.mjs",+ "tests/integration/scripts/relay-mobile-token-helper.go"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "internal/api/relay_hosted_runtime_test.go",+ "tests/integration/tests/08-cloud-hosting.spec.ts",+ "tests/integration/tests/09-cloud-billing-lifecycle.spec.ts"+ ]+ },{"id": "deployment-script-runtime","label": "deployment script runtime proof",diff --git a/scripts/run_hosted_staging_smoke.sh b/scripts/run_hosted_staging_smoke.shnew file mode 100755index 0000000000..6cb97c56a3--- /dev/null+++ b/scripts/run_hosted_staging_smoke.sh@@ -0,0 +1,87 @@+#!/usr/bin/env bash+set -euo pipefail++SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"+REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"+INTEGRATION_ROOT="${REPO_ROOT}/tests/integration"++HOSTED_SCENARIOS="${PULSE_E2E_CLOUD_SMOKE_SCENARIOS:-cloud-hosting,cloud-billing-lifecycle}"+PULSE_CLOUD_BASE_URL="${PULSE_CLOUD_BASE_URL:-}"+PULSE_CLOUD_SSH_TARGET="${PULSE_CLOUD_SSH_TARGET:-}"+PULSE_CP_ADMIN_KEY="${PULSE_CP_ADMIN_KEY:-}"+PULSE_E2E_STRIPE_API_KEY="${PULSE_E2E_STRIPE_API_KEY:-}"+PULSE_E2E_STRIPE_WEBHOOK_SECRET="${PULSE_E2E_STRIPE_WEBHOOK_SECRET:-}"+PULSE_E2E_HOSTED_TENANT_ID="${PULSE_E2E_HOSTED_TENANT_ID:-}"+PULSE_E2E_HOSTED_MOBILE_EMAIL="${PULSE_E2E_HOSTED_MOBILE_EMAIL:-}"+PULSE_E2E_HOSTED_MOBILE_POLL_INTERVAL_MS="${PULSE_E2E_HOSTED_MOBILE_POLL_INTERVAL_MS:-}"+PULSE_E2E_HOSTED_MOBILE_POLL_TIMEOUT_MS="${PULSE_E2E_HOSTED_MOBILE_POLL_TIMEOUT_MS:-}"++require_command() {+ local command_name="$1"+ if ! command -v "${command_name}" >/dev/null 2>&1; then+ echo "${command_name} is required for hosted staging smoke" >&2+ exit 1+ fi+}++require_env() {+ local var_name="$1"+ local value="$2"+ if [[ -z "${value}" ]]; then+ echo "${var_name} is required for hosted staging smoke" >&2+ exit 1+ fi+}++require_command curl+require_command go+require_command node+require_command npx+require_command scp+require_command ssh++if [[ ! -x "${INTEGRATION_ROOT}/node_modules/.bin/playwright" ]]; then+ echo "tests/integration dependencies are missing; run 'cd ${INTEGRATION_ROOT} && npm ci'" >&2+ exit 1+fi++require_env "PULSE_CLOUD_BASE_URL" "${PULSE_CLOUD_BASE_URL}"+require_env "PULSE_CLOUD_SSH_TARGET" "${PULSE_CLOUD_SSH_TARGET}"+require_env "PULSE_CP_ADMIN_KEY" "${PULSE_CP_ADMIN_KEY}"+require_env "PULSE_E2E_STRIPE_API_KEY" "${PULSE_E2E_STRIPE_API_KEY}"+require_env "PULSE_E2E_STRIPE_WEBHOOK_SECRET" "${PULSE_E2E_STRIPE_WEBHOOK_SECRET}"+require_env "PULSE_E2E_HOSTED_TENANT_ID" "${PULSE_E2E_HOSTED_TENANT_ID}"++echo "[1/2] Running hosted signup and billing smoke against ${PULSE_CLOUD_BASE_URL}"+(+ cd "${INTEGRATION_ROOT}"+ PULSE_E2E_SKIP_DOCKER=1 \+ PULSE_BASE_URL="${PULSE_BASE_URL:-${PULSE_CLOUD_BASE_URL}}" \+ PULSE_CLOUD_BASE_URL="${PULSE_CLOUD_BASE_URL}" \+ PULSE_CP_ADMIN_KEY="${PULSE_CP_ADMIN_KEY}" \+ PULSE_E2E_STRIPE_API_KEY="${PULSE_E2E_STRIPE_API_KEY}" \+ PULSE_E2E_STRIPE_WEBHOOK_SECRET="${PULSE_E2E_STRIPE_WEBHOOK_SECRET}" \+ node ./scripts/run-evals.mjs --mode deterministic --scenario "${HOSTED_SCENARIOS}"+)++echo "[2/2] Running hosted mobile onboarding smoke against tenant ${PULSE_E2E_HOSTED_TENANT_ID}"+bootstrap_args=(+ "${INTEGRATION_ROOT}/scripts/bootstrap-hosted-mobile-onboarding.mjs"+ --tenant-id "${PULSE_E2E_HOSTED_TENANT_ID}"+ --cloud-host "${PULSE_CLOUD_SSH_TARGET}"+ --control-plane-url "${PULSE_CLOUD_BASE_URL}"+)++if [[ -n "${PULSE_E2E_HOSTED_MOBILE_EMAIL}" ]]; then+ bootstrap_args+=(--email "${PULSE_E2E_HOSTED_MOBILE_EMAIL}")+fi++if [[ -n "${PULSE_E2E_HOSTED_MOBILE_POLL_INTERVAL_MS}" ]]; then+ bootstrap_args+=(--poll-interval-ms "${PULSE_E2E_HOSTED_MOBILE_POLL_INTERVAL_MS}")+fi++if [[ -n "${PULSE_E2E_HOSTED_MOBILE_POLL_TIMEOUT_MS}" ]]; then+ bootstrap_args+=(--poll-timeout-ms "${PULSE_E2E_HOSTED_MOBILE_POLL_TIMEOUT_MS}")+fi++node "${bootstrap_args[@]}"diff --git a/tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs b/tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjsindex 7438f5ec2c..68fd7b972e 100644--- a/tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs+++ b/tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs@@ -11,8 +11,6 @@ import {} from './hosted-tenant-runtime.mjs';import { createHostedRelayMobileToken } from './hosted-mobile-token-runtime.mjs';-const DEFAULT_CLOUD_HOST = 'root@pulse-cloud';-const DEFAULT_CONTROL_PLANE_URL = 'https://cloud.pulserelay.pro';const DEFAULT_POLL_INTERVAL_MS = 500;const DEFAULT_POLL_TIMEOUT_MS = 15_000;const REPO_ROOT = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..', '..', '..');@@ -24,15 +22,15 @@ function usage(message) {}console.error(- 'usage: node ./tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs --tenant-id <id> [--email <email>] [--cloud-host <user@host>] [--control-plane-url <url>] [--poll-timeout-ms <ms>] [--poll-interval-ms <ms>]',+ 'usage: node ./tests/integration/scripts/bootstrap-hosted-mobile-onboarding.mjs --tenant-id <id> --cloud-host <user@host> --control-plane-url <url> [--email <email>] [--poll-timeout-ms <ms>] [--poll-interval-ms <ms>]',);process.exit(1);}function parseArgs(argv) {const parsed = {- cloudHost: DEFAULT_CLOUD_HOST,- controlPlaneUrl: DEFAULT_CONTROL_PLANE_URL,+ cloudHost: '',+ controlPlaneUrl: '',email: '',pollIntervalMs: DEFAULT_POLL_INTERVAL_MS,pollTimeoutMs: DEFAULT_POLL_TIMEOUT_MS,@@ -82,6 +80,9 @@ function parseArgs(argv) {if (!parsed.tenantId) {usage('--tenant-id is required');}+ if (!parsed.cloudHost) {+ usage('--cloud-host is required');+ }if (!parsed.controlPlaneUrl) {usage('--control-plane-url is required');}diff --git a/tests/integration/tests/08-cloud-hosting.spec.ts b/tests/integration/tests/08-cloud-hosting.spec.tsindex 93dd4658a1..7efbcfa6ed 100644--- a/tests/integration/tests/08-cloud-hosting.spec.ts+++ b/tests/integration/tests/08-cloud-hosting.spec.ts@@ -2,9 +2,13 @@ import { expect, test } from '@playwright/test';import { completeStripeSandboxCheckout } from './stripe-sandbox';import { preferredPlaywrightRouteBaseURL } from './runtime-defaults';+function explicitCloudBaseURL(): string {+ return String(process.env.PULSE_CLOUD_BASE_URL || '').trim();+}+function cloudBaseURL(): string {return preferredPlaywrightRouteBaseURL(process.env, [- process.env.PULSE_CLOUD_BASE_URL,+ explicitCloudBaseURL(),]);}@@ -23,6 +27,10 @@ test.describe.serial('Cloud hosting public signup flows', () => {test('completes hosted cloud signup checkout through Stripe sandbox', async ({ page }, testInfo) => {test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only cloud hosting workflow coverage');+ test.skip(+ explicitCloudBaseURL() === '',+ 'Set PULSE_CLOUD_BASE_URL to run hosted cloud signup coverage.',+ );const baseURL = cloudBaseURL();const identity = signupIdentity();@@ -66,6 +74,10 @@ test.describe.serial('Cloud hosting public signup flows', () => {test('accepts magic-link request via real public endpoint', async ({ page }, testInfo) => {test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only cloud hosting workflow coverage');+ test.skip(+ explicitCloudBaseURL() === '',+ 'Set PULSE_CLOUD_BASE_URL to run hosted cloud signup coverage.',+ );const baseURL = cloudBaseURL();const email = createdEmail || signupIdentity().email;diff --git a/tests/integration/tests/09-cloud-billing-lifecycle.spec.ts b/tests/integration/tests/09-cloud-billing-lifecycle.spec.tsindex 858bdde4f6..fcce21d5f7 100644--- a/tests/integration/tests/09-cloud-billing-lifecycle.spec.ts+++ b/tests/integration/tests/09-cloud-billing-lifecycle.spec.ts@@ -29,9 +29,13 @@ type StripeSubscriptionResponse = {metadata?: Record<string, string>;};+function explicitCloudBaseURL(): string {+ return String(process.env.PULSE_CLOUD_BASE_URL || '').trim();+}+function cloudBaseURL(): string {return preferredPlaywrightRouteBaseURL(process.env, [- process.env.PULSE_CLOUD_BASE_URL,+ explicitCloudBaseURL(),]);}@@ -93,6 +97,10 @@ test.describe.serial('Cloud billing lifecycle (post-checkout)', () => {testInfo.project.name.startsWith('mobile-'),'Desktop-only cloud billing lifecycle coverage',);+ test.skip(+ explicitCloudBaseURL() === '',+ 'Set PULSE_CLOUD_BASE_URL to run hosted cloud billing lifecycle coverage.',+ );const requiredVars = ['PULSE_CP_ADMIN_KEY',