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.

Fix release worker Go toolchain parity check

rcourtman31b626d73c0e
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 95f7110a63..527b3d1af1 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -483,6 +483,9 @@ upgrade, update, release, or artifact-selection behavior.
worker remains an operator acceleration choice, not a new canonical release
gate; the typed release gates and the self-contained GitHub release workflow
remain authoritative.
+ 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.
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 5b0241c0ce..5458731695 100755
--- a/scripts/release-preflight-worker.sh
+++ b/scripts/release-preflight-worker.sh
@@ -117,7 +117,7 @@ git -C "$REPOSITORY_DIR" checkout --detach --force "$SOURCE_SHA"
git -C "$REPOSITORY_DIR" clean -ffdx
cd "$REPOSITORY_DIR"
-EXPECTED_GO="$(awk '/^toolchain go/ { sub(/^toolchain go/, ""); print; exit }' go.mod)"
+EXPECTED_GO="$(awk '/^toolchain go/ { sub(/^toolchain /, ""); print; exit }' go.mod)"
ACTUAL_GO="$(go env GOVERSION)"
if [ -n "$EXPECTED_GO" ] && [ "$ACTUAL_GO" != "$EXPECTED_GO" ]; then
echo "Error: worker Go toolchain is ${ACTUAL_GO}; exact-SHA source requires ${EXPECTED_GO}." >&2
diff --git a/scripts/release_control/internal/release_preflight_test.py b/scripts/release_control/internal/release_preflight_test.py
index 0f0a90574b..c088863b00 100755
--- a/scripts/release_control/internal/release_preflight_test.py
+++ b/scripts/release_control/internal/release_preflight_test.py
@@ -93,6 +93,7 @@ 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('sub(/^toolchain /, "")', worker)
self.assertNotIn("docker push", worker)
self.assertNotIn("gh release", worker)
self.assertIn("mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble", worker)