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.

Keep release race builds off WSL tmpfs

rcourtmanfaf13973c48d
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 0a3ec35187..6ead2baecb 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -487,6 +487,10 @@ upgrade, update, release, or artifact-selection behavior.
Worker startup must compare the complete `go`-prefixed toolchain identity
from `go.mod` with `go env GOVERSION` so a formatting mismatch cannot reject
an otherwise exact toolchain or conceal a real version drift.
+ Race-instrumented Go builds must place `GOTMPDIR` under the worker's
+ persistent run directory and remove that bounded scratch directory on exit;
+ a small WSL `/tmp` tmpfs must not turn release qualification into a false
+ product failure.
The rehearsal diagnostic spec is opt-in by design, so both the hosted
rehearsal and its worker profile must set `PULSE_E2E_DIAGNOSTIC=1`; invoking
that spec while leaving it skipped is not browser proof.
diff --git a/scripts/release-preflight-worker.sh b/scripts/release-preflight-worker.sh
index 5458731695..dbc1a57a49 100755
--- a/scripts/release-preflight-worker.sh
+++ b/scripts/release-preflight-worker.sh
@@ -35,6 +35,7 @@ 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"
TIMINGS_FILE="${RUN_DIR}/timings.tsv"
TEST_DATA_DIR="${WORKER_ROOT}/test-data/${PROFILE}"
@@ -59,6 +60,7 @@ mkdir -p \
"$CACHE_DIR/npm" \
"$RECEIPT_DIR" \
"$RUN_DIR" \
+ "$GO_TMP_DIR" \
"$(dirname "$TEST_DATA_DIR")"
exec 9>"${WORKER_ROOT}/worker.lock"
@@ -73,6 +75,7 @@ unset GH_TOKEN GITHUB_TOKEN PULSE_LICENSE_PRIVATE_KEY PULSE_UPDATE_SIGNING_KEY
export GOCACHE="$CACHE_DIR/go-build"
export GOMODCACHE="$CACHE_DIR/go-mod"
+export GOTMPDIR="$GO_TMP_DIR"
export 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
@@ -94,6 +97,7 @@ phase() {
}
cleanup() {
+ rm -rf "$GO_TMP_DIR"
if [ -d "$REPOSITORY_DIR/tests/integration" ]; then
(
cd "$REPOSITORY_DIR/tests/integration"
diff --git a/scripts/release_control/internal/release_preflight_test.py b/scripts/release_control/internal/release_preflight_test.py
index c088863b00..6d8492b55f 100755
--- a/scripts/release_control/internal/release_preflight_test.py
+++ b/scripts/release_control/internal/release_preflight_test.py
@@ -93,6 +93,8 @@ class ReleasePreflightTest(unittest.TestCase):
self.assertIn("unset GH_TOKEN GITHUB_TOKEN", worker)
self.assertIn("export GITHUB_ACTIONS=true", worker)
self.assertIn("export CI=true", worker)
+ self.assertIn('export GOTMPDIR="$GO_TMP_DIR"', worker)
+ self.assertIn('rm -rf "$GO_TMP_DIR"', worker)
self.assertIn('sub(/^toolchain /, "")', worker)
self.assertNotIn("docker push", worker)
self.assertNotIn("gh release", worker)