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 workflow JSON input transport

rcourtmand4609665dce7
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index aaf7e9f422..da02498604 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -1615,9 +1615,12 @@ installation and promotion metadata sections exactly once, rather than trusting
raw packet text to already be publish-safe.
Release-note transport is file-backed and fail-closed: operator helpers must
send the Markdown through JSON input rather than multiline form-field
-substitution, the renderer must reject missing standalone title/section
-structure before any tag or draft mutation, and draft creation must compare
-GitHub's stored body with the exact rendered file before asset upload.
+substitution, and every `gh workflow run --json` input value must be encoded as
+a string because the GitHub CLI unmarshals that payload into a string map before
+GitHub applies the workflow's declared input types. The renderer must reject
+missing standalone title/section structure before any tag or draft mutation,
+and draft creation must compare GitHub's stored body with the exact rendered
+file before asset upload.
`validate-release-assets.yml` must repeat the structural check before validating
assets, preserve the authored body through validation-status edits, and compare
the API response with the pre-edit body. A malformed edited body is quarantined
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index fcc7a12c0a..1ca1efd69d 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -596,6 +596,13 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("--validate-notes-file \"$NOTES_FILE\"", helper)
self.assertIn("--rawfile release_notes \"$NOTES_FILE\"", helper)
self.assertIn("gh workflow run create-release.yml --ref \"$CURRENT_BRANCH\" --json", helper)
+ self.assertIn('--arg hotfix_exception "$HOTFIX_EXCEPTION"', helper)
+ self.assertIn(
+ '--arg unsigned_windows_exception "$UNSIGNED_WINDOWS_EXCEPTION"',
+ helper,
+ )
+ self.assertIn('--arg draft_only "false"', helper)
+ self.assertNotIn("--argjson", helper)
self.assertNotIn('-f release_notes="$(cat "$NOTES_FILE")"', helper)
self.assertIn("--validate-notes-file \"$NOTES_FILE\"", stable_patch_helper)
self.assertIn("--rawfile release_notes \"$NOTES_FILE\"", stable_patch_helper)
diff --git a/scripts/trigger-release.sh b/scripts/trigger-release.sh
index 2d27ba2f1c..0f6a3a5a4c 100755
--- a/scripts/trigger-release.sh
+++ b/scripts/trigger-release.sh
@@ -315,11 +315,11 @@ if [ -n "$NOTES_FILE" ]; then
--arg promoted_from_tag "$PROMOTED_FROM_TAG" \
--arg ga_date "$GA_DATE" \
--arg v5_eos_date "$V5_EOS_DATE" \
- --argjson hotfix_exception "$HOTFIX_EXCEPTION" \
+ --arg hotfix_exception "$HOTFIX_EXCEPTION" \
--arg hotfix_reason "$HOTFIX_REASON" \
- --argjson unsigned_windows_exception "$UNSIGNED_WINDOWS_EXCEPTION" \
+ --arg unsigned_windows_exception "$UNSIGNED_WINDOWS_EXCEPTION" \
--arg unsigned_windows_reason "$UNSIGNED_WINDOWS_REASON" \
- --argjson draft_only false \
+ --arg draft_only "false" \
--arg mobile_release_decision "$MOBILE_RELEASE_DECISION" \
--arg mobile_release_evidence "$MOBILE_RELEASE_EVIDENCE" \
'{