ysoftwareab / yplatform

Self-service bootstrap/build/CI/CD. Software and configuration that supports various cycles of software development.
Apache License 2.0
19 stars 7 forks source link

CI: faster homebrew installation #235

Closed andreineculau closed 2 years ago

andreineculau commented 3 years ago

A great chunk of the time spent in CI goes to git-cloning homebrew-core. It's a huge repo.

One alternative would be to make use of https://github.com/rokmoln/support-firecloud/blob/master/bin/git-shallow which would shallow clone homebrew-core.

Another would be to use download and unpack the tarball of the commit. This can be done via ungit https://github.com/rokmoln/support-firecloud/blob/master/bin/degit

NOTE: In the past, the homebrew install script would use --depth=1, but that is frowned upon by github (consumes more resources).

REF: https://github.com/Homebrew/install/issues/523

andreineculau commented 3 years ago

takes 273 seconds (august 2021) git fetch homebrew-core on github-actions . even more on other CIs

update: 393 seconds (december 2021)

andreineculau commented 2 years ago

trying degit in 1de068c02610792d45db1c84572ec2442ea7aa12

andreineculau commented 2 years ago

initial results show that times have decreased