pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: ci: macos: use cached macports install
3+ messages / 1 participants
[nested] [flat]

* pgsql: ci: macos: use cached macports install
@ 2023-08-19 22:15  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2023-08-19 22:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_16_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: ci: macos: use cached macports install
@ 2023-08-19 22:15  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2023-08-19 22:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: ci: macos: use cached macports install
@ 2023-08-19 22:15  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2023-08-19 22:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/62017cb51ff9f1ff6aa94bdf26d9cc290d4ffe48

Modified Files
--------------
.cirrus.yml                          | 67 ++++++++++---------------
src/tools/ci/ci_macports_packages.sh | 97 ++++++++++++++++++++++++++++++++++++
2 files changed, 124 insertions(+), 40 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2023-08-19 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-19 22:15 pgsql: ci: macos: use cached macports install Andres Freund <andres@anarazel.de>
2023-08-19 22:15 pgsql: ci: macos: use cached macports install Andres Freund <andres@anarazel.de>
2023-08-19 22:15 pgsql: ci: macos: use cached macports install Andres Freund <andres@anarazel.de>

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