Skip to content

docs(upgrade): give each upgrade note a file of its own - #1577

Open
LeeroyHannigan wants to merge 2 commits into
mainfrom
docs/upgrade-notes-files
Open

LeeroyHannigan wants to merge 2 commits into
mainfrom
docs/upgrade-notes-files

Conversation

@LeeroyHannigan

@LeeroyHannigan LeeroyHannigan commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

What

Each upgrade note for the next release is now a file of its own in docs/manuals/upgrade-notes/. At release time, the notes move into "Behavior Changes by Release" in docs/manuals/07-upgrade-manual.md.

  • The six ### v1.2.0: entries of the manual move into six note files, byte for byte. Each heading loses only v1.2.0: . The sixth, for fix: answer UPDATING while an UpdateTable change applies #1093, came with the merge of main at 1e2ebdd.
  • devtools/upgrade-notes check checks the name, the heading, the body and the final newline of each note. It also fails on a manual entry for a version above the workspace version in Cargo.toml.
  • devtools/upgrade-notes assemble X.Y.Z adds each note to the manual as a ### vX.Y.Z: entry, then deletes the note files. It writes nothing when a check fails.
  • The Scripts test workflow runs these checks when a PR changes the notes or the manual.
  • doc_version_literals.rs exempts the notes directory, as it exempts the manual, because the entries name versions on purpose.
  • docs/manuals/upgrade-notes/README.md gives the format and the release step. CONTRIBUTING.md and packaging/README.md name the new steps.

Why

Each PR that changes behavior adds its entry at the top of the same section of the manual. So each merge puts the other open PRs in conflict. On 3 Dec 2026, the merge of #1087 put 13 open PRs in conflict in that file. #1446 and #1531 put each other in conflict on the same day. On 2 Dec, the merge of #1403 put four open PRs in conflict. Each conflict costs a merge of main, a CI run and a new approval. Two PRs that add two note files do not conflict.

devtools/upgrade-notes repeats two short reads from other scripts. One is the VERSION_RE pattern of devtools/freeze-migrations. The other is the workspace version, which workspace_version in devtools/check-crate-packages reads from the output of cargo metadata. An import of either script needs a module loader that is longer than the line it replaces.

Not in this PR

  • This merge puts each open PR that adds a ### v1.2.0: entry to the manual in conflict once. That PR resolves the conflict when it deletes its manual hunk and adds a note file.
  • ci(release): keep a release PR open with release-please #1467 is not merged. Its release PR can run assemble later, and its text in packaging/README.md can then name a note file.

Testing done

  • python3 devtools/upgrade_notes_test.py: 6 tests pass. The devtools suite, as the workflow runs it, passes all 202 tests, also on the sparse checkout of the workflow.
  • devtools/upgrade-notes check passes on this branch. On the manual of main at 1e2ebdd, it fails on the six v1.2.0 entries.
  • A script compared the six notes with the entries of main at 1e2ebdd: each body is the same, byte for byte.
  • cargo test -p extenddb-storage-postgres --test doc_version_literals: 3 passed. A note line with a version number after ExtendDB passes with the new exemption and fails without it.
  • A script made 12 mutants of devtools/upgrade-notes. A test caught each one.
  • actionlint on the workflow: no findings.
  • Not run: docs/build-docs.py, because the markdown package is not on the build host, and clippy on the test change, which CI runs.

Checklist

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, or public CLI surface, an RFC has been accepted or is linked
    below. Otherwise, an ADR captures the decision (link below).

ADR / RFC: n/a


By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.

A PR that changed behavior added its entry at the top of the next
version's entries in "Behavior Changes by Release". Two open PRs then
edited the same lines, and each merge put the others in conflict. On
3 Dec 2026, the merge of #1087 put 13 open PRs in conflict in that file.

