From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Erik Rijkers <er@xs4all.nl>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Default monitoring roles
Date: Thu, 30 Mar 2017 16:20:21 -0400
Message-ID: <7955.1490905221@sss.pgh.pa.us> (raw)
In-Reply-To: <13861.1490902043@sss.pgh.pa.us>
References: <E1ctegh-0000Ru-LA@gemulon.postgresql.org>
<a6fae859923939243282610e72fdcf61@xs4all.nl>
<CANP8+jLH_n62h4rqgMjKFvWjRBGHY3=2Zu+d-_VDzO3YATTUXg@mail.gmail.com>
<13861.1490902043@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
I wrote:
> Simon Riggs <simon@2ndquadrant.com> writes:
>> Weird. make check-world just skipped that directory. I guess for Dave also.
> If you just did check-world, it probably didn't build contrib modules that
> don't have tests, because the "check" target wouldn't do anything without
> tests to run.
I wondered why this is --- wouldn't "check" depend on "all", so that
things get built, even if there's no tests to run?
The answer is, no it doesn't. "check" depends on "temp-install", and
then temp-install indirectly depends on "all". So when you say
"make check-world", the reason that any code gets built at all is that
we're trying to install all the executables into the temporary
installation. However, the basic temp-install target only installs
(and therefore only forces building of) the core code. In a contrib
subdirectory, what is supposed to happen is that this line in
pgxs.mk causes that contrib subdirectory to also get built/installed:
temp-install: EXTRA_INSTALL+=$(subdir)
But if you look around a bit further, you discover that that line is
inside an "ifdef REGRESS" block --- therefore, unless the module
defines at least one REGRESS-style test, it's not built by "make check".
I thought that the attached patch would be a narrow fix for this,
just moving that dependency out of the "ifdef REGRESS" block.
However, it seems to send "make" into some infinite loop, at
least with make 3.81 which I'm using here. Not sure why.
I also experimented with just changing "check: temp-install"
in Makefile.global to be "check: all temp-install", and that
seemed to work, but since I don't understand why it wasn't
like that already, I'm a bit afraid of that solution.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackersAttachments:make-check-fix-FAILS.patch (text/x-diff, 593B) downloaddiff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mkindex c27004e..c156806 100644
*** a/src/makefiles/pgxs.mk
--- b/src/makefiles/pgxs.mk
*************** check:
*** 282,291 ****
else
check: submake $(REGRESS_PREP)
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
temp-install: EXTRA_INSTALL+=$(subdir)
endif
- endif # REGRESS
# STANDARD RULES
--- 282,293 ----
else
check: submake $(REGRESS_PREP)
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
+ endif+ endif # REGRESS+ ifndef PGXS
temp-install: EXTRA_INSTALL+=$(subdir)
endif
# STANDARD RULES
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: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, er@xs4all.nl, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Default monitoring roles
In-Reply-To: <7955.1490905221@sss.pgh.pa.us>
References: <E1ctegh-0000Ru-LA@gemulon.postgresql.org> <a6fae859923939243282610e72fdcf61@xs4all.nl> <CANP8+jLH_n62h4rqgMjKFvWjRBGHY3=2Zu+d-_VDzO3YATTUXg@mail.gmail.com> <13861.1490902043@sss.pgh.pa.us> <7955.1490905221@sss.pgh.pa.us>
* 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