Repository navigation
Conversation
A stable core release whose regenerated bindings are identical needs no SDK work, so core-watch can merge its proposal and release-tag.yml tags the SDK release right away. merge-bump-pr.sh merges such a proposal only when it is still one bot commit touching nothing but buf.gen.yaml and README.md, its required checks are green, and no one added the hold label. A release that changes anything under proto/ always waits for review, so the SDK release may lag until the new features are wrapped. Off by default: the CORE_AUTO_MERGE repository variable switches it on, and the bot needs a pull-request bypass on the main-integrity ruleset. Signed-off-by: Roland Huß <rhuss@redhat.com>
SDAChess
left a comment
There was a problem hiding this comment.
I’d keep auto-merge off and hold off on granting the App a main-integrity bypass until we can verify who produced the exact commit and what it changes.
The bump commits are unsigned today. The script checks the author and committer emails, which anyone who can push to the branch can set. A simpler option than adding commit signing would be a dedicated ruleset for core/* in sdk-go that lets only the App create, update, or delete those branches. We could limit auto-merge to branches created under that rule and keep --match-head-commit so the merge uses the SHA we checked. If we want to preserve the ability for humans to push fixes directly to bump branches, bot-signed commits would give us that flexibility.
I’d also compare the full patch against the expected pin and README edits. Buf can execute a local plugin without changing proto/, so checking the tag field and changed filenames leaves a gap.
Before granting bypass, I’d fix the PR-body renderer so upstream diff text can’t expand environment variables, and enforce CI and E2E in a separate ruleset the merge identity can’t bypass. The branch ruleset would establish who controls the bump branch. A merge-only App would separately limit which workflows can bypass review on main.
Summary
A stable core release whose regenerated bindings are identical needs no SDK work. core-watch can then merge its bump proposal without review, and
release-tag.ymltags the lockstep SDK release right away. A release that changes anything underproto/keeps waiting for review, so the SDK release may lag until the new features are wrapped and usable (see #59 for the coverage issues).How it works
New step in core-watch after the bump proposals:
hack/automation/merge-bump-pr.sh(mise taskcore:merge). It re-checks every open stablecore-bumpproposal on each run and merges only when all of these hold:core/vX.Y.Zof this repository intomain, noholdlabelmain, authored and committed by the bot, so any human push sends it back to reviewbuf.gen.yamlmatches the branch tag, and the commit touches onlybuf.gen.yamlandREADME.md: nothing underproto/, no conformance fixtureci,e2e / e2e, andDCOpassed, and no other check failed or is pendingIt merges with
--squash --match-head-commit <sha>, so a push after the checks blocks the merge, and comments on the PR why it merged without review.Rollout
Off by default. Two admin steps switch it on:
ai-openshell-sdk-goApp to themain-integrityruleset as a bypass actor with mode "pull requests only" (the merge skips the code owner review).CORE_AUTO_MERGE=on.Testing
mise run workflows:checkpasses.#56: the bindings change (2 files under proto/), so the new core API needs review, and with the variable unset:Auto-merge is off. The merge path itself runs for the first time with the next stable release that changes no proto.