Skip site navigation (1) Skip section navigation (2)

Re: "make check" in src/test/isolation is unworkable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: "make check" in src/test/isolation is unworkable
Date: 2011-05-08 23:35:31
Message-ID: 26138.1304897731@sss.pgh.pa.us (view raw)
I believe that the "make check" target in src/test/isolation is
fundamentally unportable, as is illustrated by the fact that buildfarm
member coypu is currently choking on it.  The reason is that the
pg_isolation_regress program depends on libpq, and in particular it
depends on having an *installed* libpq.  Anyplace where it appears to
work, it's because you already installed Postgres, or at least libpq.

Apparently coypu is the only buildfarm member that hasn't got a
reasonably recent libpq already installed in system directories; or
maybe it's just the first such that's tried to run the isolation-test
script step.

While we could maybe hack this to the point where it works (on some
platforms) by dynamically linking libpq from the source tree, I don't
think it's worth the trouble.

Recommendations:

1. Modify the buildfarm script to run "make installcheck" in the
isolation-test step, and of course move that to after doing the install
step.

2. Get rid of the "check" target in src/test/isolation/Makefile.
We don't need to be dealing with bug reports from people who try to
use it and get either a link failure (easily diagnosed) or a libpq
version compatibility problem (not so easily diagnosed).

			regards, tom lane

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2011-05-09 00:02:38
Message-ID: BANLkTinjhOc1UuME7MqFYJe8vQMiaU4QUw@mail.gmail.com (view raw)
On Mon, May 9, 2011 at 12:35 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> While we could maybe hack this to the point where it works (on some
> platforms) by dynamically linking libpq from the source tree, I don't
> think it's worth the trouble.
>

How is this different from the regular case with pg_regress?


-- 
greg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2011-05-09 00:29:12
Message-ID: 11395.1304900952@sss.pgh.pa.us (view raw)
Greg Stark <gsstark(at)mit(dot)edu> writes:
> How is this different from the regular case with pg_regress?

pg_regress doesn't link in libpq.

			regards, tom lane

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2011-05-09 01:54:03
Message-ID: 4DC7493B.2000904@dunslane.net (view raw)

On 05/08/2011 07:35 PM, Tom Lane wrote:
> I believe that the "make check" target in src/test/isolation is
> fundamentally unportable, as is illustrated by the fact that buildfarm
> member coypu is currently choking on it.  The reason is that the
> pg_isolation_regress program depends on libpq, and in particular it
> depends on having an *installed* libpq.  Anyplace where it appears to
> work, it's because you already installed Postgres, or at least libpq.

darn, you're right.

> Apparently coypu is the only buildfarm member that hasn't got a
> reasonably recent libpq already installed in system directories; or
> maybe it's just the first such that's tried to run the isolation-test
> script step.

Most aren't running the test because they aren't updated yet. There are 
six machines running the tests:

    pgbfprod=# select distinct sysname from build_status_log where
    log_stage ~ 'isolation' and snapshot > now() - interval '2 months';
      sysname
    ---------
      anchovy
      coypu
      crake
      bobcat
      chough
      kite

chough is doing the wrong thing anyway, because I got distracted and 
forgot to fill in the MSVC piece of the puzzle.


> While we could maybe hack this to the point where it works (on some
> platforms) by dynamically linking libpq from the source tree, I don't
> think it's worth the trouble.
>
> Recommendations:
>
> 1. Modify the buildfarm script to run "make installcheck" in the
> isolation-test step, and of course move that to after doing the install
> step.


working on that.

I have pushed a quick fix disabling the test for now until I come up 
with proper coding for this tomorrow. See

<https://github.com/PGBuildFarm/client-code/commit/bb1d2f972205d0a8f438bfde86a0fc99ffdeb24a>


> 2. Get rid of the "check" target in src/test/isolation/Makefile.
> We don't need to be dealing with bug reports from people who try to
> use it and get either a link failure (easily diagnosed) or a libpq
> version compatibility problem (not so easily diagnosed).
>
> 			

+1.

cheers

andrew


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2011-05-09 12:59:55
Message-ID: 4DC7E54B.1040006@dunslane.net (view raw)

On 05/08/2011 09:54 PM, Andrew Dunstan wrote:
>
>
> On 05/08/2011 07:35 PM, Tom Lane wrote:
>> I believe that the "make check" target in src/test/isolation is
>> fundamentally unportable, as is illustrated by the fact that buildfarm
>> member coypu is currently choking on it.  The reason is that the
>> pg_isolation_regress program depends on libpq, and in particular it
>> depends on having an *installed* libpq.  Anyplace where it appears to
>> work, it's because you already installed Postgres, or at least libpq.
>
> darn, you're right.
>
>

OK, I have crake running the installation checks: 
<http://www.pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=crake&dt=2011-05-09%2004%3A17%3A01&stg=isolation-check>, 
so I have checked in a hot fix for the buildfarm client: 
<https://github.com/PGBuildFarm/client-code/commit/c3c20a6457f57efcdcecb83e9c8168791f33f699>

