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.

Make blocked-record drift self-fixable via BLESS_GOVERNANCE_FIXTURES env var

rcourtman816b3985ba76
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 927c72b5bd..e080116758 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,25 +8,22 @@
1. The latest shipped Pulse v6 prerelease tag is `v6.0.0-rc.5`.
2. That shipped prerelease tag resolves to commit `e32db04543c7fb20f2cac782dafbf3422a13dfe3`.
-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-rc.5`, so the
+5. The active local `pulse/v6-release` branch currently reports `VERSION=6.0.0-rc.5`, so the
working line is still prerelease and there is not yet a governed local stable
`6.0.0` candidate.
-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 eventual stable `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.5`
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index b5c5212216..27e315dd15 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -697,7 +697,24 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
matrix = read("docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md")
self.assertIn(promotion_metadata_envelope(), normalize_ws(matrix))
expected = blocked_record.build_blocked_record(record_date="2026-04-04")
- self.assertEqual(blocked, expected)
+ if blocked != expected:
+ record_path = REPO_ROOT / "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md"
+ if os.environ.get("BLESS_GOVERNANCE_FIXTURES") == "1":
+ record_path.write_text(expected, encoding="utf-8")
+ self.skipTest(
+ "Regenerated rc-to-ga-promotion-readiness-blocked-2026-04-04.md "
+ "under BLESS_GOVERNANCE_FIXTURES=1; stage the file and rerun without the env var."
+ )
+ self.fail(
+ "Blocked-record fixture drifted from build_blocked_record() output. "
+ "This usually means VERSION bumped or a new RC tag landed since the "
+ "fixture was last regenerated. To fix, run either:\n"
+ " python3 scripts/release_control/record_rc_to_ga_blocked.py "
+ "--output docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-04-04.md "
+ "--record-date 2026-04-04\n"
+ " (or)\n"
+ " BLESS_GOVERNANCE_FIXTURES=1 python3 -m unittest release_promotion_policy_test"
+ )
if __name__ == "__main__":