A note is now one file in docs/manuals/upgrade-notes/, named for its
issue or PR number. Its first line is the heading of the entry without
the version. "devtools/upgrade-notes check" checks the name, the
headings, the body and the last line of each note. It also fails when
the manual has an entry for a version above the workspace version in
Cargo.toml. The Scripts test workflow runs it when a PR changes the
notes, the manual or devtools. In the release commit,
"devtools/upgrade-notes assemble X.Y.Z" moves the notes into the manual
as vX.Y.Z entries and deletes the files.

The five v1.2.0 entries move into note files. Their text does not
change. CONTRIBUTING.md and the release flow in packaging/README.md
name the new step. The documentation version test exempts the notes
directory, as it exempts the manual, because the entries name versions
on purpose.
Main added a v1.2.0 entry to the upgrade manual for #1093. The merge
moves that entry into docs/manuals/upgrade-notes/1093-update-table-updating.md,
with its heading less "v1.2.0: " and its body byte for byte. It keeps
the manual of this branch, which has no v1.2.0 entry. Main changed the
manual nowhere else since 5826e1b.

@LJMart11 LJMart11 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 0d461d4. 1 finding: 1 Docs.

The change moves the five-plus upgrade entries for the next release into one file each under docs/manuals/upgrade-notes/, adds devtools/upgrade-notes check and assemble, and exempts the notes directory from the doc version-literal test. Confirmed: assemble 1.2.0 on a copy of the head moves 6 notes into the manual, and the resulting v1.2.0 lines are the same set as the base manual's; check then fails on those entries until the workspace version is bumped, as designed; the check, assemble and format guards each fail at least one of the 6 Python tests when removed (5 mutations); upgrade_notes_test.py passes 6 tests and doc_version_literals passes 3. The head equals the merge with the current base tip.

  • Docs PR description — The body says five ### v1.2.0: entries move into five note files; the head has six note files and the base manual has six entries.

Docs — outside the diff

PR description
Docs
The body says "The five ### v1.2.0: entries of the manual move into five note files" and "A script compared the five notes with the entries of main". docs/manuals/upgrade-notes/ holds six notes (1087, 1093, 1403, 1411, 1446, 1531), and the manual on base 1e2ebdd has six ### v1.2.0: entries. The sixth, #1093, arrived with the last merge of main (0d461d4).

Fix: change "five" to "six" in the What and Testing done sections.

Evidence: git show 1e2ebdd:docs/manuals/07-upgrade-manual.md | grep -c '^### v1.2.0' prints 6; ls docs/manuals/upgrade-notes lists six non-README files. Running assemble 1.2.0 on a copy of the head moved 6 notes, and the six entries match the base manual's lines (sorted comparison). The entries land in file-name order, not the base's order.

@LeeroyHannigan

Copy link
Copy Markdown
Collaborator Author

Thanks. The description now says six entries and six note files. The sixth, for #1093, came with the merge of main in 0d461d4. The notes go into the manual in file name order, as docs/manuals/upgrade-notes/README.md says, so the order can differ from the order on main.

@navareamol navareamol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At 0d461d4 the manual has no ### v1.2.0: entry left, and the new 1093 note is the #1093 entry of main byte for byte, with only v1.2.0: dropped from the heading. The description now says six. On a Python 3.12 desktop, devtools/upgrade-notes check passes with 6 notes and upgrade_notes_test.py passes its 6 tests. With main's manual put back, the check prints one FAIL line for each of the six entries, and a note with no heading fails too. assemble 1.2.0 on a copy puts back the same six entries with the same bodies. All 71 checks pass.

Nit: the script needs Python 3.11 or newer. On 3.7 it stops at line 74 with a SyntaxError, so could the README name the version?

Nit: a note file that is not UTF-8, a directory with a note name, and a Cargo.toml without workspace.package.version end in a traceback rather than a FAIL line.

Nit: the heading rule treats a shell comment inside a fenced block as a heading, so a note with a fenced block holding # stop the server fails. No note has such a line today. Should the check skip fenced blocks?

#1573 and #1574 each add a ### v1.2.0: entry to the manual. Once this merges, they fail the check, so their authors will need to move those entries into note files.

I approve.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants