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: Fix cached MacPorts installation management
Date: Wed, 27 Nov 2024 16:52:49 +0000
Message-ID: <E1tGLHV-003mEA-BS@gemulon.postgresql.org> (raw)

ci: Fix cached MacPorts installation management

1.  The error reporting of "port setrequested list-of-packages..."
changed, hiding errors we were relying on to know if all packages in our
list were already installed.  Use a loop instead.

2.  The cached MacPorts installation was shared between PostgreSQL
major branches, though each branch wanted different packages.  Add the
list of packages to cache key, so that different branches, when tested
in one github account/repo such as postgres/postgres, stop fighting with
each other, adding and removing packages.

Back-patch to 15 where CI began.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Suggested-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/au2uqfuy2nf43nwy2txmc5t2emhwij7kzupygto3d2ffgtrdgr%40ckvrlwyflnh2

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3bbfa2ef785a36c6aa48d9a7780274dcbc6d63fd

Modified Files
--------------
.cirrus.tasks.yml                    | 34 ++++++++++++++++++----------------
src/tools/ci/ci_macports_packages.sh | 15 +++++++++++----
2 files changed, 29 insertions(+), 20 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1tGLHV-003mEA-BS@gemulon.postgresql.org>
Permalink:  ../E1tGLHV-003mEA-BS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tGLHV-003mEA-BS@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: Fix cached MacPorts installation management
  In-Reply-To: <E1tGLHV-003mEA-BS@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