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.

Preserve draft release validation state

rcourtmana48fb63cb306
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 71c6054286..01284afcb4 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -699,5 +699,5 @@ jobs:
tag: ${{ needs.prepare.outputs.tag }}
version: ${{ needs.prepare.outputs.version }}
release_id: ${{ needs.create_release.outputs.release_id }}
- draft: false
+ draft: ${{ github.event.inputs.draft_only == 'true' }}
target_commitish: ${{ needs.create_release.outputs.target_commitish }}
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index dd12f3117e..8605b67c17 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -181,6 +181,11 @@ the manual `trigger-release*.sh` entrypoints must all derive their governed
release line from control-plane metadata before they touch public artifacts or
deployment targets, rather than treating tag names or workflow triggers as
enough proof on their own.
+That same release-validation boundary also owns draft-versus-published asset
+state. When `.github/workflows/create-release.yml` runs in `draft_only` mode,
+it must pass the real draft state into `.github/workflows/validate-release-assets.yml`
+so validation blocks or annotates the draft release as a draft, rather than
+misclassifying the run as post-publish revalidation.
That same governed demo-deployment boundary now owns target separation between
the public stable demo and the opt-in v6 preview demo. `.github/workflows/create-release.yml`,
`.github/workflows/update-demo-server.yml`, and `.github/workflows/deploy-demo-server.yml`
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 865eaeb9e7..30c3a731e1 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -71,6 +71,10 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
t.Fatalf("create-release.yml missing required installer upload step: %s", needle)
}
}
+
+ if !strings.Contains(workflow, `draft: ${{ github.event.inputs.draft_only == 'true' }}`) {
+ t.Fatal("create-release.yml must pass the actual draft_only state into validate-release-assets")
+ }
}
func TestDockerAndDemoBuildsUseCanonicalReleaseLdflags(t *testing.T) {
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index e35287c0ae..0ddc274d83 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -191,6 +191,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("- Promoted prerelease tag:", content)
self.assertIn("ga_date", content)
self.assertIn("v5_eos_date", content)
+ self.assertIn("draft: ${{ github.event.inputs.draft_only == 'true' }}", content)
self.assertIn("Derived rollback command:", helper)
self.assertIn("./scripts/install.sh --version", helper)
self.assertIn("v6 GA date to publish with GA", helper)