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
brew pr-pull
: handle label for merging without bottles
#11661
Conversation
Review period will end on 2021-07-07 at 14:10:21 UTC. |
Downloading the bottles and verifying their checksums seems appropriate in this case, no? Would be great to figure out a way to have this workflow handled by @BrewTestBot instead. Is |
I don't think so – unless I'm missing something, we aren't updating the bottles here (no revision bump or not necessary to have rebuilt bottles), and they're going to be discarded anyway. The only reason for running CI would be to check whether the changes, for e.g. in
The intention is to use this with BrewTestBot, perhaps by passing this option to the publish workflow or creating a separate "rebase and merge" workflow. This is independent of (and can be used together with) autosquash, which is concerned with ensuring one commit per formula and rewording commit messages. BrewTestBot already handles PRs with the
The alternative to this so far has been to just use |
Review period ended. |
e918794
to
988c02b
Compare
pr-{pull,publish}
: add --no-bottle
optionbrew pr-pull
: handle label for merging without bottles
With the latest commit, using the Edit (forgot to add this): After a brief discussion with Mike on Slack, we agreed that handling this via a PR label was a better solution as it would then be seamlessly integrated with the Publish workflow (and the scheduled publish) without extra work from maintainers (except adding a label to the PR which is far simpler than running |
988c02b
to
6bea9b4
Compare
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.
This is great, makes sense to me!
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This PR adds a
--no-bottle
option topr-pull
andpr-publish
. This can be convenient when we want to rebase and merge a PR (and ensure commits are signed) without downloading bottles.A use case for this would include PRs such as Homebrew/homebrew-core#80302 where we didn't add the syntax only label, since some of the changes weren't autocorrected and modified logic in e.g.
test
blocks.Signatures do not persist when using the GitHub UI "Rebase and merge" button, and
--no-upload
would still download the bottles. This option prevents downloading the bottles when we simply want to rebase and merge.