-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump-formula|cask-pr: do not allow to bump autobumped packages #16750
Conversation
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.
Great work @iMichka! Some Pathname
and messaging improvements.
One odd thing (and the reason why used a regex in the first place): I had no time to check what is the origin of this array. I got confused because The current code is working, I'll defer to the reviewers if you want me to check the |
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.
Seems we also need to allow @BrewTestBot to bypass this restriction.
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.
Suggestions look good to me!
This should be good now: thanks for all the suggestions and the help :) |
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.
Looks great. Thanks @iMichka!
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.
@BrewTestBot is also using the bump-formula-pr
/bump-cask-pr
commands under the hood. Will this prevent it from bumping formulae normally?
Looks good to me! $ brew bump-cask-pr --dry-run --version=4.4.4 tsh
Error: Whoops, the tsh cask has its version update
pull requests automatically opened by BrewTestBot!
We'd still love your contributions, though, so try another one
that's not in the autobump list:
https://github.com/Homebrew/homebrew-cask/blob/master/.github/autobump.txt $ brew bump-formula-pr --dry-run --version=4.4.4 agda
Error: Whoops, the agda formula has its version update
pull requests automatically opened by BrewTestBot!
We'd still love your contributions, though, so try another one
that's not in the autobump list:
https://github.com/Homebrew/homebrew-core/blob/master/.github/autobump.txt Thanks @iMichka! |
Good question. I looked at brew test bot and it doesn't seem to use
I looked at the core repos and it seems we use a separate action to bump packages that calls There is a deprecated action for bumping formulae using |
brew/Library/Homebrew/dev-cmd/bump.rb Lines 506 to 516 in 154a217
|
Ah, my bad. I had those backwards. I guess we could allow this only on CI somehow. Edit: We can probably just use |
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.
We need to find a way to not break CI scripts that run brew bump
.
Or maybe |
This feels like best fit to me 👍🏻 |
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.
Looks good once there's a workaround for BrewTestBot to not 💥
This will unblock Homebrew/brew#16750 by providing us with an environment variable that's only on when we're autobumping packages. In all other scenarios, we want people to get an error message if they try to bump one of the packages that gets regularly autobumped on CI.
I opened a PR to add the environment variable to the |
Unblocking other reviewers since we've agreed on how to not break CI.
Just to over communicate a bit. Three PRs need to be merged in in a specific order and this one will be the last one to land. |
Avoids: - Bumping stuff by mistake that will get autobumped anyway - Abusing the system to get "free" commits
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.
Looks good to me now, thanks @iMichka!
This is needed for Homebrew/brew#16750. Note that #163023 is no longer relevant as the ability to skip duplicate PR check in `brew bump` has been completely removed in Homebrew/brew#16781.
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.
Thanks everyone! Let's merge this after Homebrew/homebrew-core#164745 and Homebrew/homebrew-cask#167993.
This is needed for Homebrew/brew#16750.
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.
Awesome work everyone!
Thanks all :) |
Avoids:
Bumping stuff by mistake that will get autobumped anyway
Abusing the system to get "free" commits
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?