-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
*: Stop using head?
conditionals in test blocks
#180218
Conversation
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
- We don't test `HEAD` builds on CI, and the formulae test blocks are mostly for CI, so let's clean up.
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.
Makes sense to me but interested if other @homebrew/core folks disagree.
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.
make sense 👍
Let's hold off merging until some other folks have a chance to give input (e.g. until tomorrow UK time) |
Making a draft so @BrewTestBot leaves it alone until tomorrow. Naughty 🤖 ! |
I'm less certain about This means that the impact of removing it is likely small, so it maybe doesn't hurt too much. OTOH, we probably want to be nice to upstream maintainers that do rely on it, if any. |
That is just
Agreed. A middle ground here could be: we remove them all, if upstream specifically requests that we re-add them: we re-add with a comment linking to them asking for it. How's that sound @carlocab? |
Huh, maybe 😅. Can't remember if I tested that or not when I was looking at
Yes, sounds fine to me. |
Works for me, we could also remove the inverse: |
Thanks again @issyl0! |
I'll get on it! |
yeah, I almost never find myself using build.head for tests, nor have I seen anyone else use it either. |
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?head?
conditionals in test blocks since we don't testHEAD
builds on CI, and the formulae test blocks are mostly for CI confidence.