Skip to content

fix(release): the release cut is committed on chore/cut-vX.Y.Z and opened as a pull request into release/vX.Y.Z, so no ruleset bypass or hook skip is needed to cut a release #1628

Closed as not planned

Description

@dan-petty

Friction

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 raises ReleasePushRefusedError (:660).

  • .pre-commit-config.yaml:8-10 runs no-commit-to-branch with --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 5f469a2 records 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 pr reads 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.Z from the release branch tip, open it into release/vX.Y.Z, and open the release pull request into main for the version being cut rather than the tip's. The release pull request's head is release/vX.Y.Z itself, 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 from chore/cut-vX.Y.Z, so release/v0.2.34 and release/v0.2.35 stayed on the remote after shipping, fully merged but with no pull request. Tests over a temporary repository with the no-commit-to-branch hook 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

Acceptance criteria

  • Tests first, over a temporary repository with the no-commit-to-branch hook installed and gh faked at the process edge:
    • the cut commits on chore/cut-vX.Y.Z, the hook passes, and no push targets release/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.
  • No --force-with-lease push remains in src/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>.md fragment exists, and uv run devops ci passes.
  • Pending a person: remove the machine account's bypass entry from ruleset 23059172 once a cut has gone through as a pull request.

Related

Activity

  1. added
    source/agent
    type/bug
    on Oct 18, 2026
  2. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Recurrence (2026-10-20): the v0.2.37 cut stopped at the same hook

    • uv run devops roadmap close --confirm at 12:37 UTC on release/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.md and 31 changelog.d/ deletions.
    • The cut went in by hand again, as v0.2.36's did: the staged changes were moved to chore/cut-v0.2.37 and opened as a pull request into release/v0.2.37, and the partial cut was stashed.
    • Folded in by intake (duplicate candidate): the same run's Argo CD live report failed for all 25 applications with "token has invalid claims: token is expired". It doesn't block the cut, but it prints 25 identical failures. It should print one line naming the expired session and the login command.
  3. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions