Repository navigation
fix(release): complete bot release PRs; bump only coordinates - #553
Merged
Merged
Conversation
…inates only The automated "Prepare vX.Y.Z" PR never regenerated the TypeScript client's contract hash and version exports, so its SDK checks always failed (#546). release-prepare now sets up Node, runs export_typescript_contracts.py and the client's generate.mjs, and commits packages/typescript-client/{contracts,src}. prepare_next_release.py replaced every occurrence of the old version in the coordinate files, which rewrote history ("0.18.1 is the first release on 19rc1" became 0.18.2 in #551). It now replaces the version only after a coordinate prefix: image tags, release/download/PyPI URLs, the release link text, the checkout command and the CLI page heading. The preparer test proves a historical sentence survives and the result passes the release-docs contract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Member
Author
Codex review round 1 (gpt-6.1-sol, max) on eee5712VERDICT: APPROVE No blocker, major, or minor findings.
Validation: 17 tests passed; actionlint passed. Repository files remain unchanged. Disposition: no findings to address. The merge is on hold until the orchestrator decides whether the bot keeps auto-merging its own PRs. |
A release needs a changelog, a PostgreSQL pin re-check, the release contract and a Codex review, which the bot cannot do, and merging its PR starts the Release workflow (GHCR images publish without approval). Once its PRs pass CI (previous commit) the checks-wait and squash-merge would have cut unreviewed patch releases. Drop both; the PR body lists the human steps. RELEASING.md describes the bot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Member
Author
Codex review round 2 (gpt-6.1-sol, max) on 1285b6bVERDICT: APPROVE No findings. release-prepare.yml:92 safely handles body quoting and both PR paths under
Disposition: no findings to address. The orchestrator approved this change: the bot only opens its PR and never merges. |
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.
Summary
Two fixes to the release preparation, both found while cutting 0.18.2:
The bot PR is now complete. The automated "Prepare vX.Y.Z" PR (
release-prepare.yml) never regenerated the TypeScript client's pinned OpenAPI hash and version exports. Its four SDK checks therefore always failed, as on Prepare v0.18.2 #546. The workflow now:export_typescript_contracts.py;npm ciandgenerate.mjs;packages/typescript-client/{contracts,src}.The bump no longer rewrites history.
prepare_next_release.pyused to replace every occurrence of the old version in the coordinate files. In Release v0.18.2 #551 that turned "Version 0.18.1 is the first release on the19rc1image" into 0.18.2. It now replaces the version only when it follows a coordinate prefix:remember-stack:,remember-stack-postgres:<base>-);[vX]release link;git checkout v;CLI (v.A negative lookahead keeps
0.18.2from matching inside0.18.20.The bot never merges. This was the orchestrator's decision. Once its PRs pass CI, the old checks-wait and
gh pr merge --squashsteps would have cut unreviewed patch releases, and GHCR publishes without approval. Both steps are removed. The PR body now lists the human steps: changelog, PostgreSQL pin re-check, release contract, Codex.RELEASING.mddescribes the bot.Verification
0.18.2is left, and the historical "0.18.1 is the first release" sentence is untouched.test_release_preparer_updates_only_canonical_root_coordinatesnow also proves that a historical sentence naming the current version survives, and that the bumped files pass_validate_release_docs. The empty-cache lock test fixture now uses a coordinate.test_release_contract.py: 17 passed.The workflow change runs only on main pushes, after this PR merges and the next bot run opens a PR.
Contributor agreement
Signing on behalf of a legal entity (leave blank if accepting individually):
🤖 Generated with Claude Code
https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm