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
Match CI temp layout in the preflight worker and isolate agent helper tests
rcourtman813c2b68375c
diff --git a/cmd/pulse-agent/main_test.go b/cmd/pulse-agent/main_test.goindex 2c3a5ea508..b2612d18a8 100644--- a/cmd/pulse-agent/main_test.go+++ b/cmd/pulse-agent/main_test.go@@ -1779,6 +1779,7 @@ func TestRunConfiguresTypedPrivilegeHelperFromInstallerEnvironment(t *testing.T)"-enable-docker=false","-enable-kubernetes=false","-health-addr", "",+ "-state-dir", t.TempDir(),}, func(string) string { return "" })if err != nil && !errors.Is(err, context.Canceled) && !errors.Is(err, context.DeadlineExceeded) {t.Fatalf("run returned error: %v", err)@@ -1839,6 +1840,7 @@ func TestRunRejectsUnhealthyTypedPrivilegeHelper(t *testing.T) {"-enable-docker=false","-enable-kubernetes=false","-health-addr", "",+ "-state-dir", t.TempDir(),}, func(string) string { return "" })if err == nil || !strings.Contains(err.Error(), "verify typed privilege helper protocol") {t.Fatalf("run error = %v", err)diff --git a/scripts/release-preflight-worker.sh b/scripts/release-preflight-worker.shindex b559aae921..36e523560e 100755--- a/scripts/release-preflight-worker.sh+++ b/scripts/release-preflight-worker.sh@@ -35,7 +35,13 @@ CACHE_DIR="${WORKER_ROOT}/cache"RECEIPT_DIR="${WORKER_ROOT}/receipts"RUN_ID="$(date -u +%Y%m%dT%H%M%SZ)-${SOURCE_SHA:0:12}-${PROFILE}"RUN_DIR="${WORKER_ROOT}/tmp/${RUN_ID}"-GO_TMP_DIR="${RUN_DIR}/go-tmp"+# Go places test temp directories under GOTMPDIR, and several packages bind+# unix sockets under t.TempDir at the 108-byte sun_path limit. GitHub runners+# leave GOTMPDIR unset so those fixtures resolve under /tmp; the worker must+# match that layout exactly or the socket tests fail with "bind: invalid+# argument". Set PULSE_RELEASE_PREFLIGHT_GO_TMP_DIR only for a deliberately+# isolated, equally short directory.+GO_TMP_DIR="${PULSE_RELEASE_PREFLIGHT_GO_TMP_DIR:-}"TIMINGS_FILE="${RUN_DIR}/timings.tsv"TEST_DATA_DIR="${WORKER_ROOT}/test-data/${PROFILE}"@@ -67,7 +73,6 @@ mkdir -p \"$CACHE_DIR/npm" \"$RECEIPT_DIR" \"$RUN_DIR" \- "$GO_TMP_DIR" \"$(dirname "$TEST_DATA_DIR")"exec 9>"${WORKER_ROOT}/worker.lock"@@ -83,7 +88,10 @@ unset GH_TOKEN GITHUB_TOKEN PULSE_LICENSE_PRIVATE_KEY PULSE_UPDATE_SIGNING_KEYexport GOCACHE="$CACHE_DIR/go-build"export GOMODCACHE="$CACHE_DIR/go-mod"-export GOTMPDIR="$GO_TMP_DIR"+if [ -n "$GO_TMP_DIR" ]; then+ mkdir -p "$GO_TMP_DIR"+ export GOTMPDIR="$GO_TMP_DIR"+fiexport npm_config_cache="$CACHE_DIR/npm"# Match the canonical workflow's isolated single-repository checkout. Tests# that explicitly require private sibling repositories use this signal to@@ -105,7 +113,9 @@ phase() {}cleanup() {- rm -rf "$GO_TMP_DIR"+ if [ -n "$GO_TMP_DIR" ]; then+ rm -rf "$GO_TMP_DIR"+ fiif [ -d "$REPOSITORY_DIR/tests/integration" ]; then(cd "$REPOSITORY_DIR/tests/integration"