Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
priority/p2-mediumPriority P2: standard workscope/releaseThe release-please workflow, the changelog and the published artifactstype/bugType bug: the code does not do what it must
Description
Context & Rationale
devops release prepare <version> writes the changelog through _update_changelog_header (src/devops_cli/commands/release.py:405-449). When ## [<version>] already exists (:416-422), it rebuilds only that section and returns. It never touches ## [Unreleased], so every entry written since the last release stays under "Unreleased" after the cut.
This will happen on the next cut. abe6bb5 (#683, for #682) added ## [0.2.24] - 2026-09-28 (CHANGELOG.md:67) while v0.2.24 was still in progress. Every v0.2.24 PR since then has written to [Unreleased] (CHANGELOG.md:8-66). release prepare 0.2.24 would put only #682's entries in the 0.2.24 section and leave the rest of the release under "Unreleased".
Scope & Deliverables
- Deliverable: When the target version's header already exists and
[Unreleased]holds entries,release preparemoves those entries into the version section, merged by heading (Added, Removed, Fixed and so on, without repeating any), leaves[Unreleased]empty, and sets the date. - Acceptance criteria:
- A test with
## [Unreleased]holding Added and Fixed entries and## [0.9.0] - <old date>holding a Fixed entry runs_update_changelog_header(root, "0.9.0", "2026-10-02"). Afterwards one## [0.9.0] - 2026-10-02section holds all three entries under their headings, and## [Unreleased]is empty. - Every existing
tests/test_release*case passes unchanged. - Tests never touch the network.
uv run devops cipasses.
- A test with
- Key questions:
- Should a premature version header be an error instead? No (proposed). Merging is what a person would do by hand, and refusing would block a cut over formatting.
- Should the v0.2.24 data be fixed here? No. The v0.2.24 cut moves fix(review): remediate session 20260928-160843 findings, harden feedback loops & calibration #682's entries into
[Unreleased]itself, and adds the missing removal entries for feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 and fix(k8s): restore kubernetes cpu metrics and align monitoring dashboards to homelab-k3s (#737) #738. This item fixes the tool for later releases.
- Constraint: Released sections other than the target version are never rewritten.
Strategic Alignment
- Milestone: Backlog (no release)
- Depends on: none. Related: feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743, which generates changelog sections from closed items.
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/releaseThe release-please workflow, the changelog and the published artifactstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(changelog): curate release notes for v0.2.24 (#904)
feat(release): v0.2.24 (#905)
chore(release): open the v0.2.25 cycle (#918)
dan-petty commentedon Oct 2, 2026
Grooming (2026-10-02): Priority p1-high → p2-medium. Today nothing triggers the bug. CHANGELOG.md has no early [0.2.25] header, and the current process avoids opening one, so the v0.2.25 manual cut is safe. After #743 lands, the defect only affects the manual fallback. The failure is silently misplaced release notes, with no data loss. If the owner wants the guard before the v0.2.25 cut, it is Low effort but would displace a v0.2.25 item.
Checked against the code at the release/v0.2.25 tip.
feat(release): v0.2.25 (#1089)
dan-petty commentedon Oct 8, 2026
Closing as not planned: the premise no longer holds. Since #933, an item pull request adds a
changelog.d/fragment and readiness blocksCHANGELOG.mdedits, so## [Unreleased]stays empty (CHANGELOG.md:8at release/v0.2.29). The branch this item describes (commands/release.py:687-693) runs only when there are no fragments (:776), so nothing is left behind, and fragments merge into an open version section (release/changelog_fragments.py:244-246). Reopen with a case if a repository still keeps a hand-written[Unreleased].Found by the 2026-10-08 backlog review.