Re: [HACKERS] make check false success - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] make check false success
Date
Msg-id 31977.1496670564@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] make check false success  (Sandro Santilli <strk@kbt.io>)
List pgsql-hackers
Sandro Santilli <strk@kbt.io> writes:
> On Fri, Jun 02, 2017 at 08:20:25AM -0400, Robert Haas wrote:
>> On Thu, Jun 1, 2017 at 10:18 AM, Sandro Santilli <strk@kbt.io> wrote:
>>> I noticed that the `check` Makefile rule imported by PGXS is giving
>>> a success exit code even when it is unsupported.

>> Hmm.  I'm not 100% sure that the existing behavior is wrong.

> Why not ? The caller is attempting to make an unsupported target,
> how's that different from calling `make unexistent` ?

The key question here is whether you break recursive behavior.
We wouldn't be happy if, for instance, contrib/Makefile had to know
exactly which subdirectories it was safe to recurse into when doing
"make check".  Now, that doesn't apply directly because we're not
using the PGXS logic when we do that --- but it seems entirely
possible to me that a PGXS-using module might be a subdirectory
of some larger project, so that it would not want to fail just
because it had no tests it could run.

A related point is that if you try "make check" in a subdirectory
that doesn't have REGRESS defined at all, you don't get an error
(and this patch wouldn't change that).  It would be pretty inconsistent
to throw an error if REGRESS is defined but not if it isn't, IMO.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Sokolov Yura
Date:
Subject: [HACKERS] Fix performance degradation of contended LWLock on NUMA
Next
From: Tom Lane
Date:
Subject: Re: retry shm attach for windows (WAS: Re: [HACKERS] OK, so culicidae is *still* broken)