From 01a9bd2734d952ed99086d15a417177bba800a7f Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 23 Jul 2026 13:31:31 +0100 Subject: [PATCH] Fix stable patch workflow dispatch input types Contract-Neutral: Correct workflow_dispatch JSON value encoding without changing the governed release contract. --- scripts/release_control/release_promotion_policy_test.py | 7 +++++++ scripts/trigger-stable-patch.sh | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py index 17d3ae0dbd..038e6c43e2 100644 --- a/scripts/release_control/release_promotion_policy_test.py +++ b/scripts/release_control/release_promotion_policy_test.py @@ -1128,6 +1128,13 @@ class ReleasePromotionPolicyTest(unittest.TestCase): self.assertIn("--unsigned-windows-exception", helper) self.assertIn("unsigned_windows_exception", helper) self.assertIn("unsigned_windows_reason", 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.assertIn("Single-Build Release Path", policy) self.assertIn("Routine Stable Patch Path", policy) self.assertIn("single publish workflow performs the exact-SHA preflight", normalize_ws(policy)) diff --git a/scripts/trigger-stable-patch.sh b/scripts/trigger-stable-patch.sh index 241eec754b..33fbd8ea3c 100755 --- a/scripts/trigger-stable-patch.sh +++ b/scripts/trigger-stable-patch.sh @@ -214,11 +214,11 @@ else --arg rollback_version "$ROLLBACK_TAG" \ --arg ga_date "" \ --arg 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" \ '{