Skip to content

Conversation

@ZhongRuoyu
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Homebrew/homebrew-test-bot@7d5274a intentionally skipped git clean on taps for some reason that I cannot tell, but doing so does help us to clean up untracked files in taps and thus avoiding issues like 1.

Footnotes

  1. https://github.com/orgs/Homebrew/discussions/6517

[1] intentionally skipped `git clean` on taps for some reason that I
cannot tell, but doing so does help us to clean up untracked files in
taps and thus avoiding issues like [2].

[1]: Homebrew/homebrew-test-bot@7d5274a
[2]: https://github.com/orgs/Homebrew/discussions/6517
Copilot AI review requested due to automatic review settings November 11, 2025 18:01
Copilot finished reviewing on behalf of ZhongRuoyu November 11, 2025 18:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds git clean operations on taps during test cleanup to remove untracked files, addressing issues where untracked files in taps could cause problems. The PR also fixes a typo where a closing parenthesis was missing in a string interpolation.

  • Adds clean_if_needed(git_repo) call to cleanup taps alongside existing reset and prune operations
  • Fixes missing closing parenthesis in GitHub repository string interpolation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Library/Homebrew/test_bot/test_cleanup.rb Adds clean_if_needed call for tap repositories to clean up untracked files during test cleanup
Library/Homebrew/test_bot.rb Fixes missing closing parenthesis in tap_github variable assignment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Worth a try, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 11, 2025
Merged via the queue into main with commit a9d9a6e Nov 11, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the test-bot-git-clean-taps branch November 11, 2025 19:55
@chenrui333
Copy link
Member

I tested the fix in my tap, it works pretty good. Thanks @ZhongRuoyu!

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.

4 participants