Skip to content
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

Bundled Homebrew version is too old #878

Closed
1 of 2 tasks
bbannier opened this issue Jul 7, 2021 · 7 comments
Closed
1 of 2 tasks

Bundled Homebrew version is too old #878

bbannier opened this issue Jul 7, 2021 · 7 comments
Labels

Comments

@bbannier
Copy link

bbannier commented Jul 7, 2021

Cirrus macos machines include Homebrew which is great. However the bundled Homebrew version is old and uses Homebrew bintray bottle locations which are not live anymore (see Homebrew/discussions#691). The Homebrew change to move bottle downloads from bintray to Github packages is Homebrew/brew#11070 which first appeared in homebrew-3.1.0. Cirrus macos machines seem to come with homebrew-2.7.1.

Expected Behavior

The following script should install the Homebrew LLVM package from a precompiled bottle (expected Homebrew default behavior) when run from a Cirrus macos job.

brew install llvm

Real Behavior

Executing the script either leads to a hard failure since the remote returns 403 Forbidden, or some other failure status which causes the package to be compiled from source (which takes long and could lead to e.g., Cirrus timeouts down the line).

A possible workaround seems to be to first run

brew update

This seems to update Homebrew sufficiently so it can use the new, correct bottle locations. This step however takes considerable time (~5min).

Related Info

This is a (tick one of the following):

  • Website issue
    • Link to page:
  • Task issue
    • OS: macOS
    • Task name:
    • Script/cache name (if applies):
@bbannier bbannier added the bug label Jul 7, 2021
@fkorotkov
Copy link
Contributor

Which macOS VM are you using? big-sur-xcode-12.5 has a new enough version of brew.

@bbannier
Copy link
Author

bbannier commented Jul 7, 2021

Which macOS VM are you using? big-sur-xcode-12.5 has a new enough version of brew.

I validated that I see this with catalina-base. I also seem to see this with big-sur-base, but haven't explicitly validated it.

bbannier added a commit to zeek/spicy that referenced this issue Jul 8, 2021
The osx machines we currently use in Cirrus CI seem to be affected by
cirruslabs/cirrus-ci-docs#878. In order to work around this this patch
adds a manual Homebrew upgrade before installing any packages. As this
takes time we should probably remove this step once upstream has merged
a fix.
@rsmmr
Copy link

rsmmr commented Jul 12, 2021

What would be the recommendation here? All our tests based on catalina-base and big-sur-base are currently breaking. Should we switch to the *-xcode-12.5 versions?

rsmmr added a commit to zeek/spicy that referenced this issue Jul 13, 2021
rsmmr added a commit to zeek/spicy that referenced this issue Jul 13, 2021
rsmmr added a commit to zeek/spicy that referenced this issue Jul 13, 2021
rsmmr added a commit to zeek/spicy that referenced this issue Jul 13, 2021
This works around cirruslabs/cirrus-ci-docs#878.

Unfortunately the Cataline image is still to old, so also adding a "brew
update" for that one (pulling in #952 here).
rsmmr added a commit to zeek/spicy that referenced this issue Jul 13, 2021
This works around cirruslabs/cirrus-ci-docs#878.

Unfortunately the Cataline image is still to old, so also adding a "brew
update" for that one (pulling in #952 here).
rsmmr added a commit to zeek/spicy that referenced this issue Jul 14, 2021
This works around cirruslabs/cirrus-ci-docs#878.

Unfortunately the Cataline image is still to old, so also adding a "brew
update" for that one (pulling in #952 here).
@bbannier
Copy link
Author

bbannier commented Sep 8, 2021

Is there any plan to fix these macos images so that the bundled Homebrew is actually usable?

@fkorotkov
Copy link
Contributor

big-sur-base image got update to the latest macOS 11.6 and all the up-to-date packages. Please give it a try. We'll build a new xcode image with Xcode 13 RC in the next couple of days.

@bbannier
Copy link
Author

Like I commented in cirruslabs/macos-image-templates#37 (comment), we really need working Homebrew on all supported macos images.

@fkorotkov
Copy link
Contributor

We are planning to deprecate Big Sur and Catalina VMs in early 2023. Monterey and Ventura VMs have up-to-date versions of Homebrew and getting constantly updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants