-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Don't use return if ENV["CI"]
in formulae
#70493
Comments
We'd need an alternative solution to avoid post-install failures on CI when we simultaneously test the different Context: #66450 (comment) (and the next four or so comments) |
It would be nice to not need these, but they were all added for a good reason and shouldn't be removed without carefully figuring out a better solution. Prior to #52004 being merged we regularly had to reimage and redeploy VMs because of confusing and hard-to-diagnose issues around postinstall blocks. This will be an even bigger problem for the ARM machines as those run on bare metal and can't be torn down and set up in the same way as the Intel VMs. I would prefer |
The problem we hit was that we're using Actions to test a library on MacOS. That library requires MySQL and we want to make sure it works for people on their local development machine. Actions sets The issue seems to be that the assumption of |
Yes, I agree with @dbussink, this is the the issue here. What I'd propose is we:
|
A quick check seems to show that all the Does anyone remember why these tests were disabled? |
Issues with shared memory filling up on our CI workers and no way we could find to configure postgresql to not use shared memory in this way (or to clear it). The best fix for now seems to be replacing these with e.g. |
These broadly fit into two categories:
test do
blockspost_install
operationsThese are a bad idea for multiple reasons:
brew audit
that isn't flagging up that these formulae are untested. Additionally, we're downloading these bottles and runningbrew test
on them when we test dependents which does nothing.test do
exists for our integration testing. It's not useful to have these blocks do nothing in CI where they are relied uponpost_install
withENV["CI"]
means if someone uses this formula to install a package in GitHub Actions: it's not going to work for them as documented/expectedThe text was updated successfully, but these errors were encountered: