pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Disable BLOB test in pg_dump TAP tests
5+ messages / 3 participants
[nested] [flat]

* pgsql: Disable BLOB test in pg_dump TAP tests
@ 2016-05-07 01:24 Stephen Frost <sfrost@snowman.net>
  2016-05-08 04:10 ` Re: pgsql: Disable BLOB test in pg_dump TAP tests Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Stephen Frost @ 2016-05-07 01:24 UTC (permalink / raw)
  To: pgsql-committers

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.

None of the other tests try to write out from psql directly as
this test does, so it seems likely that the rest of the tests will
be fine (as they have been on numerous other systems).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0f97c722bb201c67312eec0a9ff3691cda37878f

Modified Files
--------------
src/bin/pg_dump/t/002_pg_dump.pl | 68 ++++++++++++++++++++--------------------
1 file changed, 34 insertions(+), 34 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Disable BLOB test in pg_dump TAP tests
  2016-05-07 01:24 pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
@ 2016-05-08 04:10 ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-05-08 04:52   ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2016-05-08 04:10 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-committers

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.

I think it's probably best not to monkey with it right now, but after
beta1 is out, we should try re-enabling it.

			regards, tom lane


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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests
  2016-05-07 01:24 pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  2016-05-08 04:10 ` Re: pgsql: Disable BLOB test in pg_dump TAP tests Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-05-08 04:52   ` Stephen Frost <sfrost@snowman.net>
  2016-05-08 14:20     ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Stephen Frost @ 2016-05-08 04:52 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@postgresql.org

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.

> I think it's probably best not to monkey with it right now, but after
> beta1 is out, we should try re-enabling it.

I'd definitely like to work on getting that test working everywhere
post-beta1, but the simplest answer will probably be to just load the
large-object in the same way that pg_dump dumps it out, namely using the
'lo_open', 'lo_write', 'lo_close' functions.  The goal of that test is
to make sure that pg_dump does the right thing when it comes to
exporting the large object, not to test that \lo_import of psql works
(though that would certainly be a good thing to test in a set of psql
tests...).

Thanks!

Stephen

Attachments:

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests
  2016-05-07 01:24 pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  2016-05-08 04:10 ` Re: pgsql: Disable BLOB test in pg_dump TAP tests Tom Lane <tgl@sss.pgh.pa.us>
  2016-05-08 04:52   ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
@ 2016-05-08 14:20     ` Andrew Dunstan <andrew@dunslane.net>
  2016-05-08 17:02       ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Andrew Dunstan @ 2016-05-08 14:20 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@postgresql.org



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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests
  2016-05-07 01:24 pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  2016-05-08 04:10 ` Re: pgsql: Disable BLOB test in pg_dump TAP tests Tom Lane <tgl@sss.pgh.pa.us>
  2016-05-08 04:52   ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
  2016-05-08 14:20     ` Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests Andrew Dunstan <andrew@dunslane.net>
@ 2016-05-08 17:02       ` Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 5+ messages in thread

From: Stephen Frost @ 2016-05-08 17:02 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org

* Andrew Dunstan (andrew@dunslane.net) wrote:
> 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).

I'm pretty confident that I can work around this for the specific test
that was having trouble, but it seems like it'd be nice to have a way to
refer to the actual data and temp directories from psql and friends when
they're run under the TAP test system.

Ideally, there'd be a way to make it transparent, so we don't have to
write the tests to handle this case explicitly, though I'm not sure if
there's an easy way to do that.

Thanks!

Stephen

Attachments:

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2016-05-08 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-05-07 01:24 pgsql: Disable BLOB test in pg_dump TAP tests Stephen Frost <sfrost@snowman.net>
2016-05-08 04:10 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-05-08 04:52   ` Stephen Frost <sfrost@snowman.net>
2016-05-08 14:20     ` Andrew Dunstan <andrew@dunslane.net>
2016-05-08 17:02       ` Stephen Frost <sfrost@snowman.net>

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