Answer stability round 1: 0 🔴, 5 🟡 (0 misread); share the scratch worktree, check a reused tag and main's merge-back, refuse GitHub, split the looped test
This commit is contained in:
+24
-18
@@ -18,7 +18,9 @@ memory, stay as they are.
|
||||
|
||||
--cut runs in the development clone, and refuses where that clone's origin isn't <checkout>'s. It cuts the next release, as chunk-preflight works it out, and
|
||||
refuses without changing anything, unless that release holds no item in todo.md, its release review has
|
||||
landed and changes are unreleased. The release names the version; the tool doesn't choose one.
|
||||
landed and changes are unreleased. The release names the version; the tool doesn't choose one. It also refuses a
|
||||
release that is a patch of the newest tag, such as 0.15.2 after v0.15.1, since it would ship all of main: cut that
|
||||
with --cut-patch.
|
||||
1. On a fresh origin/main, it renames ## Unreleased in CHANGELOG.md to the version, commits that
|
||||
titled `Cut release <version>`, and pushes it as the branch release-<version>. The clone's own
|
||||
checkout stays as it is. Where main has moved past the branch, it rebuilds the branch on main.
|
||||
@@ -34,25 +36,29 @@ It says on stderr as each step finishes, and ends stdout, after the changelog, w
|
||||
Where a step fails it stops, exit 1, with git's or the forge's reason, and leaves the pull request
|
||||
and the branch as they are. A rerun continues: it takes the branch's open pull request and a cut
|
||||
commit already merged, and drops a cut tag an earlier run made but never pushed. Once the tag is pushed, the release is cut: where only the
|
||||
move stopped, fix what it names and run a bare deploy-release. --cut refuses a release that is a patch of the newest tag,
|
||||
such as 0.15.2 after v0.15.1, since it would ship all of main: cut that with --cut-patch.
|
||||
move stopped, fix what it names and run a bare deploy-release.
|
||||
|
||||
--cut-patch <commits> runs in the development clone too, for a fix that must ship before main's other unreleased work. It
|
||||
cuts the newest tag's next patch release, such as 0.15.2 after v0.15.1, holding only <commits> on top of the tag. <commits>
|
||||
is one revision as git log reads it: a range such as 794ce37..1aa2367, which leaves out 794ce37 as git's `..` does, or one
|
||||
commit. Each must be on origin's main and not in the tag; merge commits are left out. Name the commit that finished the
|
||||
fix's item too: its entries under ## Unreleased in CHANGELOG.md become the release's. todo.md must name the release and file
|
||||
no item under it; a patch skips the release review. It refuses without changing anything where any of that doesn't hold.
|
||||
1. In a worktree of its own at the tag, it applies each commit's changes, except to todo.md, CHANGELOG.md and the records
|
||||
every chunk appends to, heads CHANGELOG.md with the release's section, and commits that titled `Cut release <version>`.
|
||||
Where a commit doesn't apply, it stops and names it: cut that patch by hand.
|
||||
2. It runs ci.sh on that commit, and stops where it fails, before anything is tagged.
|
||||
3. It tags the commit v<version>, annotated `Cut release <version>`, and pushes only the tag.
|
||||
4. On a fresh origin/main it merges the tag keeping main's files, moves the release's entries from ## Unreleased to a
|
||||
## <version> section, commits that titled `Merge release <version> into main`, and lands it through the branch
|
||||
release-<version> and a pull request as --cut does, so the tag is in main's history.
|
||||
5. It moves <checkout> to the tag as above, and ends stdout as --cut does.
|
||||
A rerun skips a tag origin holds already and a merge main holds already.
|
||||
cuts the newest tag's next patch release, holding only <commits> on top of the tag. <commits> is a range as git log reads
|
||||
it, such as 794ce37..1aa2367, which leaves out 794ce37 as git's `..` does, or one commit, which it reads as that commit
|
||||
alone. Name the commits the fix's chunk merged, including the one that finished its item: the entries that commit added
|
||||
under ## Unreleased in CHANGELOG.md become the release's. Each commit must be on origin's main and not in the tag. Merge
|
||||
commits are left out, and so are the commits a merge of main brought into the range. todo.md must name the release and
|
||||
file no item under it; a patch skips the release review. Cut it as soon as the fix merges: until then chunk-preflight calls
|
||||
the patch's release review due, and loop-claude would run it. It refuses without changing anything where any of that
|
||||
doesn't hold, and on a GitHub origin, whose rebase merge would drop the tag from main's history.
|
||||
1. It says on stderr which commits the release ships.
|
||||
2. In a worktree of its own at the tag, it applies each commit's changes, except to CHANGELOG.md, todo.md,
|
||||
docs/comprehension-history.md and docs/reading-cost.md, heads CHANGELOG.md with the release's section, and commits that
|
||||
titled `Cut release <version>`. Where a commit doesn't apply, it stops, names it, and says how to cut the patch by hand.
|
||||
3. It runs ci.sh on that commit, and stops where it fails, before anything is tagged.
|
||||
4. It tags the commit v<version>, annotated `Cut release <version>`, and pushes only the tag.
|
||||
5. On a fresh origin/main it merges the tag keeping main's files, moves the release's entries from ## Unreleased to a
|
||||
## <version> section below it, commits that titled `Merge release <version> into main`, and lands it through the branch
|
||||
release-<version> and a pull request as --cut does. Then it checks main holds the tag.
|
||||
6. It moves <checkout> to the tag as above, and ends stdout as --cut does.
|
||||
A rerun takes a tag origin holds already, once it checks the tag lists the same changelog entries, and the merge-back's open
|
||||
pull request. Once the merge-back has merged, the release is cut: where only the move stopped, run a bare deploy-release.
|
||||
"""
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
Reference in New Issue
Block a user