Skip to content

chore(release): fix promote-rc command and update workflow args#3899

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix-promote-rc-args
Jul 4, 2026
Merged

chore(release): fix promote-rc command and update workflow args#3899
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix-promote-rc-args

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Currently, the promote-rc command fails because it calls Git.get_commit_sha with an invalid keyword argument remote_ref. Additionally, we want to align argument passing in the workflow with the = style.

To fix this:

  • Remove the invalid remote_ref keyword argument from Git.get_commit_sha call in promote_rc.py.
  • Update promote_rc_test.py mock assertions to match the corrected call.
  • Update release_promote_rc.yaml to pass --issue and --remote arguments using =.

The promote-rc command was failing because it called Git.get_commit_sha with an invalid keyword argument 'remote_ref'. This fixes the call and updates the tests. It also updates the workflow to use '=' for passing arguments as requested.
@rickeylev rickeylev requested a review from aignas as a code owner July 4, 2026 04:07

@gemini-code-assist gemini-code-assist Bot 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 simplifies the invocation of get_commit_sha in promote_rc.py and its corresponding tests by passing the remote branch as a positional argument instead of a keyword argument (remote_ref). I have no further feedback to provide as there are no review comments.

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.

@rickeylev rickeylev merged commit 5650cc8 into bazel-contrib:main Jul 4, 2026
5 of 6 checks passed
@rickeylev rickeylev deleted the fix-promote-rc-args branch July 4, 2026 04:14
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