Repository navigation
docs(upgrade): give each upgrade note a file of its own - #1577
LeeroyHannigan wants to merge 2 commits into
Conversation
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
left a comment
There was a problem hiding this comment.
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.
navareamol
left a comment
There was a problem hiding this comment.
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.
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" indocs/manuals/07-upgrade-manual.md.### v1.2.0:entries of the manual move into six note files, byte for byte. Each heading loses onlyv1.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 checkchecks 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 inCargo.toml.devtools/upgrade-notes assemble X.Y.Zadds each note to the manual as a### vX.Y.Z:entry, then deletes the note files. It writes nothing when a check fails.doc_version_literals.rsexempts the notes directory, as it exempts the manual, because the entries name versions on purpose.docs/manuals/upgrade-notes/README.mdgives the format and the release step.CONTRIBUTING.mdandpackaging/README.mdname 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-notesrepeats two short reads from other scripts. One is theVERSION_REpattern ofdevtools/freeze-migrations. The other is the workspace version, whichworkspace_versionindevtools/check-crate-packagesreads from the output ofcargo metadata. An import of either script needs a module loader that is longer than the line it replaces.Not in this PR
### 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.assemblelater, and its text inpackaging/README.mdcan 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 checkpasses on this branch. On the manual of main at 1e2ebdd, it fails on the sixv1.2.0entries.cargo test -p extenddb-storage-postgres --test doc_version_literals: 3 passed. A note line with a version number afterExtendDBpasses with the new exemption and fails without it.devtools/upgrade-notes. A test caught each one.actionlinton the workflow: no findings.docs/build-docs.py, because themarkdownpackage is not on the build host, and clippy on the test change, which CI runs.Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, 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.