Repository navigation
changelog: one fragment file per change instead of a shared latest.md - #467
KonradBreitsprecherBkd wants to merge 3 commits into
Conversation
Every PR appended its entry to the same spot in docs/changelog/versions/latest.md, so any two PRs with changelog entries conflicted and needed a rebase and force push. Each PR now adds docs/changelog/unreleased/<section>/<name>.md. docs/changelog/assemble.py renders them; the docs build generates latest.md from them (no longer checked in), and bump_version.py writes them to versions/<version>.md and deletes them at release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
Before, the release manager replaced UNRELEASED with the release date in latest.md, so the release's docs and packages showed it. The fragments have no such place: docs/changelog/unreleased/RELEASE_DATE now holds it, and bump_version.py uses it as default date and deletes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
Replaces RELEASE_DATE. The delivery's first step, which used to set the date in latest.md, now runs SilKit/ci/finalize_changelog.py: it writes the fragments to versions/<version>.md with the release date and deletes them, so the delivery build carries the final changelog. bump_version.py at the end of the delivery only bumps the version, and refuses to run before the changelog is finalized. Fragments merged between the two belong to the next version; latest.md shows them as [Unreleased], and is left out of the docs while there are none. The docs build generates the version list of overview.rst, so neither script edits it. The installed CHANGELOG.md is the finalized page if there is one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
|
@KonradBreitsprecherBkd thought about this a bit. if we keep the meta infos / the changelog fragments in the commit messages of the PR branch, there wouldnt be any conflicts. then we could just run a single 'update changelog' workflow that collects commit messages on main and assembles a new changelog file with the {changed, fixed, added, removed, admonitions} entries. |
|
This would work as well. Ideally, we could craft a So it is more or less ensured that the author thought about it. |
|
I’ve weighed the different ideas against each other. The "commit message" approach sounds elegant, but it has a few drawbacks:
|
Summary
Every PR appended its changelog entry to the same spot in
docs/changelog/versions/latest.md, so any two PRs with entries conflicted (e.g. #439) and needed a rebase + force push. Now each PR adds a file of its own:Sections are the folders
notes/(free-form, goes first),added/,changed/,deprecated/,removed/,fixed/. A fragment is one or more-list items.Release flow, matching the delivery steps:
start of delivery ("Update Release date in Changelog") - edit latest.md: UNRELEASED -> date + SilKit/ci/finalize_changelog.py --date YYYY-MM-DD + unreleased/*/*.md -> versions/<version>.md, delete fragments delivery build, promote, ... end of delivery bump_version.py X.Y.Z patch SilKitVersionMacros.h - rename latest.md -> <current>.md, reset latest.md, edit overview.rst + (refuses to run before the changelog is finalized)latest.md# [5.0.9] - UNRELEASED+ fragments# [Unreleased], empty# [Unreleased]+ fragments# [5.0.10] - UNRELEASED+ fragmentsThe installed
CHANGELOG.mdisversions/<version>.mdonce finalized, elselatest.md.Also: the PR template asks for a fragment instead of
Changelog.md,check_files_changed.pytreats fragment-only PRs like the formerlatest.md-only PRs (no builds), anddocs/development/release.mddescribes the flow.Evidence
## Changedinlatest.md→ conflict on whichever merges second.After: they add two different files → no conflict.
bump_version.py 5.0.10before finalizing →error: docs/changelog/versions/5.0.9.md does not exist; finalize the changelog first# [5.0.9] - UNRELEASED, toctreelatest.md, 5.0.8.md, …finalize_changelog.py --date 2026-12-15→5.0.9.mdwith# [5.0.9] - 2026-12-15, fragments deleted, toctree5.0.9.md, 5.0.8.md, …(nolatest)# [Unreleased], toctreelatest.md, 5.0.9.md, …error: … 5.0.9.md already exists; bump the version firstbump_version.py 5.0.10→# [5.0.10] - UNRELEASEDwith the new fragmentassemble.py --checkwith a per-file message.Merge Danger
Door: two-way
Revert restores
latest.mdand the old bump script.Blast Radius: contributors, release process
latest.mdget a modify/delete conflict once: move the entry into a fragment andgit rm docs/changelog/versions/latest.md.update-changelogs.ymlandscripts/silkit_tgz.pyreadlatest.mdfrom the sil-kit checkout, which no longer exists there.versions/<version>.md.🤖 Generated with Claude Code