fix(releasekit): add set_upstream to VCS push and fail fast on errors#4662
Conversation
Summary of ChangesHello @yesudeep, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the reliability of Releasekit's Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces important correctness fixes to the releasekit process. It ensures that failures during git push and pull request creation are no longer silent, but instead raise a RuntimeError, which will correctly fail CI runs. It also adds the set_upstream parameter to the VCS push operation to correctly set up tracking for new release branches. Additionally, it adds fetch-tags: true to the GitHub Actions workflows to ensure changelog generation works correctly. The changes are well-implemented, and I have one suggestion to improve the consistency of the Mercurial backend implementation.
bcc1914 to
c369ab4
Compare
Releasekit's prepare command was silently succeeding when `git push` or PR creation failed, because the push result was unchecked and the forge result fell back to an empty string. This made CI runs appear green when the release branch or PR wasn't actually created. - Add `set_upstream` parameter to the VCS `push()` protocol, Git, and Mercurial backends so new release branches track their remote - Check `push()` and create_pr() results in `prepare_release()` and raise `RuntimeError` on failure instead of silently continuing - Add `fetch-tags: true` to all `actions/checkout` steps across the three releasekit workflow templates — required for changelog since-tag range resolution - Update all FakeVCS test doubles to match the new `push()` signature
c369ab4 to
81b75e0
Compare
Releasekit's prepare command was silently succeeding when
git pushor PR creation failed, because the push result was unchecked and the
forge result fell back to an empty string. This made CI runs appear
green when the release branch or PR wasn't actually created.
set_upstreamparameter to the VCSpush()protocol, Git, andMercurial backends so new release branches track their remote
push()and create_pr() results inprepare_release()andraise
RuntimeErroron failure instead of silently continuingfetch-tags: trueto allactions/checkoutsteps across thethree releasekit workflow templates — required for changelog
since-tag range resolution
push()signature