Skip to content

fix(release): promote the released version during development bumps - #508

Merged
lxy-9602 merged 2 commits into
apache:mainfrom
lucasfang:codex/fix-post-release-version-bump
Nov 5, 2026
Merged

lxy-9602 merged 2 commits into
apache:mainfrom
lucasfang:codex/fix-post-release-version-bump

Conversation

@lucasfang

Copy link
Copy Markdown
Collaborator

Purpose

Closes #507.

After publishing 0.4.0, bump_version.py 0.4.0 0.5.0 currently labels the unreleased 0.5.0 documentation as stable. Change the post-release bump to advance CMake and documentation to 0.5.0 while promoting the released 0.4.0 version to stable and keeping the development entry named main. Archive the previous stable only when its major.minor series changes.

Add an independent --promote-stable VERSION operation for updating stable documentation without advancing development. Require project and documentation versions to match the promotion target, support dry-run for both operations, and retain existing --check behavior for release tooling and older Git refs.

Tests

  • python3 -m unittest discover -s scripts/releasing/tests -v — all 25 tests passed.
  • Regression coverage includes consecutive development bumps, patch releases, stable promotion without a bump, repeated promotion without duplicate archives, unchanged project files during promotion, dry-run without writes, invalid operations, and legacy development labels.
  • pre-commit run --files scripts/releasing/bump_version.py scripts/releasing/tests/test_release_tools.py scripts/releasing/README.md — passed.
  • python3 scripts/releasing/bump_version.py --check 0.4.0 — passed.
  • git diff --check — passed.
  • C++ build and integration tests were not run; this change affects Python release tooling and documentation only.

API and Format

No changes to public C++ APIs, storage formats, or protocols. The two-version CLI now treats the old version as the release just published and the new version as the next development version. The new --promote-stable option cannot be combined with positional version arguments or --check.

Documentation

Updated scripts/releasing/README.md with the post-release workflow, independent stable promotion, dry-run behavior, and consistency-check semantics. No project version bump or stable promotion is performed by this PR itself.

Generative AI tooling

Generated-by: OpenAI Codex 0.166.0

Comment thread scripts/releasing/README.md Resolved

@lxy-9602 lxy-9602 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lxy-9602
lxy-9602 merged commit 64418d4 into apache:main Nov 5, 2026
18 checks passed
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.

[Bug] Post-release version bump marks the next development version as stable

3 participants