Repository navigation
Description
Friction
cut_releasecommits the cut onrelease/vX.Y.Zand pushes it there directly. Only the suspended machine account can do that, so today no automated path can cut a release.- A person's
devops roadmap close --confirmstops before the commit, because the repository's own hook refuses commits onrelease/*. It leaves the cut staged and uncommitted. - The v0.2.36 cut on 2026-10-17 was made by hand as a pull request (chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614,
chore/cut-v0.2.36intorelease/v0.2.36), with the cut's commit-and-push switched off, and the release pull request (feat(release): v0.2.36 #1615) was opened with its own builders. - fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 (the cut waits for the release pull request's checks) cannot be built while the cut itself depends on a bypass only the suspended account holds.
Evidence
Checked at main 3dd7fa6.
-
cut_release(src/devops_cli/release/cut.py:1024) fetches the release tip (_fetch_remote_release_tip,:680), checks out the release branch (_checkout_cut_branch,:700), applies the bump, the changelog collection and the roadmap render, then commits and pushes with--force-with-lease(_commit_and_push_cut_branch,:736-760). A refused push raisesReleasePushRefusedError(:660). -
.pre-commit-config.yaml:8-10runsno-commit-to-branchwith--branch main --pattern '^release/.*'. AGENTS.md forbids bypassing hooks. -
Ruleset 23059172 covers
refs/heads/release*/**/*with pull request and non-fast-forward rules. RELEASE_CYCLE.md:176-181 documents its one Always bypass entry as the machine account's, which chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 suspended. -
Local commit
5f469a2records the 2026-10-17 11:03 UTC partial cut of v0.2.36 that the hook stopped, "superseded by chore/cut-v0.2.36". -
devops release prreads the version from the release branch tip, which before the cut is still the previous version, so it cannot open the release pull request first. -
fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 (v0.2.37) makes readiness pass a
chore/cut-*pull request into a release branch. -
Make the cut a pull request, as the repository's branch rules expect: commit the cut on
chore/cut-vX.Y.Zfrom the release branch tip, open it intorelease/vX.Y.Z, and open the release pull request intomainfor the version being cut rather than the tip's. The release pull request's head isrelease/vX.Y.Zitself, so GitHub deletes the branch when it merges. For v0.2.34 and v0.2.35, the release pull requests (feat(release): v0.2.34 #1566, feat(release): v0.2.35 #1581) were opened fromchore/cut-vX.Y.Z, sorelease/v0.2.34andrelease/v0.2.35stayed on the remote after shipping, fully merged but with no pull request. Tests over a temporary repository with theno-commit-to-branchhook installed: the cut commits on the chore branch, the hook passes, the cut pull request targets the release branch, and the release pull request is titled with the cut version.
Remedy
- Split the cut in two functions:
- open the cut pull request: commit the cut on
chore/cut-vX.Y.Z, branched from the release-branch tip, and open it intorelease/vX.Y.Z; - open the release pull request: open
release/vX.Y.Zintomain, titledfeat(release): vX.Y.Z, with the version taken from the release (its milestone) rather than the branch tip.
- open the cut pull request: commit the cut on
devops roadmap close --confirmanddevops release preparecall the first. The second runs once the cut pull request has merged, in the same command on its next run. fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 later reorders them (release pull request first, cut last) without rewriting either.- The release pull request's head is
release/vX.Y.Zitself, so GitHub deletes the branch when it merges. That ends the stalerelease/v0.2.34andrelease/v0.2.35branches left by opening release pull requests fromchore/cut-*. - Drop the force push. A cut that finds
chore/cut-vX.Y.Zalready open reuses or refreshes it. - RELEASE_CYCLE.md and k8s/README.md (Roadmap service step 3) drop the ruleset bypass requirement.
- Build order: after feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 PR 1 (it adds the Argo CD gate inside
cut_release) and fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 (it moves the cut file list into constants), both in v0.2.37. - Priority under the owner's blocker rule (2026-10-17): no rule-driven raise. Its only dependent, fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544, has no priority label. Re-check once fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 has one.
Acceptance criteria
- Tests first, over a temporary repository with the
no-commit-to-branchhook installed and gh faked at the process edge:- the cut commits on
chore/cut-vX.Y.Z, the hook passes, and no push targetsrelease/vX.Y.Z; - the cut pull request targets
release/vX.Y.Z; - the release pull request is titled with the cut version while the branch tip still holds the previous one;
- a second run with the cut pull request open makes no duplicate.
- the cut commits on
- No
--force-with-leasepush remains insrc/devops_cli/release/cut.py. - The cut pull request passes the release ruleset's other rules (code scanning, code quality, coverage) as any pull request does.
- A
changelog.d/<issue>.mdfragment exists, anduv run devops cipasses. - Pending a person: remove the machine account's bypass entry from ruleset 23059172 once a cut has gone through as a pull request.
Related
- Unblocks: fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544.
- After: feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 (PR 1), fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344.
- chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562, fix(roadmap): roadmap-service automated release cutting fails on protected release branch #1280, fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450, chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614.
Activity
dan-petty commentedon Oct 20, 2026
Recurrence (2026-10-20): the v0.2.37 cut stopped at the same hook
uv run devops roadmap close --confirmat 12:37 UTC onrelease/v0.2.37(f7aef65) printed "✗ Closure stopped part-way; run it again to continue: Failed to create release commit: don't commit to branch … Failed - hook id: no-commit-to-branch". It left the cut staged:pyproject.toml,uv.lock,CHANGELOG.md,docs/ROADMAP.mdand 31changelog.d/deletions.chore/cut-v0.2.37and opened as a pull request intorelease/v0.2.37, and the partial cut was stashed.chore(release): cut v0.2.37: version 0.2.37, the changelog fragments …
chore(release): cut v0.2.37: version 0.2.37, the changelog fragments …
feat(release): v0.2.38 (#1798)
dan-petty commentedon Oct 22, 2026
Superseded by ADR 0012 (docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md). The cut, the fragments or the hand-built release pull request that this issue concerns are deleted by the new release model.