Answer prose round 1: 0 🔴, 7 🟡 (0 misread); say which copy of cut-release to run, write ships in for run from, name the panel's seats, and drop two claims the split made false
CI / tests (pull_request) Successful in 4m16s
CI / tests (pull_request) Successful in 4m16s
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
"""Cut the next release of the clone this tool ships in, the development clone; with --patch, a patch release of only the commits named.
|
||||
"""Cut the next release of the clone this tool ships in; with --patch, a patch release of only the commits named.
|
||||
|
||||
usage: cut-release [--patch <commits>]
|
||||
|
||||
A clone of a release takes the release with its own bin/self-update.
|
||||
|
||||
Run the development clone's copy, as in bin/cut-release there: it cuts that clone, whatever the directory it is run from.
|
||||
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, as chunk-preflight --help counts one, and changes are unreleased. The release names the version; the tool doesn't choose one. It also refuses a
|
||||
@@ -19,8 +18,8 @@ with --patch.
|
||||
there it rebase-merges the branch, which is already on top of main.
|
||||
3. It tags the merged commit v<version>, annotated `Cut release <version>`, pushes only the tag,
|
||||
and deletes the branch on origin. A failed delete only warns.
|
||||
It says on stderr as each step finishes, and prints the line
|
||||
`Done: v<version> is cut and pushed. Each clone of a release takes it with its bin/self-update.`
|
||||
It says on stderr as each step finishes, and prints on stdout the line
|
||||
`Done: v<version> is cut and pushed. Each clone of a release takes it with its own bin/self-update.`
|
||||
It keeps each of those lines, with its time in UTC, in the run's trace: a file of its own under
|
||||
$XDG_STATE_HOME/build-release/cut-release (default ~/.local/state/build-release/cut-release), named by when the run began. --patch does too.
|
||||
Where Ctrl-C or an unexpected fault ends the run, the trace ends with a line that starts `stopped:`.
|
||||
@@ -47,7 +46,7 @@ doesn't hold, and on a GitHub origin, whose rebase merge would drop the tag from
|
||||
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 a cut without --patch does. Then it checks main holds the tag.
|
||||
It ends stdout as a cut without --patch does.
|
||||
It prints the same `Done:` line on stdout as a cut without --patch 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.
|
||||
"""
|
||||
|
||||
@@ -50,7 +50,7 @@ def kept(trace: pathlib.Path | None, line: str, now: Clock, out: typing.TextIO)
|
||||
|
||||
|
||||
def saying(trace: pathlib.Path | None, now: Clock, out: typing.TextIO) -> Say:
|
||||
"""Says each step on out, so the human sees how far the cut got before the changelog fills the screen, and keeps it in trace."""
|
||||
"""Says each step on out, so the human sees how far the cut got, and keeps it in trace."""
|
||||
def say(step: str) -> None:
|
||||
print(f"cut-release: {step}", file=out)
|
||||
kept(trace, step, now, out)
|
||||
|
||||
Reference in New Issue
Block a user