Repository navigation
Cut every release from a release line; backport fixes from main - #1416
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every release is now cut from a release line, so
mainnever holds pull requests back while a release stabilizes.The flow
cut-line.yml, new):release/vX.Yoffmain;backport release/vX.Y;X.Y.0intomain's version files. Once that merges,main's dev builds and nightlies reportX.(Y+1), never the version the line is shipping.mainfirst, labelledbackport 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.rc.ymlandrelease.ymlwithline=release/vX.Y. An emptylineis now refused.RELEASE_LINEmarker. It publishesX.Y.0only, and that bump commit adds the marker.X.Y.N.ci/version_rule.py::line_release_error, used byci/bump-version.py --lineandci/rc.py.The version arithmetic in
build.rs,check-package.pyandflavor.pyis unchanged. A fresh line has no marker, so it reportsX.Y.0-devthrough the existing "next minor" rule; afterX.Y.0the marker makes it report the next patch.Also
mainas a PR, because the generated half was only ever committed to the line.site-videonow refreshes for the newestvX.Y.Ztag only. It used to refresh for any release "from main", which no release is any more.ci/bot-pr.shopens the bot PRs and dispatchesci.ymlon them. A PR opened withGITHUB_TOKENstarts no workflow on its own, so the required checks would otherwise never report.cut-releaseskill,AGENTS.md(a new rule: fixes reach a line frommain, never only on the line) anddocs/nightly-builds.md.After merge
release/v*ruleset with the same rules asmain: 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
python -m unittest ci.test_ci_workflows ci.test_ci_timeouts: 106 pass, including 6 newReleaseLinestests and the updated site-video test.ci/rc.py --selftestpasses with the new line cases.ci/bump-version.py --linein a scratch worktree:release/v0.11bumps0.10.0to0.11.0and writesRELEASE_LINE;0.11.1is accepted;0.12.0on that line, and anything onmain, are refused.make check, which needs the Mac. This PR changes no Rust, Makefile or Cargo files, so no build-bench table is needed.cut-line.ymldispatch is the live test.🤖 Generated with Claude Code