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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(release): enforce plain changelog punctuation
rcourtman1e7542311698
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 433e91dbf4..24abdfb62e 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -47,6 +47,9 @@ release-body validator runs afterward, and one constrained repair pass maycorrect formatting without changing the selected meaning. Public bullets stayindividually bounded for readability, but the harness does not impose an itemcount that would choose which otherwise-valid user outcomes must disappear.+New customer release notes use plain punctuation and fail validation when they+contain a semicolon or em dash. Already-published packets remain historical+artifacts and retain the punctuation with which they were released.Customer-facing notes use one outcome list for features and fixes. Each visiblechange is described once under `What's improved`; a parallel `Fixes` section isdiff --git a/docs/releases/RELEASE_NOTES_TEMPLATE.md b/docs/releases/RELEASE_NOTES_TEMPLATE.mdindex 68ece5a3fe..c2b24234c1 100644--- a/docs/releases/RELEASE_NOTES_TEMPLATE.md+++ b/docs/releases/RELEASE_NOTES_TEMPLATE.md@@ -5,9 +5,9 @@ what feels better or works now, not how it was implemented.## What's improved-- **Short outcome** — Explain where users notice it and why it matters.-- **Short outcome** — Keep each item concrete and independently useful.-- **Short outcome** — Include fixes here as outcomes rather than repeating+- **Short outcome** - Explain where users notice it and why it matters.+- **Short outcome** - Keep each item concrete and independently useful.+- **Short outcome** - Include fixes here as outcomes rather than repeatingthem in a second section.Use a concise set of meaningful improvements. A narrow patch may use fewer@@ -15,7 +15,8 @@ rather than padding the notes with internal work. Each user-visible changebelongs in this list exactly once. Prefer observable behavior over componentnames, group related implementation work into one user-recognizable theme, anduse plain language. Each complete bullet, including Markdown links, must be no-more than 260 characters.+more than 260 characters. New release notes must not contain semicolons or em+dashes.For an RC, cover only changes since the immediately preceding RC (or theprevious stable release for RC1). Do not repeat improvements already announced@@ -26,7 +27,7 @@ the RC notes or attempt to list every commit. The generator supplies the range,read-only repository and GitHub tools, an unbounded factual investigation, anindependent draft that cannot see that investigation, and a final model thatreceives both. The models decide what to inspect, what matters, and how to tell-the release story; the harness owns the release boundary, public format, safety+the release story. The harness owns the release boundary, public format, safetyconstraints, and optional per-pass traces.Do not add a separate `Fixes` section. That shape encourages the same change todiff --git a/scripts/generate-release-notes.sh b/scripts/generate-release-notes.shindex ea1a18640b..300eb25128 100755--- a/scripts/generate-release-notes.sh+++ b/scripts/generate-release-notes.sh@@ -131,10 +131,10 @@ read -r -d '' NOTE_FORMAT <<EOF || true## What's improved-- **[Short outcome]** — [Where users notice it and why it matters.]+- **[Short outcome]** - [Where users notice it and why it matters.][Use a concise set of meaningful bullets. Each full bullet, including Markdown-links, must be 260 characters or fewer.]+links, must be 260 characters or fewer. Use no semicolon or em dash characters.]## Before you upgradediff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 18630b8b58..c69f0ea745 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -3123,6 +3123,8 @@ func TestReleaseNotesGeneratorResolvesChannelSpecificComparisonRanges(t *testing"RELEASE_NOTES_TRACE_DIR","validate-notes-file /dev/stdin","260 characters or fewer",+ "Use no semicolon or em dash characters",+ "- **[Short outcome]** - [Where users notice it and why it matters.]","requesting one constrained revision",} {if !strings.Contains(string(generatorContent), required) {diff --git a/scripts/release_control/render_release_body.py b/scripts/release_control/render_release_body.pyindex 25f4aed2bb..654399828c 100644--- a/scripts/release_control/render_release_body.py+++ b/scripts/release_control/render_release_body.py@@ -183,6 +183,19 @@ def _requires_single_change_list(version: str) -> bool:return rc_match is None or int(rc_match.group(1)) >= 6+def _requires_plain_release_punctuation(version: str) -> bool:+ """Apply the punctuation rule after the already-published v6.4 RC packets."""++ normalized = version.lower().removeprefix("v")+ core = _release_core(normalized)+ if core is None or core < (6, 4, 0):+ return False+ if core > (6, 4, 0):+ return True+ rc_match = re.fullmatch(r"6\.4\.0-rc\.(\d+)", normalized)+ return rc_match is None or int(rc_match.group(1)) >= 7++def _section_lines(text: str, heading_index: int) -> list[str]:lines = _normalize_newlines(text).splitlines()section: list[str] = []@@ -215,6 +228,12 @@ def _validate_customer_facing_release_notes(text: str, version: str) -> None:"""Enforce concise public notes without release-control implementation prose."""lines = _normalize_newlines(text).strip().splitlines()+ if _requires_plain_release_punctuation(version) and any(+ character in text for character in (";", "—")+ ):+ raise ReleaseBodyIntegrityError(+ "customer-facing release notes must not contain semicolons or em dashes"+ )first_section_index = next((index for index, line in enumerate(lines) if re.fullmatch(r"##[ \t]+\S.*", line)),None,diff --git a/scripts/release_control/render_release_body_test.py b/scripts/release_control/render_release_body_test.pyindex 68f2c2f451..2dfe7f93c9 100644--- a/scripts/release_control/render_release_body_test.py+++ b/scripts/release_control/render_release_body_test.py@@ -286,7 +286,7 @@ Pulse is faster and more predictable in larger environments.## What's improved-- **Safer releases** — Every immutable candidate now crosses an exact-SHA gate.+- **Safer releases** - Every immutable candidate now crosses an exact-SHA gate."""with self.assertRaisesRegex(@@ -313,7 +313,7 @@ Pulse is faster and more predictable in larger environments.def test_customer_story_is_not_forced_into_a_fixed_item_count(self) -> None:bullets = "\n".join(- f"- **Useful outcome {index}** — Users can understand change {index}."+ f"- **Useful outcome {index}** - Users can understand change {index}."for index in range(1, 8))notes = f"""# Pulse v6.4.0 Release Notes@@ -327,6 +327,52 @@ Pulse has a concise set of improvements across the product.render_release_body.validate_release_notes_shape(notes, "6.4.0")+ def test_new_release_notes_reject_semicolons(self) -> None:+ notes = """# Pulse v6.4.0 Release Notes++Pulse is faster; pages are steadier.++## What's improved++- **Faster pages** - Tables stay responsive as estates grow.+"""++ with self.assertRaisesRegex(+ render_release_body.ReleaseBodyIntegrityError,+ "semicolons or em dashes",+ ):+ render_release_body.validate_release_notes_shape(notes, "6.4.0")++ def test_new_release_notes_reject_em_dashes(self) -> None:+ notes = """# Pulse v6.4.0-rc.7 Release Notes++Pulse is faster and pages are steadier.++## What's improved++- **Faster pages** — Tables stay responsive as estates grow.+"""++ with self.assertRaisesRegex(+ render_release_body.ReleaseBodyIntegrityError,+ "semicolons or em dashes",+ ):+ render_release_body.validate_release_notes_shape(notes, "6.4.0-rc.7")++ def test_punctuation_rule_grandfathers_published_v640_rc_packets(self) -> None:+ self.assertFalse(+ render_release_body._requires_plain_release_punctuation("6.4.0-rc.6")+ )+ self.assertTrue(+ render_release_body._requires_plain_release_punctuation("6.4.0-rc.7")+ )+ self.assertTrue(+ render_release_body._requires_plain_release_punctuation("6.4.0")+ )+ self.assertTrue(+ render_release_body._requires_plain_release_punctuation("6.4.1")+ )+def test_canonical_template_keeps_machine_process_out_of_customer_notes(self) -> None:template = (_REPO_ROOT / "docs/releases/RELEASE_NOTES_TEMPLATE.md"@@ -342,6 +388,10 @@ Pulse has a concise set of improvements across the product.self.assertIn("what matters, and how to tell", template)self.assertIn("the release story", template)self.assertIn("more than 260 characters", template)+ self.assertIn("must not contain semicolons or em", template)+ self.assertIn("dashes", template)+ self.assertNotIn(";", template)+ self.assertNotIn("—", template)self.assertIn("Do not add a separate `Fixes` section", template)self.assertNotIn("\n## Fixes\n", template)self.assertIn("pipeline appends the `Install` and `Roll back` sections", template)