GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(release): add dry-run to release tool prepare command by rickeylev · Pull Request #3869 · bazel-contrib/rules_python

Conversation

@rickeylev

@rickeylev rickeylev commented Jun 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

To enable safe testing of the release pipeline, this change introduces a --dry-run flag to the prepare command that simulates all repository and GitHub actions.

This also fixes a few issues with the prepare command not fully working
end-to-end.

Along the way, factor out the code a bit. release.py was over 1000 lines and
becoming unwieldly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
rickeylev added 3 commits June 29, 2026 07:29
@rickeylev
Add a --dry-run flag to the release tool's prepare command to allow s…
5861c0a
…afe testing of the release pipeline, and refactor the tool's codebase into modular components to improve maintainability. This structure is verified by an updated test suite using temporary directories and package-level mocking.
@rickeylev
Fix PR creation by removing non-existent label and improve error repo…
4833307
…rting
@rickeylev
Fix PR creation: set upstream tracking and use gh auto-detection
11b6abe
@rickeylev
rickeylev requested a review from aignas as a code owner June 29, 2026 07:54
@rickeylev rickeylev changed the title chore(release): add dry-run to prepare chore(release): add dry-run to release tool prepare command Jun 29, 2026
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Jun 29, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 by modularizing the monolithic release.py into smaller, dedicated modules: prepare.py, release_issue.py, shell.py, and utils.py. It also introduces custom exceptions for tracking issues, simplifies pull request creation, and adds a dry-run mode to the prepare subcommand. The test suite has been updated to reflect these structural changes. Feedback on the changes highlights a fragile manual parsing of git status output in prepare.py when staging files, suggesting a more robust alternative using git add -u.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tools/private/release/prepare.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rickeylev
chore(release): use git add --update via helper to stage files
36d023c
@rickeylev
rickeylev merged commit 9734b11 into bazel-contrib:main Jun 30, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rickeylev
rickeylev deleted the add-dry-run-release-prepare branch June 30, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aignas aignas Awaiting requested review from aignas aignas is a code owner
1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rickeylev
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.