pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: ci: macos: use cached macports install
Date: Sat, 19 Aug 2023 22:15:33 +0000
Message-ID: <E1qXUEG-000zeh-NI@gemulon.postgresql.org> (raw)

ci: macos: use cached macports install

A significant chunk of the time on the macos CI task is spent installing
packages using homebrew. The downloads of the packages are cached, but the
installation needs to happen every time. We can't cache the whole homebrew
installation, because it is too large due to pre-installed packages.

Speed this up by installing packages using macports and caching the
installation as .dmg. That's a lot faster than unpacking a tarball.

In addition, don't install llvm - it wasn't enabled when building, so it's
just a waste of time/space.

This substantially speeds up the mac CI time, both in the cold cache and in
the warm cache case (the latter from ~1m20s to ~5s).

It doesn't seem great to have diverging sources of packages for CI between
branches, so backpatch to 15 (where CI was added).

Discussion: https://postgr.es/m/20230805202539.r3umyamsnctysdc7@awork3.anarazel.de
Backpatch: 15-, where CI was added

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a2a6249cf1a4210caac534e8454a1614d0dd081a

Modified Files
--------------
.cirrus.yml                          | 63 ++++++++++-------------
src/tools/ci/ci_macports_packages.sh | 97 ++++++++++++++++++++++++++++++++++++
2 files changed, 122 insertions(+), 38 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1qXUEG-000zeh-NI@gemulon.postgresql.org>
Permalink:  ../E1qXUEG-000zeh-NI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qXUEG-000zeh-NI@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: ci: macos: use cached macports install
  In-Reply-To: <E1qXUEG-000zeh-NI@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox