Skip to content

chore(release): correct version tagging and improve promotion flow - #3866

Merged
rickeylev merged 6 commits into
bazel-contrib:mainfrom
rickeylev:fix-promote-rc-bugs
Jun 29, 2026
Merged

chore(release): correct version tagging and improve promotion flow#3866
rickeylev merged 6 commits into
bazel-contrib:mainfrom
rickeylev:fix-promote-rc-bugs

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

This change refactors the release promotion tool to ensure all pre-conditions are verified before making any modifications and automates post-promotion tracking updates. It also fixes a bug where the tool incorrectly assumed 'v' prefixes when identifying the latest release candidate and computing the final version tag.

…okup
Update promote-rc and get_latest_rc_tag to work with the new tag format that lacks a 'v' prefix. Add corresponding unit tests to verify the behavior.
…git.tag
Update git.tag to require a commit_ref. Restructure promote-rc to verify pre-conditions before making modifications, and point the final tag directly to the RC's commit SHA. Update tests accordingly.
…motion comment
Rename and optimize `resolve_issue_number` to search by title via `gh` using corrected repo/label globals. Post a comment on the tracking issue with release and BCR search links upon successful promotion, and use `shlex.join` for copy-paste friendly logging.
@rickeylev
rickeylev requested a review from aignas as a code ownerJune 28, 2026 22:06
@rickeylev
rickeylev enabled auto-merge June 28, 2026 22:06

@gemini-code-assistgemini-code-assistBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the release tool to support promoting release candidates directly to final releases without checking out the tag, while also improving GitHub tracking issue updates and switching to shlex.join for safer command logging. The review feedback highlights two critical issues: a potential TypeError due to changing get_open_tracking_issues to require a version argument when parameterless calls still exist, and an inconsistency where release candidates are still created with a 'v' prefix but searched for without it.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment threadtools/private/release/gh.py Outdated
Comment threadtools/private/release/release.py
@rickeylev
rickeylev disabled auto-merge June 29, 2026 02:46
Rename to `get_release_tracking_issue` with strict error raising, refactor commands to use it, and remove the 'v' prefix from RC tags. Factor out `list_issues` helper in `gh.py` and add missing unit tests.
@rickeylev
rickeylev enabled auto-merge June 29, 2026 03:33
auto-merge was automatically disabled June 29, 2026 03:37

Pull request was closed

@rickeylev
rickeylev deleted the fix-promote-rc-bugs branch June 29, 2026 03:37
Default to dry-run=True to prevent accidental promotions. Update existing tests and add a new dry-run success test.
@rickeylevrickeylev reopened this Jun 29, 2026
@rickeylev
rickeylev enabled auto-merge June 29, 2026 03:50
@rickeylev
rickeylev added this pull request to the merge queueJun 29, 2026
Merged via the queue into bazel-contrib:main with commit 097f6a1Jun 29, 2026
6 checks passed
Sign up for freeto 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.

2 participants

@rickeylev@aignas