pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Christoph Berg <myon@debian.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Date: Wed, 24 Mar 2021 10:08:42 +0900
Message-ID: <YFqRGvGasd8RyltU@paquier.xyz> (raw)
In-Reply-To: <YFnWBYinNf1s0Y6v@msg.df7cb.de>
References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org>
	<YFnWBYinNf1s0Y6v@msg.df7cb.de>

On Tue, Mar 23, 2021 at 12:50:29PM +0100, Christoph Berg wrote:
> I'm working around the problem now by running the tests as user
> "postgres", but does completely break in environments where users want
> to run the testsuite from a separate compilation user but don't have root.
> 
> Old code: https://salsa.debian.org/postgresql/postgresql/-/blob/8b1217fcae3e64155bc35517acbd50c6f166d997/debia...
> Workaround: https://salsa.debian.org/postgresql/postgresql/-/blob/cbc0240bec738b6ab3b61c498825b82c8ff21a70/debia...

So you basically mimicked the makefile rule that this commit removed
into your own test suite.  Reverting the change does not really help,
because we'd be back to square one where there would be problems in
parallel runs for developers.  Saying that, I would not mind adding an
option to pg_regress to control if this cleanup code is triggered or
not, say something like --no-tablespace-cleanup?  Then, you could just
pass down the option by yourself before creating your tablespace path
as you wish.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (18+ messages)  latest in thread

Message-ID: <YFqRGvGasd8RyltU@paquier.xyz>
Permalink:  ../YFqRGvGasd8RyltU@paquier.xyz/
Also on:    postgresql.org/message-id/YFqRGvGasd8RyltU@paquier.xyz

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, myon@debian.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres
  In-Reply-To: <YFqRGvGasd8RyltU@paquier.xyz>
  References: <E1lJroH-0006Oz-Gb@gemulon.postgresql.org> <YFnWBYinNf1s0Y6v@msg.df7cb.de> <YFqRGvGasd8RyltU@paquier.xyz>

* 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