From eec06715002bb998893557206bd26229fd28a46d Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Sun, 8 Nov 2026 00:40:20 +0100 Subject: [PATCH] test: stop flagging the 2.0 release feature as changelog bookkeeping The bookkeeping check matched any entry starting with "Release" and a digit, so the real feature "Release 2.0, because upgrading from 1.x now needs a step" failed it and blocked the CHANGELOG regeneration PR. It now matches only a bare version line. --- tests/test_beads_batch_58.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_beads_batch_58.py b/tests/test_beads_batch_58.py index cac43be9..8b7eb644 100644 --- a/tests/test_beads_batch_58.py +++ b/tests/test_beads_batch_58.py @@ -346,5 +346,7 @@ def test_the_release_rule_precedes_the_generic_chore_rule(self): def test_no_release_bookkeeping_leaks_into_the_changelog(self): """The outcome, not just the ordering.""" entries = [ln for ln in CHANGELOG.read_text(encoding="utf-8").splitlines() if ln.startswith("- ")] - leaked = [e for e in entries if re.match(r"- (chore\(release\)|Release v?[0-9])", e)] + # Bookkeeping is a bare version line ("Release v1.2.3"), not a feature whose + # subject starts with the word, such as "Release 2.0, because ..." (#652). + leaked = [e for e in entries if re.match(r"- (chore\(release\)|Release v?\d+(\.\d+)*( \(#\d+\))?$)", e)] assert not leaked, leaked