Skip to content

Conversation

@jinseopkim0
Copy link
Contributor

@jinseopkim0 jinseopkim0 commented Oct 6, 2025

This script automates the process of retrying and merging pull requests by checking the status of Kokoro tests.

Prerequisites:

  • Go must be installed (https://golang.org/doc/install).
  • A GitHub personal access token with repo scope must be set in the GITHUB_TOKEN environment variable.

Example Usage:

export GITHUB_TOKEN="<your GitHub token>"
cd .github/scripts
go run ./release_manager_merge_bot.go <PR URL>

This script automates the process of retrying and merging pull requests by checking the status of Kokoro tests.
Copy link
Contributor

@blakeli0 blakeli0 left a comment

Choose a reason for hiding this comment

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

Thanks for moving the scripts to google-cloud-java, Jin Seop! I think we usually put Github related scripts to .github folder. Maybe another subfolder like PR_merging_automation?

@meltsufin
Copy link
Member

Why isn't "Enable- auto-merge" sufficient?

@jinseopkim0
Copy link
Contributor Author

Thanks for moving the scripts to google-cloud-java, Jin Seop! I think we usually put Github related scripts to .github folder. Maybe another subfolder like PR_merging_automation?

Thanks for the feedback. I put the script in .github/scripts. Please let me know if you disagree with this decision.

@jinseopkim0
Copy link
Contributor Author

Why isn't "Enable- auto-merge" sufficient?

Thanks for the question. This script is a temporary solution to ease the work of release managers that have to continually retry flaky kokoro tests. The script retries kokoro tests if they fail, and auto-merge does not retry kokoro tests. We have a long term solution to track the flaky tests and fix them or disable them.

@jinseopkim0 jinseopkim0 requested a review from blakeli0 October 6, 2025 17:47
@jinseopkim0 jinseopkim0 enabled auto-merge (squash) October 6, 2025 17:47
@jinseopkim0 jinseopkim0 merged commit a14608e into main Oct 6, 2025
34 checks passed
@jinseopkim0 jinseopkim0 deleted the release_script branch October 6, 2025 18:16
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.

3 participants