Skip to content

fix(release): complete bot release PRs; bump only coordinates - #553

Merged
fazpu merged 2 commits into
mainfrom
fix/release-prepare-bump
Nov 7, 2026
Merged

fazpu merged 2 commits into
mainfrom
fix/release-prepare-bump

Conversation

@fazpu

@fazpu fazpu commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Two fixes to the release preparation, both found while cutting 0.18.2:

  1. 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:

    • sets up Node 24;
    • runs export_typescript_contracts.py;
    • runs the client's npm ci and generate.mjs;
    • commits packages/typescript-client/{contracts,src}.
  2. The bump no longer rewrites history. prepare_next_release.py used 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 the 19rc1 image" into 0.18.2. It now replaces the version only when it follows a coordinate prefix:

    • image tags (remember-stack:, remember-stack-postgres:<base>-);
    • release, download and PyPI URLs;
    • the [vX] release link;
    • git checkout v;
    • the CLI page heading CLI (v.

    A negative lookahead keeps 0.18.2 from matching inside 0.18.20.

  3. The bot never merges. This was the orchestrator's decision. Once its PRs pass CI, the old checks-wait and gh pr merge --squash steps 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.md describes the bot.

Verification

  • Dry run on a copy of main: exactly the 11 coordinate lines move from 0.18.2 to 0.18.3, no 0.18.2 is left, and the historical "0.18.1 is the first release" sentence is untouched.
  • test_release_preparer_updates_only_canonical_root_coordinates now 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.
  • ruff, ruff format, pyright, actionlint
  • Codex round 1: APPROVE. Round 2, after removing auto-merge: APPROVE.
  • CI green

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

…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
@fazpu

fazpu commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Codex review round 1 (gpt-6.1-sol, max) on eee5712

VERDICT: APPROVE

No blocker, major, or minor findings.

  • Node setup, npm wrapper, generation order, and committed paths are correct. An isolated bump followed by SDK generation and check:generated passed under Node 24.
  • The dry run updated every coordinate in _COORDINATE_FILES from 0.18.2 to 0.18.3. Historical prose and unrelated text remained unchanged.
  • Both no-op paths passed mocked shell checks, skipped generation, and kept the commit step disabled.

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
@fazpu

fazpu commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Codex review round 2 (gpt-6.1-sol, max) on 1285b6b

VERDICT: APPROVE

No findings. release-prepare.yml:92 safely handles body quoting and both PR paths under set -euo pipefail, with no dangling variables. RELEASING.md:51 accurately describes the human handoff.

actionlint passed; all 17 release-contract tests passed. Working tree unchanged.

Disposition: no findings to address. The orchestrator approved this change: the bot only opens its PR and never merges.

@fazpu
fazpu merged commit 3d2f86d into main Nov 7, 2026
20 checks passed
@fazpu fazpu mentioned this pull request Nov 7, 2026
6 tasks done
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