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.

Join frontend before embedded server builds

rcourtman5c26022d655c
diff --git a/docs/release-control/v6/internal/records/release-acceleration-v6.3.0-rc.5-2026-08-21.md b/docs/release-control/v6/internal/records/release-acceleration-v6.3.0-rc.5-2026-08-21.md
index 59e193e69f..ceb06e44e0 100644
--- a/docs/release-control/v6/internal/records/release-acceleration-v6.3.0-rc.5-2026-08-21.md
+++ b/docs/release-control/v6/internal/records/release-acceleration-v6.3.0-rc.5-2026-08-21.md
@@ -141,6 +141,15 @@ manifest-covered cross-repository payload. A governed regression test preserves
the distinction between a required local compile input and an unused transfer
product.
+The first public rc.6 dispatch then exposed the complementary warm-cache race:
+agent and MCP compilation advanced far enough to launch a public server while
+Vite was still producing the embed directory. The source run failed in 57
+seconds, before candidate upload or publication. The final scheduler retains
+frontend overlap with all agent and MCP targets but joins successful frontend
+completion before launching the first server or control-plane target, covering
+both the lean Pro profile and the full public matrix without serializing the
+independent work.
+
Public Docker publication took 5 minutes 1 second, but its prior dependency
shape did not make it eligible until 12 minutes 33 seconds after dispatch. The
corrected DAG makes exact-version Docker staging eligible as soon as the
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index a8b08e6ea9..c7412e86a1 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -559,6 +559,9 @@ upgrade, update, release, or artifact-selection behavior.
image/toolchain cleanup. The hosted private job must verify both SHAs before
release signing, R2 upload, private-registry publication, or paid-runtime
staging.
+ Full public compilation may likewise overlap the frontend with agent and
+ MCP targets, but it must join successful frontend completion before any
+ server or control-plane target that consumes the embed directory starts.
Public and Pro server archives must use the shared canonical staging helper
and may assemble independent target archives concurrently with a bounded
worker count. The verified dual-SHA Pro path must stage its five archives
diff --git a/scripts/build-release-binaries.sh b/scripts/build-release-binaries.sh
index 1f44ad106e..d37eb3dad4 100755
--- a/scripts/build-release-binaries.sh
+++ b/scripts/build-release-binaries.sh
@@ -208,6 +208,26 @@ terminate_active() {
}
trap terminate_active INT TERM
+finish_frontend() {
+ local pid status
+ if [[ -z "${frontend_pid:-}" ]]; then
+ return
+ fi
+ pid="${frontend_pid}"
+ frontend_pid=""
+ if wait "${pid}"; then
+ status=0
+ else
+ status=$?
+ echo "Error: frontend embed prerequisite failed." >&2
+ cat "${frontend_log}" >&2
+ terminate_active
+ exit "${status}"
+ fi
+ rm -f "${frontend_log}"
+ echo "Built frontend embed prerequisite."
+}
+
next_task=0
completed_tasks=0
total_tasks="${#task_components[@]}"
@@ -215,6 +235,9 @@ while (( completed_tasks < total_tasks )); do
while (( next_task < total_tasks && ${#active_pids[@]} < build_jobs )); do
component="${task_components[next_task]}"
target="${task_targets[next_task]}"
+ if [[ "${component}" == server || "${component}" == control-plane ]]; then
+ finish_frontend
+ fi
log_path="${OUTPUT_ROOT}/${component}-${target}.log"
build_one "${component}" "${target}" >"${log_path}" 2>&1 &
pid=$!
@@ -249,18 +272,7 @@ while (( completed_tasks < total_tasks )); do
echo "Compiled ${task_name} (${completed_tasks}/${total_tasks})."
done
-if wait "${frontend_pid}"; then
- status=0
-else
- status=$?
- echo "Error: frontend embed prerequisite failed." >&2
- cat "${frontend_log}" >&2
- frontend_pid=""
- exit "${status}"
-fi
-frontend_pid=""
-rm -f "${frontend_log}"
-echo "Built frontend embed prerequisite."
+finish_frontend
trap - INT TERM
python3 scripts/release_candidate_manifest.py create \
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index ca5ee7e585..009135aa8d 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -155,6 +155,8 @@ func TestProPackagingBuildsFrontendEmbedWithoutTransferringBundle(t *testing.T)
`npm --prefix frontend-modern run build`,
`if [[ "${PROFILE}" == "full" ]]; then`,
`cp -a frontend-modern/dist/. "${FRONTEND_DIR}/"`,
+ `if [[ "${component}" == server || "${component}" == control-plane ]]; then`,
+ `finish_frontend`,
`transfer public Unified Agent binaries only`,
} {
if !strings.Contains(script, needle) {
@@ -167,6 +169,12 @@ func TestProPackagingBuildsFrontendEmbedWithoutTransferringBundle(t *testing.T)
npm --prefix frontend-modern ci`) {
t.Fatal("Pro packaging must build the frontend embed prerequisite")
}
+ serverGate := strings.Index(script, `if [[ "${component}" == server || "${component}" == control-plane ]]; then`)
+ serverLaunch := strings.Index(script, `build_one "${component}" "${target}"`)
+ if serverGate < 0 || serverLaunch < 0 || serverGate > serverLaunch ||
+ !strings.Contains(script[serverGate:serverLaunch], "finish_frontend") {
+ t.Fatal("server and control-plane tasks must join the frontend build before launch")
+ }
}
func TestReleaseContainerTargetsConsumeImmutableCandidate(t *testing.T) {