From 80de753b9ebb00a95d7d9b8ef292d457691a7365 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 24 Nov 2026 14:05:11 +0100 Subject: [PATCH] File item 536: cut a patch release with deploy-release --cut-patch --- todo.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index dad74be6..d6ff97a4 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,14 @@ `Bar = 0.1` -`Next ID = 536` +`Next ID = 537` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 531 | 0.16.0 | | | **Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 3 | 1.1 | +| 536 | 0.16.0 | | owner | **Cut a patch release with `deploy-release --cut-patch `: the newest tag plus only the commits named, tested with `ci.sh`, tagged, merged back into main and deployed.** | 3 | 2 | 2 | 5 | 5 | 1.5 by 3 | 0.6 | | 524 | 0.16.0 | | owner | **Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.** | 3 | 2 | 1 | 4 | 6 | 1.1 by 3 | 0.5 | | 532 | 0.16.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a Rust test that stands in the file of the code it tests.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 | | 527 | 0.16.0 | | owner | **Plant bugs for `task-bench` in TypeScript, from the mutants Stryker kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 | @@ -123,6 +124,27 @@ Touches: - `bin/task_bench/main.py`: `(module)` (small) - `README.md`: `## Tools` (small) +### 536. Cut a patch release with `deploy-release --cut-patch `: the newest tag plus only the commits named, tested with `ci.sh`, tagged, merged back into main and deployed. + +Today a fix that must ship before `main`'s other unreleased work is cut by hand, as 0.15.1 was: branch off the newest tag, apply only the fix's code, write the changelog section, commit `Cut release `, tag and push, then merge the tag back into `main` with `-s ours` through a pull request, so the tag is an ancestor of `main`, and run a bare `deploy-release`. `deploy-release --cut` can't, since it cuts all of `main`. + +`deploy-release --cut-patch []`, run in the development clone, does those steps. A reader panel picked the spelling over `--cut --patch` and `--hotfix`: one flag that names the action and can't be read as a plain `--cut`. + +- **Version:** the newest tag's next patch, such as 0.15.2 after v0.15.1. The plan must name that release, and it must hold no item, as `--cut` checks. A patch skips the release review: it holds only fixes, and the review is of the whole project. +- **Commits:** one revision as `git log` reads it, such as `794ce37..1aa2367`, which follows git's `..` and leaves out the first commit, or one commit. Each must be on `origin/main` and not on the tag. Merge commits are skipped. +- **Patch:** 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 writes. The changelog section is the bullets the commits add under `## Unreleased`. It commits `Cut release `, runs `ci.sh` on it, and stops where that fails. Then it tags and pushes the tag. +- **Merge-back:** a branch `release-` off `origin/main` merges the tag with `-s ours` and moves those bullets under `## `, and goes through a pull request as `--cut`'s branch does. +- **Rerun:** a step an earlier run finished is skipped: a tag on origin, a tag `main` holds. +- **Plain `--cut`** refuses a patch release and names `--cut-patch`, since it would ship all of `main` under a patch number. + +Touches: +- `bin/deploy_release/main.py`: `main` +- `bin/deploy_release/cut.py`: `cut`, `ready_release`, `land`, `push_cut_commit` +- `bin/deploy_release/patch.py` +- `bin/deploy_release/release_pull.py`: `create_pull` (small) +- `bin/deploy_release/test_deploy_release.py`: `Cut` +- `README.md`: `## Release`, `## Tools` (small) + ### 524. Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names. The second part of item 504, which says what a bench feature is and when a run counts. A stronger model than the project's writes the six, once. Each breaks one of fejkdata's goals while it would suit another audience: