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.

Align hot-dev-bg managed entry guidance

rcourtman959777e9c6ee
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 1d952b9a4a..d17dcb293a 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -203,6 +203,11 @@ That foreground escape hatch contract also applies to `scripts/hot-dev.sh`
itself: its self-description and usage guidance must point operators back to
the canonical managed `npm run dev` path for normal work and reserve
`hot-dev.sh` for explicit foreground/manual troubleshooting.
+That same self-description rule applies to `scripts/hot-dev-bg.sh`: even
+though it is the managed control surface underneath the wrappers, its usage
+guidance must still point operators to the canonical repo-root `npm run dev`
+entrypoint for routine startup instead of teaching direct script invocation as
+the primary habit.
That same dev-runtime helper boundary also includes the auxiliary operator
controls that start, stop, restart, or recover local development. The repo-root
Makefile targets, `scripts/toggle-mock.sh`, and `scripts/clean-mock-alerts.sh` must
diff --git a/scripts/hot-dev-bg.sh b/scripts/hot-dev-bg.sh
index 89ee6020ef..dbe58f9319 100755
--- a/scripts/hot-dev-bg.sh
+++ b/scripts/hot-dev-bg.sh
@@ -3,6 +3,7 @@
# Run Pulse hot-dev in a managed background session (macOS/Linux).
#
# Usage:
+# npm run dev # Canonical managed dev runtime
# ./scripts/hot-dev-bg.sh start [--takeover]
# ./scripts/hot-dev-bg.sh stop
# ./scripts/hot-dev-bg.sh restart
diff --git a/scripts/tests/test-hot-dev-bg.sh b/scripts/tests/test-hot-dev-bg.sh
index 97decd171d..fe8b798f46 100755
--- a/scripts/tests/test-hot-dev-bg.sh
+++ b/scripts/tests/test-hot-dev-bg.sh
@@ -321,6 +321,14 @@ test_hot_dev_script_advertises_foreground_escape_hatch() {
assert_not_contains "hot-dev usage no longer claims standard dev mode" "${output}" "Standard dev mode"
}
+test_hot_dev_bg_script_advertises_managed_entrypoint() {
+ local output
+ output="$(sed -n '1,20p' "${ROOT_DIR}/scripts/hot-dev-bg.sh")"
+
+ assert_contains "hot-dev-bg usage points to managed runtime first" "${output}" "npm run dev # Canonical managed dev runtime"
+ assert_contains "hot-dev-bg still documents direct launcher start" "${output}" "./scripts/hot-dev-bg.sh start [--takeover]"
+}
+
test_clean_mock_alerts_prefers_managed_runtime() {
local test_dir fake_bin alert_history fake_hot_dev_bg action_log output
test_dir="$(mktemp -d)"
@@ -550,6 +558,7 @@ main() {
test_root_package_exposes_managed_runtime_entrypoints
test_frontend_package_exposes_managed_runtime_entrypoints
test_hot_dev_script_advertises_foreground_escape_hatch
+ test_hot_dev_bg_script_advertises_managed_entrypoint
test_clean_mock_alerts_prefers_managed_runtime
test_dev_check_uses_managed_runtime_status
test_backend_restart_requires_managed_runtime