Expand description
The cumulative migration note (#3178).
design/bynk-release-discipline.md promises each release an upgrade note:
what breaks, and how to move. It is assembled, not remembered. An increment
declares breaking: in its pending file; the stamp (crate::stamp) writes
it under the increment’s version into the Book page UPGRADING_PAGE; and
release_section — behind cargo xtask release-notes — reads that page to
build the “Upgrading from vPREV” section of a release body, covering every
version after the previous release up to and including this one.
The page is the canonical record; the release body is derived from it, so the two cannot drift.
Constants§
- ENTRIES_
MARKER - The marker the stamp inserts new entries after (newest first). It is an HTML comment so it is invisible in the rendered page.
- UPGRADING_
PAGE - The Book’s upgrading page, relative to the repo root.
Functions§
- check_
page - Consistency problems on the upgrading page (empty means consistent).
- insert_
upgrading_ entries - Insert
entries(already newest-first) straight afterENTRIES_MARKER. - parse_
entries - Every
(version, note)entry on the page, in page order (newest first). - parse_
release_ tag - The version a release tag names:
vX.Y.Z, with any pre-release suffix (v0.16.0-rc1) dropped, asrelease.yml’s verify job does, so a pre-release tag still gets a release body. - previous_
tag - The release before
currentamongtags: the greatest plainvX.Y.Ztag strictly below it. Pre-release tags (v0.16.0-rc1) and anything unparseable are ignored. - release_
section - The release-body section: breaking changes in
(prev, tag], oldest first. Always a section, even when empty, so a reader can tell “nothing breaks” from “nobody wrote the note”. - upgrading_
entry - One page entry: a
## vX.Y.Zheading and the note.