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
Fix Helm release-line branch fidelity and smoke diagnostics
rcourtmand1a807e9c530
diff --git a/.github/workflows/helm-pages.yml b/.github/workflows/helm-pages.ymlindex 73d565063c..927b66178b 100644--- a/.github/workflows/helm-pages.yml+++ b/.github/workflows/helm-pages.yml@@ -22,75 +22,44 @@ jobs:# Only run if workflow_dispatch OR if workflow_run completed successfullyif: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}steps:- - name: Checkout- uses: actions/checkout@v4- with:- fetch-depth: 0-- - name: Configure Git- run: |- git config user.name "$GITHUB_ACTOR"- git config user.email "[email protected]"-- - name: Install Helm- uses: azure/setup-helm@v4- with:- version: v3.15.2-- - name: Install helm-docs- run: |- cd /tmp- wget https://github.com/norwoodj/helm-docs/releases/download/v1.14.2/helm-docs_1.14.2_Linux_x86_64.tar.gz- tar -xzf helm-docs_1.14.2_Linux_x86_64.tar.gz- sudo mv helm-docs /usr/local/bin/- helm-docs --version-- - name: Generate chart documentation- run: |- cd deploy/helm/pulse- helm-docs-- # Commit if README changed- if ! git diff --quiet README.md; then- git config user.name "$GITHUB_ACTOR"- git config user.email "[email protected]"- git add README.md- git commit -m "Auto-update Helm chart documentation"- git pull --rebase origin main- git push origin main- fi- cd ../../..-- name: Determine chart versionid: versionenv:GH_TOKEN: ${{ github.token }}run: |if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then- # Manual dispatch - use input directlyVERSION="${{ inputs.chart_version }}"else- # workflow_run trigger - extract version from the triggering workflowRUN_ID="${{ github.event.workflow_run.id }}"echo "Extracting version from workflow run ${RUN_ID}..."-+WORKFLOW_DATA=$(gh api repos/${{ github.repository }}/actions/runs/${RUN_ID})TAG=$(echo "$WORKFLOW_DATA" | jq -r '.display_title' | grep -oP 'v?\d+\.\d+\.\d+(-[a-zA-Z]+\.\d+)?' || echo "")-+if [ -z "$TAG" ]; thenecho "::error::Could not extract version from workflow_run"exit 1fi-- # Remove leading 'v' if present+VERSION="${TAG#v}"fi-++ if [ -z "$VERSION" ]; then+ echo "::error::chart_version input is required"+ exit 1+ fi+echo "version=$VERSION" >> "$GITHUB_OUTPUT"echo "release_tag=v${VERSION}" >> "$GITHUB_OUTPUT"echo "Chart version: $VERSION"+ - name: Checkout+ uses: actions/checkout@v4+ with:+ fetch-depth: 0+- name: Validate release line policy+ id: release_lineenv:VERSION: ${{ steps.version.outputs.version }}RELEASE_TAG: ${{ steps.version.outputs.release_tag }}@@ -115,10 +84,58 @@ jobs:exit 1fi+ echo "required_branch=${REQUIRED_BRANCH}" >> "$GITHUB_OUTPUT"echo "[OK] ${RELEASE_TAG} validated against release line ${REQUIRED_BRANCH}"+ - name: Check out governed release branch+ env:+ REQUIRED_BRANCH: ${{ steps.release_line.outputs.required_branch }}+ run: |+ set -euo pipefail+ git checkout -B "$REQUIRED_BRANCH" "origin/$REQUIRED_BRANCH"++ - name: Configure Git+ run: |+ git config user.name "$GITHUB_ACTOR"+ git config user.email "[email protected]"++ - name: Install Helm+ uses: azure/setup-helm@v4+ with:+ version: v3.15.2++ - name: Install helm-docs+ run: |+ cd /tmp+ wget https://github.com/norwoodj/helm-docs/releases/download/v1.14.2/helm-docs_1.14.2_Linux_x86_64.tar.gz+ tar -xzf helm-docs_1.14.2_Linux_x86_64.tar.gz+ sudo mv helm-docs /usr/local/bin/+ helm-docs --version++ - name: Generate chart documentation+ env:+ REQUIRED_BRANCH: ${{ steps.release_line.outputs.required_branch }}+ run: |+ set -euo pipefail+ cd deploy/helm/pulse+ helm-docs++ # Commit if README changed+ if ! git diff --quiet README.md; then+ git config user.name "$GITHUB_ACTOR"+ git config user.email "[email protected]"+ git add README.md+ git commit -m "Auto-update Helm chart documentation"+ git pull --rebase origin "$REQUIRED_BRANCH"+ git push origin HEAD:"$REQUIRED_BRANCH"+ fi+ cd ../../..+- name: Update Chart.yaml version+ env:+ REQUIRED_BRANCH: ${{ steps.release_line.outputs.required_branch }}run: |+ set -euo pipefailVERSION="${{ steps.version.outputs.version }}"python3 scripts/sync_chart_release_metadata.py \--chart deploy/helm/pulse/Chart.yaml \@@ -131,8 +148,8 @@ jobs:git config user.email "[email protected]"git add deploy/helm/pulse/Chart.yamlgit commit -m "Auto-update Helm chart version to $VERSION"- git pull --rebase origin main- git push origin main+ git pull --rebase origin "$REQUIRED_BRANCH"+ git push origin HEAD:"$REQUIRED_BRANCH"fi- name: Validate Helm chart@@ -153,6 +170,42 @@ jobs:- name: Smoke test with kindrun: |+ set -euo pipefail++ cleanup() {+ kind delete cluster --name pulse-test >/dev/null 2>&1 || true+ }++ diagnose() {+ echo "::group::helm status"+ helm status pulse || true+ echo "::endgroup::"++ echo "::group::kubectl get all"+ kubectl get all -A || true+ echo "::endgroup::"++ echo "::group::kubectl describe pods"+ kubectl describe pods -A || true+ echo "::endgroup::"++ echo "::group::pod logs"+ pods=$(kubectl get pods -A -o name 2>/dev/null || true)+ for pod in $pods; do+ echo "### ${pod}"+ kubectl logs --all-containers=true --tail=200 "$pod" || true+ done+ echo "::endgroup::"++ echo "::group::events"+ kubectl get events -A --sort-by=.lastTimestamp || kubectl get events -A || true+ echo "::endgroup::"++ cleanup+ }++ trap 'diagnose' ERR+# Install kindcurl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64chmod +x ./kind@@ -166,7 +219,7 @@ jobs:--set persistence.enabled=false \--set server.secretEnv.create=true \--set server.secretEnv.data.API_TOKENS=test-token \- --wait --timeout 5m+ --wait --timeout 5m --debug# Verify deploymentkubectl wait --for=condition=ready pod -l app.kubernetes.io/name=pulse --timeout=180s || (kubectl describe pods -l app.kubernetes.io/name=pulse && exit 1)@@ -177,10 +230,11 @@ jobs:--set persistence.enabled=false \--set server.secretEnv.create=true \--set server.secretEnv.data.API_TOKENS=test-token \- --wait --timeout 5m+ --wait --timeout 5m --debug# Cleanup- kind delete cluster --name pulse-test+ trap - ERR+ cleanupecho "✓ Smoke test passed"diff --git a/.github/workflows/publish-helm-chart.yml b/.github/workflows/publish-helm-chart.ymlindex 49bf723272..b725fec2aa 100644--- a/.github/workflows/publish-helm-chart.yml+++ b/.github/workflows/publish-helm-chart.yml@@ -20,17 +20,6 @@ jobs:contents: write # Required for gh release uploadpackages: writesteps:- - name: Checkout repository- uses: actions/checkout@v4- with:- fetch-depth: 0- fetch-tags: true-- - name: Set up Helm- uses: azure/setup-helm@v4- with:- version: v3.15.2-- name: Determine chart versionid: versionsrun: |@@ -65,7 +54,19 @@ jobs:echo "release_tag=$RELEASE_TAG" >> "$GITHUB_OUTPUT"echo "is_prerelease=$IS_PRERELEASE" >> "$GITHUB_OUTPUT"+ - name: Checkout repository+ uses: actions/checkout@v4+ with:+ fetch-depth: 0+ fetch-tags: true++ - name: Set up Helm+ uses: azure/setup-helm@v4+ with:+ version: v3.15.2+- name: Validate release line policy+ id: release_lineenv:RELEASE_TAG: ${{ steps.versions.outputs.release_tag }}APP_VERSION: ${{ steps.versions.outputs.app_version }}@@ -90,8 +91,16 @@ jobs:exit 1fi+ echo "required_branch=${REQUIRED_BRANCH}" >> "$GITHUB_OUTPUT"echo "[OK] ${RELEASE_TAG} validated against release line ${REQUIRED_BRANCH}"+ - name: Check out validated release tag+ env:+ RELEASE_TAG: ${{ steps.versions.outputs.release_tag }}+ run: |+ set -euo pipefail+ git checkout --detach "refs/tags/${RELEASE_TAG}"+- name: Align chart metadata linksrun: |python3 scripts/sync_chart_release_metadata.py \diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 3a99951f0a..ea140f8bb7 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -304,6 +304,12 @@ workflows such as Docker publication or demo updates, it must dispatch thoseworkflows on `needs.prepare.outputs.required_branch` rather than GitHub'sdefault-branch workflow definition, so prerelease automation cannot silentlyfall back onto stale `main`-branch inputs or older demo verification logic.+That same release-fidelity boundary also owns governed Helm publication. The+Helm release workflows must derive the owning branch from the target version via+`control_plane.py --branch-for-version` before any chart mutation or packaging,+must check out either that governed release branch or the validated release tag+before touching chart contents, and must never hardcode `main` as the push or+package source for prerelease Helm publication.That same promotion-governance package also owns the dated rehearsal-recordmaterialization path. The public recorder`scripts/release_control/record_rc_to_ga_rehearsal.py` and its internal modulediff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.pyindex 21a40322b4..1782ae0f6b 100644--- a/scripts/release_control/release_promotion_policy_test.py+++ b/scripts/release_control/release_promotion_policy_test.py@@ -340,6 +340,15 @@ class ReleasePromotionPolicyTest(unittest.TestCase):self.assertIn("does not descend from any matching prerelease tag", publish)self.assertIn("does not descend from any matching prerelease tag", promote)self.assertIn("Refusing cross-line Helm pages release", helm_pages)+ self.assertIn('echo "required_branch=${REQUIRED_BRANCH}" >> "$GITHUB_OUTPUT"', helm_pages)+ self.assertIn('git checkout -B "$REQUIRED_BRANCH" "origin/$REQUIRED_BRANCH"', helm_pages)+ self.assertIn('git pull --rebase origin "$REQUIRED_BRANCH"', helm_pages)+ self.assertIn('git push origin HEAD:"$REQUIRED_BRANCH"', helm_pages)+ self.assertNotIn("git pull --rebase origin main", helm_pages)+ self.assertNotIn("git push origin main", helm_pages)+ self.assertIn("helm status pulse || true", helm_pages)+ self.assertIn("kubectl describe pods -A || true", helm_pages)+ self.assertIn("kubectl get events -A --sort-by=.lastTimestamp || kubectl get events -A || true", helm_pages)self.assertIn('TARGET="preview-v6"', release_workflow)self.assertIn('TARGET="stable"', release_workflow)self.assertIn('gh workflow run update-demo-server.yml --ref "${REQUIRED_BRANCH}" -f tag="${{ needs.prepare.outputs.tag }}" -f target="${TARGET}"', release_workflow)@@ -347,6 +356,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):self.assertIn("sync_chart_release_metadata.py", helm_pages)self.assertIn("--chart deploy/helm/pulse/Chart.yaml", helm)self.assertIn("--chart deploy/helm/pulse/Chart.yaml", helm_pages)+ self.assertIn('git checkout --detach "refs/tags/${RELEASE_TAG}"', helm)self.assertNotIn("blob/main/docs/KUBERNETES.md", chart)self.assertNotIn("raw.githubusercontent.com/rcourtman/Pulse/main/docs/images/pulse-logo.svg", chart)self.assertIn("blob/{tag}/docs/KUBERNETES.md", chart_sync)