What's a bit annoying is that these tests were checked in without a 
vestige of MSVC support, and nobody pinged the usual suspects (i.e. 
Magnus and me) to ask for help in providing it, unless my memory is even 
worse than usual. We have a bit of work to do to enable that, which I'll 
try to get done before pgcon.

cheers

andrew

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2011-05-09 13:44:31
Message-ID: 28713.1304948671@sss.pgh.pa.us (view raw)
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> What's a bit annoying is that these tests were checked in without a 
> vestige of MSVC support, and nobody pinged the usual suspects (i.e. 
> Magnus and me) to ask for help in providing it,

Speaking of pinging Windows people, have either of you noticed the
reports that CREATE/ALTER USER VALID UNTIL 'infinity' is crashing on
Windows?

http://archives.postgresql.org/pgsql-bugs/2011-05/msg00009.php
http://archives.postgresql.org/pgsql-bugs/2011-05/msg00030.php

			regards, tom lane

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Bug #6005
Date: 2011-05-12 23:28:14
Message-ID: 4DCC6D0E.5030401@dunslane.net (view raw)
[subject changed]

On 05/09/2011 09:44 AM, Tom Lane wrote:
> Andrew Dunstan<andrew(at)dunslane(dot)net>  writes:
>> What's a bit annoying is that these tests were checked in without a
>> vestige of MSVC support, and nobody pinged the usual suspects (i.e.
>> Magnus and me) to ask for help in providing it,
> Speaking of pinging Windows people, have either of you noticed the
> reports that CREATE/ALTER USER VALID UNTIL 'infinity' is crashing on
> Windows?
>
> http://archives.postgresql.org/pgsql-bugs/2011-05/msg00009.php
> http://archives.postgresql.org/pgsql-bugs/2011-05/msg00030.php

It appears to have been fixed (tested on Mingw-w64/W7).

What exactly are the other tests you want run?

cheers

andrew




From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Re: Bug #6005
Date: 2011-05-12 23:34:54
Message-ID: 12851.1305243294@sss.pgh.pa.us (view raw)
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> Speaking of pinging Windows people, have either of you noticed the
>> reports that CREATE/ALTER USER VALID UNTIL 'infinity' is crashing on
>> Windows?

> It appears to have been fixed (tested on Mingw-w64/W7).
> What exactly are the other tests you want run?

Check to see if timezone_abbrevations has a sane value and the
pg_timezone_abbrevs view has sane contents (ie, not empty).

			regards, tom lane

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Magnus Hagander <magnus(at)hagander(dot)net>
Subject: Re: Bug #6005
Date: 2011-05-12 23:54:45
Message-ID: 4DCC7345.7080204@dunslane.net (view raw)

On 05/12/2011 07:34 PM, Tom Lane wrote:
> Andrew Dunstan<andrew(at)dunslane(dot)net>  writes:
>>> Speaking of pinging Windows people, have either of you noticed the
>>> reports that CREATE/ALTER USER VALID UNTIL 'infinity' is crashing on
>>> Windows?
>> It appears to have been fixed (tested on Mingw-w64/W7).
>> What exactly are the other tests you want run?
> Check to see if timezone_abbrevations has a sane value and the
> pg_timezone_abbrevs view has sane contents (ie, not empty).


Value is 'Default'. View is not empty and looks sane.

cheers

andrew



From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2012-02-29 19:33:06
Message-ID: 1330543986.30260.5.camel@vanquo.pezone.net (view raw)
On sön, 2011-05-08 at 19:35 -0400, Tom Lane wrote:
> I believe that the "make check" target in src/test/isolation is
> fundamentally unportable, as is illustrated by the fact that buildfarm
> member coypu is currently choking on it.  The reason is that the
> pg_isolation_regress program depends on libpq, and in particular it
> depends on having an *installed* libpq.  Anyplace where it appears to
> work, it's because you already installed Postgres, or at least libpq. 

I came across this old issue.  Unless I'm missing something, there is no
reason why pg_isolation_regress needs to be linked with libpq at all,
and it works fine without it.  If we removed the libpq link, then it
would work just like pg_regress and could support "make check".

Apparently, -Wl,--as-needed isn't working too well here.



From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: "make check" in src/test/isolation is unworkable
Date: 2012-02-29 20:08:06
Message-ID: 4F4E85A6.7070906@dunslane.net (view raw)

On 02/29/2012 02:33 PM, Peter Eisentraut wrote:
> On sön, 2011-05-08 at 19:35 -0400, Tom Lane wrote:
>> I believe that the "make check" target in src/test/isolation is
>> fundamentally unportable, as is illustrated by the fact that buildfarm
>> member coypu is currently choking on it.  The reason is that the
>> pg_isolation_regress program depends on libpq, and in particular it
>> depends on having an *installed* libpq.  Anyplace where it appears to
>> work, it's because you already installed Postgres, or at least libpq.
> I came across this old issue.  Unless I'm missing something, there is no
> reason why pg_isolation_regress needs to be linked with libpq at all,
> and it works fine without it.  If we removed the libpq link, then it
> would work just like pg_regress and could support "make check".
>
> Apparently, -Wl,--as-needed isn't working too well here.
>
>


I believe we can't rely on it working. If we really don't need libpq 
then why not just filter it out?

cheers

andrew


Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group