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.

Add historical backfill mode to create-release workflow

rcourtman9c2e3d5ffbd4
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index abf68c19fd..a89a2ea26b 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -37,6 +37,11 @@ on:
description: 'Stable only: reason for hotfix soak exception'
required: false
type: string
+ historical_asset_backfill_only:
+ description: 'Repair an already-published release packet in place without rebuilding binaries'
+ required: false
+ type: boolean
+ default: false
draft_only:
description: 'Create draft release only (do not publish)'
required: false
@@ -68,6 +73,7 @@ jobs:
v5_eos_date: ${{ steps.promotion.outputs.v5_eos_date }}
hotfix_exception: ${{ steps.promotion.outputs.hotfix_exception }}
hotfix_reason: ${{ steps.promotion.outputs.hotfix_reason }}
+ historical_asset_backfill_only: ${{ steps.extract.outputs.historical_asset_backfill_only }}
steps:
- name: Extract version
id: extract
@@ -91,11 +97,13 @@ jobs:
fi
SOURCE_BRANCH="${GITHUB_REF_NAME}"
+ HISTORICAL_ASSET_BACKFILL_ONLY=$(jq -r '.inputs.historical_asset_backfill_only // "false"' "$GITHUB_EVENT_PATH" 2>/dev/null || echo "false")
echo "tag=${TAG}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "is_prerelease=${IS_PRERELEASE}" >> $GITHUB_OUTPUT
echo "source_branch=${SOURCE_BRANCH}" >> $GITHUB_OUTPUT
- echo "Version: ${VERSION}, Tag: ${TAG}, Prerelease: ${IS_PRERELEASE}, Branch: ${SOURCE_BRANCH}"
+ echo "historical_asset_backfill_only=${HISTORICAL_ASSET_BACKFILL_ONLY}" >> $GITHUB_OUTPUT
+ echo "Version: ${VERSION}, Tag: ${TAG}, Prerelease: ${IS_PRERELEASE}, Branch: ${SOURCE_BRANCH}, HistoricalBackfillOnly: ${HISTORICAL_ASSET_BACKFILL_ONLY}"
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@@ -119,6 +127,7 @@ jobs:
echo "[OK] Governed release branch for ${{ steps.extract.outputs.version }} is ${REQUIRED_BRANCH}"
- name: Validate VERSION file
+ if: ${{ steps.extract.outputs.historical_asset_backfill_only != 'true' }}
run: |
FILE_VERSION=$(cat VERSION | tr -d '\n')
REQUESTED_VERSION="${{ steps.extract.outputs.version }}"
@@ -130,6 +139,7 @@ jobs:
echo "[OK] VERSION file matches requested version ($REQUESTED_VERSION)"
- name: Validate promotion policy
+ if: ${{ steps.extract.outputs.historical_asset_backfill_only != 'true' }}
id: promotion
env:
VERSION: ${{ steps.extract.outputs.version }}
@@ -176,6 +186,7 @@ jobs:
# Frontend checks run in parallel with backend tests
frontend_checks:
needs: prepare
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
@@ -204,6 +215,7 @@ jobs:
# Backend tests run in parallel with frontend checks
backend_tests:
needs: prepare
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 30
env:
@@ -252,6 +264,7 @@ jobs:
# Docker build - amd64 only for prereleases, multi-arch for stable
docker_build:
needs: prepare
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
@@ -313,6 +326,7 @@ jobs:
helm_smoke:
needs: prepare
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
@@ -417,7 +431,7 @@ jobs:
needs:
- prepare
- backend_tests
- if: ${{ needs.prepare.outputs.is_prerelease != 'true' }}
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' && needs.prepare.outputs.is_prerelease != 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
@@ -526,7 +540,7 @@ jobs:
- helm_smoke
- integration_tests
# Run if integration_tests passed OR was skipped (prereleases)
- if: ${{ always() && needs.frontend_checks.result == 'success' && needs.backend_tests.result == 'success' && needs.docker_build.result == 'success' && needs.helm_smoke.result == 'success' && (needs.integration_tests.result == 'success' || needs.integration_tests.result == 'skipped') }}
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' && always() && needs.frontend_checks.result == 'success' && needs.backend_tests.result == 'success' && needs.docker_build.result == 'success' && needs.helm_smoke.result == 'success' && (needs.integration_tests.result == 'success' || needs.integration_tests.result == 'skipped') }}
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
@@ -845,10 +859,63 @@ jobs:
echo "Release: ${{ needs.prepare.outputs.tag }}"
echo "URL: ${{ steps.create_release.outputs.release_url }}"
+ backfill_release_assets:
+ needs:
+ - prepare
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only == 'true' }}
+ runs-on: ubuntu-24.04
+ timeout-minutes: 30
+ permissions:
+ contents: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+
+ - name: Set up Go
+ uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
+ with:
+ go-version: '1.25.9'
+ cache: true
+
+ - name: Install Syft
+ run: |
+ set -euo pipefail
+
+ SYFT_VERSION="1.42.4"
+ SYFT_ARCHIVE="syft_${SYFT_VERSION}_linux_amd64.tar.gz"
+ SYFT_SHA256="590650c2743b83f327d1bf9bec64f6f83b7fec504187bb84f500c862bf8f2a0f"
+ TMP_DIR="$(mktemp -d)"
+ trap 'rm -rf "$TMP_DIR"' EXIT
+
+ curl -fsSL "https://github.com/anchore/syft/releases/download/v${SYFT_VERSION}/${SYFT_ARCHIVE}" \
+ -o "${TMP_DIR}/${SYFT_ARCHIVE}"
+ printf '%s %s\n' "${SYFT_SHA256}" "${TMP_DIR}/${SYFT_ARCHIVE}" | sha256sum --check --
+ tar -xzf "${TMP_DIR}/${SYFT_ARCHIVE}" -C "${TMP_DIR}" syft
+ install -m 0755 "${TMP_DIR}/syft" /usr/local/bin/syft
+ syft version
+
+ - name: Backfill published release assets
+ env:
+ GH_TOKEN: ${{ github.token }}
+ PULSE_UPDATE_SIGNING_KEY: ${{ secrets.PULSE_UPDATE_SIGNING_KEY }}
+ run: |
+ ./scripts/backfill-release-assets.sh --tag "${{ needs.prepare.outputs.tag }}" --repo "${{ github.repository }}"
+
+ - name: Validate published release packet
+ run: |
+ ./scripts/validate-published-release.sh "${{ needs.prepare.outputs.tag }}" "${{ github.repository }}"
+
+ - name: Summary
+ run: |
+ echo "[SUCCESS] Historical release assets repaired"
+ echo "Release: ${{ needs.prepare.outputs.tag }}"
+
validate_release_assets:
needs:
- prepare
- create_release
+ if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
uses: ./.github/workflows/validate-release-assets.yml
secrets: inherit
with:
diff --git a/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md b/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md
index 5dd10a15f9..2c18e0018e 100644
--- a/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md
+++ b/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md
@@ -8,24 +8,21 @@
1. The latest shipped Pulse v6 prerelease tag is `v6.0.0-rc.2`.
2. That shipped prerelease tag resolves to commit `7b0bdebdff8127228708e84eb836cfd3d7214c08`.
-3. The selected remote ref `origin/pulse/v6-release` is still behind the current
- local governed branch state, so `Release Dry Run` would exercise stale remote
- control-plane metadata instead of the intended candidate.
-4. The governed release profile in `docs/release-control/control_plane.json`
+3. The governed release profile in `docs/release-control/control_plane.json`
currently declares both `prerelease_branch` and `stable_branch` as
`pulse/v6-release`.
-5. The active control-plane target is still `v6-product-lane-expansion`, not
+4. The active control-plane target is still `v6-product-lane-expansion`, not
`v6-ga-promotion`.
-6. The active local `pulse/v6-release` branch currently reports `VERSION=6.0.0`, so a
+5. The active local `pulse/v6-release` branch currently reports `VERSION=6.0.0`, so a
local GA candidate exists on the governed stable line.
-7. There is still no governed `Prerelease-to-GA Rehearsal Record` proving a successful
+6. There is still no governed `Prerelease-to-GA Rehearsal Record` proving a successful
non-publish `Release Dry Run` for the current `6.0.0` candidate.
-8. `docs/releases/RELEASE_NOTES_v6.md` and
+7. `docs/releases/RELEASE_NOTES_v6.md` and
`docs/release-control/v6/internal/V5_MAINTENANCE_SUPPORT_POLICY.md` now carry the
currently proposed exact dates for the eventual GA notice:
- `v6` GA date: `2026-04-20`
- `v5` end-of-support date: `2026-07-19`
-9. There is still no governed `Release Dry Run` artifact or rehearsal record
+8. There is still no governed `Release Dry Run` artifact or rehearsal record
exercising stable inputs for:
- `version=6.0.0`
- `promoted_from_tag=v6.0.0-rc.2`
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 537cba7c0d..6b5977bdc8 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -1071,8 +1071,9 @@ checksum-only trust and can publish a shareable non-image software inventory
alongside the signed binaries.
Historical published-release repair must flow through
`scripts/backfill-release-assets.sh` and
-`.github/workflows/backfill-release-assets.yml`, which download the
-already-published packet and regenerate only the derived integrity assets
+`.github/workflows/backfill-release-assets.yml` or the canonical
+`.github/workflows/create-release.yml` historical backfill mode, which download
+the already-published packet and regenerate only the derived integrity assets
(`checksums.txt`, `.sha256`, `.sig`, `.sshsig`, and the canonical
release-packet SBOM`) from those shipped bytes instead of rebuilding binaries
from the current branch tip.
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 375bdffa11..944b7bae35 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -89,6 +89,8 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
workflow := string(content)
required := []string{
+ `historical_asset_backfill_only:`,
+ `description: 'Repair an already-published release packet in place without rebuilding binaries'`,
`SYFT_VERSION="1.42.4"`,
`SYFT_ARCHIVE="syft_${SYFT_VERSION}_linux_amd64.tar.gz"`,
`SYFT_SHA256="590650c2743b83f327d1bf9bec64f6f83b7fec504187bb84f500c862bf8f2a0f"`,
@@ -114,6 +116,11 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
`gh api "repos/${{ github.repository }}/releases?per_page=100" --paginate`,
`git push origin "refs/tags/${TAG}" --force`,
`-F target_commitish="${HEAD_SHA}"`,
+ `historical_asset_backfill_only=${HISTORICAL_ASSET_BACKFILL_ONLY}`,
+ `if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}`,
+ `if: ${{ needs.prepare.outputs.historical_asset_backfill_only == 'true' }}`,
+ `./scripts/backfill-release-assets.sh --tag "${{ needs.prepare.outputs.tag }}" --repo "${{ github.repository }}"`,
+ `./scripts/validate-published-release.sh "${{ needs.prepare.outputs.tag }}" "${{ github.repository }}"`,
}
for _, needle := range required {
if !strings.Contains(workflow, needle) {
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index 85735ab77b..a8bfa2ee42 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -263,11 +263,18 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("build_promotion_metadata_section", renderer)
self.assertIn("Planned GA date", renderer)
self.assertIn("Planned v5 end-of-support date", renderer)
+ self.assertIn("historical_asset_backfill_only:", content)
+ self.assertIn("Repair an already-published release packet in place without rebuilding binaries", content)
self.assertIn("draft: ${{ github.event.inputs.draft_only == 'true' }}", content)
self.assertIn('gh api "repos/${{ github.repository }}/releases?per_page=100" --paginate', content)
self.assertIn('git push origin "refs/tags/${TAG}" --force', content)
self.assertIn('Retargeting existing draft tag ${TAG}', content)
self.assertIn('-F target_commitish="${HEAD_SHA}"', content)
+ self.assertIn('historical_asset_backfill_only=${HISTORICAL_ASSET_BACKFILL_ONLY}', content)
+ self.assertIn("if: ${{ needs.prepare.outputs.historical_asset_backfill_only != 'true' }}", content)
+ self.assertIn("if: ${{ needs.prepare.outputs.historical_asset_backfill_only == 'true' }}", content)
+ self.assertIn('./scripts/backfill-release-assets.sh --tag "${{ needs.prepare.outputs.tag }}" --repo "${{ github.repository }}"', content)
+ self.assertIn('./scripts/validate-published-release.sh "${{ needs.prepare.outputs.tag }}" "${{ github.repository }}"', content)
self.assertIn("PULSE_UPDATE_SIGNING_KEY: ${{ secrets.PULSE_UPDATE_SIGNING_KEY }}", content)
self.assertIn('SYFT_VERSION="1.42.4"', content)
self.assertIn('SYFT_ARCHIVE="syft_${SYFT_VERSION}_linux_amd64.tar.gz"', content)
@@ -300,7 +307,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn('pulse_release_go_run_update_key public-key --private-key "${PULSE_UPDATE_SIGNING_KEY}"', release_asset_helper)
self.assertIn('pulse_release_go_run_update_key public-key-ssh --private-key "${PULSE_UPDATE_SIGNING_KEY}"', release_asset_helper)
self.assertIn('pulse_release_go_run_update_key openssh-private-key --private-key "${PULSE_UPDATE_SIGNING_KEY}"', release_asset_helper)
- self.assertIn('pulse_release_go_run_update_key sign --private-key "${PULSE_UPDATE_SIGNING_KEY}" --file "${file}"', release_asset_helper)
+ self.assertIn('pulse_release_go_run_update_key sign --private-key "${PULSE_UPDATE_SIGNING_KEY}" --file "${absolute_file}"', release_asset_helper)
self.assertIn('"${resolved_tool}" "dir:${release_dir}" -o "spdx-json=${tmp_sbom}"', release_asset_helper)
self.assertIn('find . -maxdepth 1 -type f \\( -name \'*.sig\' -o -name \'*.sshsig\' \\) -delete', release_asset_helper)
self.assertIn('source "${SCRIPT_DIR}/release_asset_common.sh"', backfill_script)