pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests
Date: Sun, 8 May 2016 10:20:17 -0400
Message-ID: <572F4B21.1080806@dunslane.net> (raw)
In-Reply-To: <20160508045247.GW10850@tamriel.snowman.net>
References: <E1ayqyz-0007Xo-Cr@gemulon.postgresql.org>
	<15724.1462680651@sss.pgh.pa.us>
	<20160508045247.GW10850@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



On 05/08/2016 12:52 AM, Stephen Frost wrote:
> Tom,
>
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> Stephen Frost <sfrost@snowman.net> writes:
>>> Disable BLOB test in pg_dump TAP tests
>>> Buildfarm member jacana appears to have an issue with running this
>>> test.  It's not entirely clear to me why, but rather than try to
>>> fight with it, just disable it for now.
>> BTW, what was your evidence for thinking that that specific test
>> needed to be disabled?  It looks to me like it would have been
>> subject to the $-in-/m-mode bug we identified today, so I'm wondering
>> if it was merely the first to fail.
> No, those errors were "match/don't match" errors.  At the bottom of:
>
> http://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=jacana&dt=2016-05-06%2023%3A41%3A15...
>
> is the error, which is 'No such file or directory'.  I'm pretty sure the
> error is from the '\o' in that test which is trying to write a file to
> the '$tempdir' directory.  Clearly, on that system at least, $tempdir
> isn't a completely fully-qualified path, since it ends up being:
>
> /home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_dump/tmp_check/tmp_test_v8cH
>
> but the data directory is:
>
> c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_dump/tmp_check/data_main_NSG0/pgdata
>
> I'm not quite sure how that system works (is a starting '/' actually
> referring to a relative path, and psql isn't being run from that root
> directory?  Or does the shell handle converting arguments which start
> with a '/' to their full path, and that's why calls to pg_ctl and other
> things work, but trying to use that same path from inside a program
> doesn't?), but apparently referring to $tempdir from inside psql doesn't
> give you the same directory that referring to it from the TAP perl
> script does.



TL;DR version: Msys provides a virtualized Unix-like file system that is 
visible to its programs that you use to build, but invisible to the 
programs you build since they are going to run without any knowledge of 
the build environment.  So you can't just put $tmpdir from an Msys-aware 
program into a psql script and expect it to work. It won't. Maybe we 
need to provide a function in our test library to convert virtual paths 
to real paths. (For Unix it would be a NOOP).

cheers

andrew





-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (5+ messages)  latest in thread

Message-ID: <572F4B21.1080806@dunslane.net>
Permalink:  ../572F4B21.1080806@dunslane.net/
Also on:    postgresql.org/message-id/572F4B21.1080806@dunslane.net

 · 

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: andrew@dunslane.net, sfrost@snowman.net, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests
  In-Reply-To: <572F4B21.1080806@dunslane.net>
  References: <E1ayqyz-0007Xo-Cr@gemulon.postgresql.org> <15724.1462680651@sss.pgh.pa.us> <20160508045247.GW10850@tamriel.snowman.net> <572F4B21.1080806@dunslane.net>

* 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