Skip to content

Cut every release from a release line; backport fixes from main - #1416

Merged
GLinnik21 merged 2 commits into
mainfrom
release-branches
Nov 16, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
release-branches

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Every release is now cut from a release line, so main never holds pull requests back while a release stabilizes.

The flow

  1. Cut (cut-line.yml, new):
    • branches release/vX.Y off main;
    • creates the label backport release/vX.Y;
    • opens the PR that writes X.Y.0 into main's version files. Once that merges, main's dev builds and nightlies report X.(Y+1), never the version the line is shipping.
  2. Stabilize: fixes land on main first, labelled backport release/vX.Y. backport.yml (new) cherry-picks the squash commit (-x) into a PR against the line. On a conflict it opens nothing and comments the commands on the original PR.
  3. Release from the line: rc.yml and release.yml with line=release/vX.Y. An empty line is now refused.
    • A fresh line has no RELEASE_LINE marker. It publishes X.Y.0 only, and that bump commit adds the marker.
    • A line with the marker publishes patches, X.Y.N.
    • The rule exists once, in ci/version_rule.py::line_release_error, used by ci/bump-version.py --line and ci/rc.py.

The version arithmetic in build.rs, check-package.py and flavor.py is unchanged. A fresh line has no marker, so it reports X.Y.0-dev through the existing "next minor" rule; after X.Y.0 the marker makes it report the next patch.

Also

  • Audit forwarding: a line release forwards its completed audit to main as a PR, because the generated half was only ever committed to the line.
  • Site film: site-video now refreshes for the newest vX.Y.Z tag only. It used to refresh for any release "from main", which no release is any more.
  • ci/bot-pr.sh opens the bot PRs and dispatches ci.yml on them. A PR opened with GITHUB_TOKEN starts no workflow on its own, so the required checks would otherwise never report.
  • Docs: the cut-release skill, AGENTS.md (a new rule: fixes reach a line from main, never only on the line) and docs/nightly-builds.md.

After merge

  • A release/v* ruleset with the same rules as main: required checks, no deletion, no force-push, and the deploy key and admins as bypass actors. The release runs push their bump commit and the completed audit to the line through the deploy key.

Verified

  • Locally:
    • python -m unittest ci.test_ci_workflows ci.test_ci_timeouts: 106 pass, including 6 new ReleaseLines tests and the updated site-video test.
    • ci/rc.py --selftest passes with the new line cases.
    • ci/bump-version.py --line in a scratch worktree:
      • a fresh release/v0.11 bumps 0.10.0 to 0.11.0 and writes RELEASE_LINE;
      • then 0.11.1 is accepted;
      • 0.12.0 on that line, and anything on main, are refused.
  • Not run: make check, which needs the Mac. This PR changes no Rust, Makefile or Cargo files, so no build-bench table is needed.
  • Not yet exercised for real: the new workflows. The first cut-line.yml dispatch is the live test.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits November 16, 2026 23:09
main no longer waits for a release. cut-line.yml branches release/vX.Y off
main, creates the `backport release/vX.Y` label, and opens the PR that
writes X.Y.0 into main's version files, so main reports X.(Y+1) from then
on. release.yml and rc.yml refuse an empty line; a fresh line (no
RELEASE_LINE) publishes X.Y.0 and its bump commit adds the marker, after
which the line publishes patches. The rule lives once, in
ci/version_rule.py::line_release_error, used by bump-version.py --line and
rc.py.

Fixes land on main first: backport.yml cherry-picks a merged PR labelled
`backport release/vX.Y` into a PR against the line, or comments with the
commands when it conflicts. A line release forwards its completed audit to
main as a PR, and the site film refreshes only for the newest vX.Y.Z.
ci/bot-pr.sh opens those PRs and dispatches ci.yml on them, since a PR
opened with GITHUB_TOKEN starts no workflow on its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ge cases

- backport.yml runs main's copy of bot-pr.sh (a line may have none or an
  older one), pushes through MAIN_PUSH_KEY so a CI-file fix can be pushed,
  reports an empty pick as "already on the line", and comments when the
  push or PR creation fails.
- release.yml's guard falls back to main only when the line branch is
  absent, not on any failed lookup.
- A re-run of X.Y.0 whose bump commit landed but whose tag push failed is
  allowed (the tag check still decides whether it shipped).
- A candidate for a patch of an older line lists changes since that line's
  last release, not the newest release overall.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 enabled auto-merge (squash) November 16, 2026 20:17
@GLinnik21
GLinnik21 merged commit caa2906 into main Nov 16, 2026
13 checks passed
@GLinnik21
GLinnik21 deleted the release-branches branch November 16, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant