Repository navigation
Description
fix(release): one fail-closed release path: cut branch from the remote release tip, uv.lock bump, draft flag, required label and milestone
Problem Statement
Split out of #743 (devops roadmap close) by the owner's decision (decisions.json, Q2 and 743): #743 keeps the closure job and the cut predicate; this item delivers the release path both the job and the manual commands run, and lands before #743. The owner's order of 2026-10-03 puts #753 and #741 first in v0.2.26, so #741's image-tag step and its _release_paths entry are already in release.py when this item moves the bump block and adds uv.lock to _release_paths. The owner also settled the branch question #743 left open: the cut commit goes on chore/cut-vX.Y.Z, built from origin/release/vX.Y.Z, and that branch's one PR into main is the release PR (decisions.json, 743).
devops release prepare <version> --create-pr (src/devops_cli/commands/release.py:645, calling release_pr at :773-780) is the only way a release is cut today (docs/ROUTINE_TASKS.md:46, :263-267; docs/SDLC.md:346; RELEASE_CYCLE.md:182-185), and it cannot cut the existing release branch. Checked at 9c879ae (release/v0.2.25):
- It bumps the files before it makes a branch, then resets the release branch to wherever it is.
release_prepareeditspyproject.tomlandsrc/devops_cli/__init__.py(:748-757), collects the fragments (:760), syncs the docs (:767-769) and only then callsrelease_pr, whose_checkout_release_branchrunsgit checkout -B release/vX.Y.Zwith no start point (:798-809, called at:1177): the branch is created at, or reset to, the caller's HEAD, with the edits carried along, not built from the release branch's tip. Nothing refuses a dirty tree, although_is_git_cleanexists in the module (:131-135) andrelease checkuses it (:1318). - It commits on
release/vX.Y.Zand pushes it (_commit_and_push_release_branch,:812-830). The issue records that the livereleaseruleset (23059172) requires a PR for every update torefs/heads/release*/**/*(not verifiable from the repository), andno-commit-to-branchrejects the commit where pre-commit is installed (.pre-commit-config.yaml:8-10). v0.2.24's bump went in through PR fix(review): remediate session 20260928-160843 findings and harden feedback loop (#682) #683 (abe6bb5), and v0.2.25 was opened throughchore/open-v0.2.25(PR chore(release): open the v0.2.25 cycle #918, 44d1f90), the convention fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 wrote down for release-process PRs. - It warns where it should stop. A failed commit (
:818-819) and a failed push (:826-829) print a warning and the command goes on to open the PR; whengh pr createfails,_execute_release_pr(:1081-1107) retries without the label or milestone GitHub rejected (_build_pr_fallback_cmd,_strip_pr_cmd_flag,:1064-1078) and a final failure warns and exits 0 (:1102-1106;tests/test_release.py:662asserts that exit code). - It does not bump
uv.lock, which records the project version in its own[[package]]entry (uv.lock:634-637;rg uv.lock src/devops_cli/commands/release.pyfinds nothing), so after a bump the gate'suv lock --check(src/devops_cli/commands/ci.py:459) fails on the release PR until someone updates the lock by hand._release_paths(:522-537) stagespyproject.toml,__init__.py,CHANGELOG.md,README.md,docs/andchangelog.d/where it exists. - The draft flag is fixed at the command.
release prepare(:688) andrelease pr(:1119-1122) both default to--draft, and_build_release_pr_command(:1050-1051) adds--draftfrom that option. feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743's cut must open the release PR ready for review (automatic Copilot review runs only on PRs intomain, 840.md:19, and skips drafts), so the shared path has to take the flag from its caller while the manual commands keep their default. - Its label is undeclared. The PR gets
DEFAULT_RELEASE_LABEL=release(src/devops_cli/config/defaults.py:481) and milestonev<version>(:1200), and.github/labels.ymldeclaresscope/release(:78-80) but norelease;devops gh labels syncworks from that file (src/devops_cli/github/labels.py:51;src/devops_cli/commands/gh.py:238-239). release prreads the version from the caller's checkout, not from the release tip:_validate_release_version(:788-795) runs at:1154, before any branch exists.- Readiness does not know the cut branch.
_is_release_pr(src/devops_cli/commands/pr.py:1517-1523) exemptsrelease/vX.Y.Zinto the default branch;_is_release_process_pr(:1526-1536) exemptschore/open-vX.Y.Zorchore/cut-vX.Y.Zintorelease/vX.Y.Z(CONST_RELEASE_PROCESS_BRANCH_RE,src/devops_cli/config/constants.py:2577-2579, comment at:2567-2572). Under the owner's decision the release PR ischore/cut-vX.Y.Zintomain, which neither function accepts, sodevops pr check-readinesswould block every release PR for closing no issue (:1573). Five doc sentences state today's convention:AGENTS.md:176,:180(which also defines the release PR asrelease/vX.Y.Zinto the default branch) and:240("from a release branch"),docs/agent/tasks/README.md:13(rule 5),RELEASE_CYCLE.md:56. refactor(github): one github session per identity owning token, quota and transport #767's body still names the cut branchchore/release-vX.Y.Z(767.md:117).
Already delivered and built on: changelog fragments (#933, c224927): _plan_changelog_or_exit and _write_version_changelog (release.py:486-519) collect changelog.d/*.md into ## [X.Y.Z] - <date> and delete them, and _release_paths stages the deletions; _resolve_clean_release_notes reads that section first for the PR body (:979-996); _format_release_title (:540-550) gives feat(release): vX.Y.Z; #704's and #933's readiness exemptions with their tests (tests/test_pr_cmd.py:1803, :1824, :1993, :2015, :2030); a real-git fixture pattern with a local bare remote (tests/test_ci.py:813-821); fetch_all and is_git_clean in src/devops_cli/git/operations.py:202, :273-279.
Proposed Solution
One function in commands/release.py that cuts a release, called by release prepare --create-pr, by release pr, and by #743's roadmap close. It takes the version, the draft flag, the base, the labels, the release type and breaking flag, and the root, and runs these steps in this order, exiting non-zero at the first failure with nothing opened:
- Refuse a dirty tree (
_is_git_clean,release.py:131-135) before any branch or file is touched. - Fetch and build the cut branch:
git fetch origin, thengit checkout -B chore/cut-vX.Y.Z origin/release/vX.Y.Z. The branch always starts at the remote release tip; a localchore/cut-vX.Y.Zis reset, so a re-cut is a rebuild. A missingorigin/release/vX.Y.Zis a failure naming the branch; there is no fallback to HEAD. This replaces_checkout_release_branch(:798-809). - Edit on the cut branch (
release prepareonly; moved from before the checkout,:748-769, to after it):pyproject.toml(_update_pyproject_version,:312-332),src/devops_cli/__init__.pywhere it holds a literal (_update_init_version,:335-358), the project's own[[package]]entry inuv.lock(name = "<project>"followed byversion = "...",uv.lock:634-637) when the file exists, the CHANGELOG section from the fragments (:760), and the docs sync as today under--sync-docs(:767-769).uv.lockjoins_release_pathswhere it exists. - Commit and push:
git add <release paths>,git commit -m "<title>"("nothing to commit" stays tolerated, forrelease pron its own),git push --force-with-lease -u origin chore/cut-vX.Y.Z. A failed commit or push exits non-zero (today:818-819and:826-829warn). - Open the release PR with
gh pr create: basemain(CONST_GIT_MAIN_BRANCH,constants.py:595), headchore/cut-vX.Y.Z, title from_format_release_title, body from_build_release_pr_body(:999),--label release(validated as today,:1054-1060),--milestone vX.Y.Z(passed as today,:1200), and--draftonly when the caller asks. Label and milestone are required: a rejected flag is a failure, not a retry._build_pr_fallback_cmdand_strip_pr_cmd_flag(:1064-1078) and the warn-and-continue tail of_execute_release_pr(:1102-1106) are deleted.
Around it:
release prepare <version> --create-prruns steps 1-5; its--draft/--no-draft(:688) keeps its default and is passed through. Without--create-prit keeps editing the working tree in place, as today.release prruns steps 1, 2, 4 and 5 for what is already committed on the release tip. Its version comes from--versionor, after the checkout, frompyproject.tomlon the cut branch (_validate_release_version,:788-795, moves from:1154to after step 2), so the title names the release the tip holds. It keeps--base(defaultmain,:1115-1118),--draft(:1119-1122),--labels,--type,--breakingand--root, and loses--push/--no-push(:1127-1130): a cut branch that is not pushed has no PR, and--dry-runis the way to look first.HELP.options.pushstays, becauserelease tag --pushuses it (:1595).docs/commands/release.md:53-75anddocs/CLI_REFERENCE.mdare regenerated.- feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 calls the function withdraft=False; this item does not changeroadmapcommands. .github/labels.ymldeclaresreleasebesidescope/release(:78-80), with a description naming the release PR.- Readiness:
_is_release_pr(pr.py:1517-1523) acceptschore/cut-vX.Y.Zfrom the same repository into the default branch, which becomes the one definition of the release PR;release/vX.Y.Zinto the default branch is no longer exempt (no command opens that PR after this item)._is_release_process_pr(:1526-1536) keepschore/open-vX.Y.Z(optionally-<slug>) intorelease/vX.Y.Zand dropschore/cut-vX.Y.Zintorelease/vX.Y.Z.CONST_RELEASE_PROCESS_BRANCH_REbecomes the open-branch pattern, a new constant matches the cut branch, the comment atconstants.py:2567-2572says so, andCONST_RELEASE_BRANCH_REkeeps its other two users (pr.py:1533,:1654). - Docs for the manual cut:
docs/ROUTINE_TASKS.md:267says the command createschore/cut-v<version>fromorigin/release/v<version>and opens the release PR intomain; the "Initialize## [Unreleased]" step at:275goes (the collection leaves the heading in place,changelog.d/README.md:5);RELEASE_CYCLE.md:184("commits changes to branch 'release/vX.Y.Z'") says the cut branch; the convention sentences atRELEASE_CYCLE.md:56,docs/agent/tasks/README.md:13andAGENTS.md:176,:180,:240namechore/open-vX.Y.Zintorelease/vX.Y.Zas the one release-process PR and thenchore/cut-vX.Y.Zintomainas the release PR, in that order, so the rg check below cannot match them.docs/ROUTINE_TASKS.md:46,:255,:263anddocs/SDLC.md:346keep namingrelease prepare --create-pr; feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 rewords them aroundroadmap close. changelog.d/982.mdanddocs/agent/tasks/task-#982-<slug>.md;CHANGELOG.mdanddocs/ROADMAP.mdare not edited.
Scope
The shared cut function and its two manual callers in commands/release.py; the uv.lock bump; removal of the fallback helpers and of --push/--no-push; the release label; the readiness and constants change with its tests; the five convention sentences and the two ROUTINE_TASKS.md lines; regenerated command docs. Effort: Medium. One PR.
Key Questions
- Which branch carries the cut commit, and into which base is the PR opened? Answered by the owner:
chore/cut-vX.Y.Z, built fromorigin/release/vX.Y.Zafter a fetch, intomain, one PR, which is the release PR. It needs no ruleset change (the ruleset coversrefs/heads/release*/**/*), passesno-commit-to-branch, leavesrelease/vX.Y.Zas the item PRs left it, and reuses the name fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 introduced atconstants.py:2578. - Does
release/vX.Y.Zintomainstay a release PR for readiness? No. After this item no command opens it, and the codebase keeps one definition (pre-1.0 policy: no obsolete shims). The exemption test attests/test_pr_cmd.py:1803changes its head to the cut branch, andrelease/v0.2.25intomainjoins the held cases at:1824. - What does
release prdo on its own? Refuses a dirty tree, builds the cut branch from the remote release tip, resolves the version from that tip, commits nothing new, pushes and opens the PR for what the tip holds. It is the way to reopen a release PR that was closed, or to open one for bumps already merged into the release branch. - Does
--basestay onrelease pr? Yes, unchanged, defaultmain; it also feeds the PR body's branch diff (_build_release_pr_body,:999). The shared function takes the base from its caller;release prepareand feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 passmain. - Why does
--push/--no-pushgo? The path's one product is the PR; a branch kept local cannot have one, and a laterrelease prwould rebuild the branch from the remote tip and drop the local commit.--dry-runshows the plan without writing. - What if
origin/release/vX.Y.Zdoes not exist? Exit non-zero naming it, before any file is edited; the tree stays clean. A repository without a release branch for that version is not cut by this command. - Repositories other than devops-cli (ADR 0001)?
pyproject.toml,__init__.pyanduv.lockare bumped and staged only where they exist;_release_pathsalready stageschangelog.d/conditionally. - How is
uv.lockbumped? By editing theversionline of the project's own[[package]]entry (the one whosesource = { editable = "." },uv.lock:634-637); nouvsubprocess. Measured at 9c879ae with uv 0.12.16: a copy ofpyproject.tomlanduv.lockboth set to0.2.26passesuv lock --check --offlinewith an emptyUV_CACHE_DIRin 0.17 s. The acceptance test runs that check. - Draft or ready? The function takes the flag;
release prepareandrelease prkeep their--draftdefault for the manual path (tests attests/test_release.py:307,:322keep their meaning); feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 passes ready-for-review because Copilot review skips drafts. - Which label and milestone, and are they required?
release(DEFAULT_RELEASE_LABEL,defaults.py:481), declared in.github/labels.ymlby this item, and milestonevX.Y.Z(already built at:1200). Both are required: the release PR is how feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743's cut predicate (an open PR into the default branch with labelreleaseand milestonevX.Y.Z) and the readiness exemption recognise the release, so a PR opened without them is worse than none.--labelsstays as an option; an invalid or rejected label fails the run. - Why fetch and branch before editing? So the edits are made on the release tip rather than carried over from the caller's HEAD, and so a dirty-tree refusal costs nothing.
release prepare's bump block moves after the checkout; feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's image-tag step moves with the block; feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (v0.2.27) later adds its targetRevision step andk8s/argocd/to_release_paths. - Does the docs sync stay? Unchanged under
--sync-docsinrelease prepare, now run on the cut branch; feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 decides what its cut passes. - How does a re-cut work?
checkout -Bfrom the remote tip discards a stale local cut branch, and--force-with-lease(safe because the run fetched first) replaces the remote one, so after a release PR is closed unmerged and more items merge, the next run rebuilds the branch and the section from the new tip. - Who pushes from the service? refactor(github): one github session per identity owning token, quota and transport #767 pins
GH_TOKENforgit pushin the service; from a terminal the person's credentials push. Not this item. - How is this tested without the network? Git is a temporary repository with a local bare remote holding
mainandrelease/v0.2.26(astests/test_ci.py:813-821builds one), built once per module and copied per test;ghisrun_ghpatched astests/test_release.py:536-594do; the lock check runsuv lock --check --offlinewith an empty cache directory.
Acceptance Criteria
Automated tests in tests/test_release.py and tests/test_pr_cmd.py unless marked otherwise; nothing touches the network.
Cut branch
-
devops release prepare 0.2.26 --create-pron a dirty tree exits non-zero naming the dirty state; no branch is created and no file changes (git status --porcelainis unchanged). - On a clean clone checked out on another branch, the run pushes
chore/cut-v0.2.26to the bare remote; its parent commit is the remoterelease/v0.2.26tip, and the remoterelease/v0.2.26andmaindo not move. - With
origin/release/v0.2.26absent, the run exits non-zero naming the branch; the tree stays clean and no branch is created. - After one more commit is pushed to the remote
release/v0.2.26and the remotechore/cut-v0.2.26already exists, a second run rebuilds the cut branch on the new tip and the push replaces the old branch.
Cut commit
- With
--no-sync-docs, the cut commit changes exactlypyproject.toml,src/devops_cli/__init__.py,uv.lock,CHANGELOG.mdand the deletedchangelog.d/*.md(git show --stat);CHANGELOG.mdholds one## [0.2.26]block built from the fragments and an empty## [Unreleased]. - After the bump,
uv lock --check --offlinepasses on a temporary copy ofpyproject.tomlanduv.lockwith an emptyUV_CACHE_DIR(0.17 s measured; skipped whenuvis not onPATH). - In a root without
uv.lock, the run neither creates one nor stages it.
Pull request
- The fake
gh pr createreceives basemain, headchore/cut-v0.2.26, titlefeat(release): v0.2.26,--label release,--milestone v0.2.26, and--draftby default; with--no-draft, and when the shared function is called withdraft=False, no--draft. - When the bare remote's
pre-receivehook rejects the push, the run exits non-zero andgh pr createis never called. - When
gh pr createfails naming the label, or naming the milestone, the run exits non-zero andgh pr createis called once (replacingtest_release_pr_labels_and_draftattests/test_release.py:536and the gh-failure branch oftest_release_pr_error_branches_and_breakingat:594, which today asserts exit code 0 at:662). -
devops release pralone on a clean tree pushes a cut branch equal to the remote release tip and opens the PR whose title names the version in the tip'spyproject.toml, not the caller's checkout; on a dirty tree it exits non-zero before any git write. -
devops release pr --helplists no--push;rg -n "no-push" src docs/commands/release.md docs/CLI_REFERENCE.mdfinds nothing (today it hitsrelease.py:1129,release.md:69andCLI_REFERENCE.md:5429).
Dry run
-
release prepare 0.2.26 --create-pr --dry-runandrelease pr --dry-runprint the cut branchchore/cut-v0.2.26, basemain, the title and the fragments; no git ref changes andghis not called (adaptingtests/test_release.py:289,:322).
No merge
- Across these tests the fake
ghnever receivespr mergeorpr review; the bare remote'srelease/**andmainrefs are unchanged after every test.
Readiness
-
chore/cut-v0.2.25from this repository intomainis exempt before any lookup (the case attests/test_pr_cmd.py:1803, head changed);release/v0.2.25intomain, a fork'schore/cut-v0.2.25intomain, andchore/cut-v0.2.25intorelease/v0.2.25are held to grounding (joining:1824,:2015and:2030). -
chore/open-v0.2.25andchore/open-v0.2.25-cycleintorelease/v0.2.25stay exempt (:1993).
Label
-
.github/labels.ymldeclaresrelease;test_repository_labels_declare_the_release_labelintests/test_github_labels.pyloads the repository's file withload_label_specs(src/devops_cli/github/labels.py:51) and assertsDEFAULT_RELEASE_LABELis among the names.
Removal
-
rg -n "_build_pr_fallback_cmd|_strip_pr_cmd_flag|_checkout_release_branch" src tests docs -g '!docs/ROADMAP.md' -g '!docs/agent/tasks/**'finds nothing (today it hitsrelease.pyonly; task-330 keeps its history).
Docs
-
rg -n "chore/cut-vX.Y.Z.{0,60}into .release/vX.Y.Z|from a release branch|chore/release-v" AGENTS.md RELEASE_CYCLE.md docs/agent/tasks/README.md docs/ROUTINE_TASKS.mdfinds nothing (today it hits exactlyAGENTS.md:176,:180,:240,RELEASE_CYCLE.md:56anddocs/agent/tasks/README.md:13);rg -n "chore/cut-vX.Y.Z. into .main" AGENTS.md RELEASE_CYCLE.md docs/agent/tasks/README.md src/devops_cli/config/constants.pyhits each of the four files at least once. -
docs/ROUTINE_TASKS.mdhas no "Creates topic branchrelease/v<version>" sentence and no "Initialize## [Unreleased]" step (rg -n "topic branch .release/v<version>|Initialize .## \[Unreleased\]" docs/ROUTINE_TASKS.mdfinds nothing; today it hits:267and:275). - Review check on the PR:
git diff <base> -- AGENTS.mdchanges only the sentences at:176,:180and:240and removes no other line. -
uv run devops docs checkpasses; the new tests add at most 2 s (uv run pytest tests/test_release.py tests/test_pr_cmd.py tests/test_github_labels.py --durations=0);uv run devops cipasses.
Manual check (a person, against GitHub)
- Pending a person:
uv run devops release prepare 0.2.26 --create-pr --dry-runfrom a clean clone ofrelease/v0.2.26prints the cut branch and base; the first real v0.2.26 cut (through feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 or by hand) givesgh pr view <n> --json headRefName,baseRefName,labels,milestonewith headchore/cut-v0.2.26, basemain, labelrelease, milestonev0.2.26, andgit fetch origin && git show --stat origin/chore/cut-v0.2.26lists the files above.
Out of Scope
devops roadmap close, the cut predicate, closure comments,devops roadmap renderat the cut, the MCP mirror, removal ofgh issues close-merged, and rewordingdocs/ROUTINE_TASKS.md,docs/SDLC.mdanddocs/MCP_TOOLS.mdaround the job (feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743, which calls this item's function withdraft=False).- The kustomization image-tag bump and its
_release_pathsentry (feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741, lands before; this item moves the step and keeps its test passing) and the Argo CD targetRevision step (feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, v0.2.27). - The cut lock, un-cut and release start (feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740);GH_TOKENfor the service's push (refactor(github): one github session per identity owning token, quota and transport #767); ruleset settings anddo_not_enforce_on_create(chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842, whose release-branch question now applies only to feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740). - Retiring the git-log changelog compiler (
release changelog,--changelog);release check,release notes,release tag. - The in-process docs sync's behaviour beyond its new position; whether feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743's cut runs it. - Rewriting
AGENTS.mdbeyond the three sentences (docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840, v0.2.27).
Dependencies
- Delivered: fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 (fragments,
_release_pathsstagingchangelog.d/, readiness blocker, the convention sentences this item changes), feat(github): pr readiness requires an issue-linked, completed task file #704 (readiness exemption and tests). - Lands first in v0.2.26; nothing in the release precedes it.
- feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 depends on this item: its cut calls the shared function; its criteria for the cut branch, theuv.lockcheck, the push rejection, the label and milestone rejection, the manual path, the readiness exemption, thereleaselabel and the convention sentences live here. - feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 lands before it (owner, 2026-10-03); its image-tag step is in the block this item moves, and both items add to
_release_paths(whichever second rebases). feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (v0.2.27) adds the targetRevision step after it. - refactor(github): one github session per identity owning token, quota and transport #767 must say
chore/cut-vX.Y.Zwhere its body sayschore/release-vX.Y.Z(767.md:117). - chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842's steps that prove
devops release prpushes arelease/*branch (842.md:31, :64, :82) no longer describe this command; after this item it pusheschore/cut-vX.Y.Zonly. - docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 (v0.2.27) rewritesAGENTS.md; this item changes the sentences at:176,:180and:240only. - Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906 lists feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 (906.md:17) and must list this item before it. - feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 keeps the clone feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 cuts from (741.md:137); this item runs git in the clone at--root, whichever caller owns it.
Amended 2026-10-03: no fragment collection in the cut commit (owner decision, #1103)
The owner decided on 2026-10-03 that changelog fragments are collected when the release merges or publishes, never in a release-cut commit. #1103 owns that mechanism, and #743 was amended the same way. For this item:
- Step 3 no longer collects
changelog.d/*.mdintoCHANGELOG.md. The cut branch's edits arepyproject.toml,src/devops_cli/__init__.pywhere it holds the version, anduv.lock._plan_changelog_or_exitand_write_version_changelogare not called on the cut path. - Acceptance criterion replaced. In place of "the cut commit changes exactly
pyproject.toml,src/devops_cli/__init__.py,uv.lock,CHANGELOG.mdand the deletedchangelog.d/*.md":- With
--no-sync-docs, the cut commit changes exactlypyproject.toml,src/devops_cli/__init__.py(where it holds the version) anduv.lock.CHANGELOG.mdandchangelog.d/are byte-identical to the release tip (git show --stat).
- With
- Dry runs.
release prepare … --dry-runlists the fragments present and does not say it would collect them. - Depends on: refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103 for the changelog section. Until refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103 lands, fragments stay in
changelog.d/.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 3, 2026
The owner's order of 2026-10-03 lands #753 and #741 first, so #741's image-tag step and its
_release_pathsentry are already inrelease.pywhen this item moves the bump block. #755 (v0.2.27) adds the targetRevision step after it.dan-petty commentedon Oct 3, 2026
Note from the release-path fixes (2026-10-03), for whoever builds this item; scope and placement are unchanged:
release prbefore it opens a PR #1124 addspush_branchingit/operations.py, which runs git with the person's environment so the configured credential helper answers. This item's step 4 push (git push --force-with-lease -u origin chore/cut-vX.Y.Z) is proposed to callpush_branch(..., force_with_lease=True)rather than a rawgit push. Whichever of the two lands second rebases onto the other's call. This note does not make fix(release): release pushes run git with the person's environment, so the configured credential helper answers instead of "could not read Username", and a failed push stopsrelease prbefore it opens a PR #1124 a prerequisite of this item or move it into this release.release prbefore it opens a PR #1124).fix(release): one fail-closed release path (#982) (#1164)
dan-petty commentedon Oct 4, 2026
Closed by #1164, merged into
release/v0.2.26.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.26 (#1178)