Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azPaj-0006jZ-Ak for pgsql-hackers@arkaria.postgresql.org; Sun, 08 May 2016 14:21:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1azPah-0000yc-R9 for pgsql-hackers@arkaria.postgresql.org; Sun, 08 May 2016 14:21:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1azPZM-0007vY-0n for pgsql-hackers@postgresql.org; Sun, 08 May 2016 14:20:28 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1azPZI-00052K-UA for pgsql-hackers@postgresql.org; Sun, 08 May 2016 14:20:26 +0000 Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 8AA60A80C8; Sun, 8 May 2016 16:20:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id tEQ2XZVuhnsD; Sun, 8 May 2016 16:20:19 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0F6AFA80BE; Sun, 8 May 2016 16:20:18 +0200 (CEST) Subject: Re: [COMMITTERS] pgsql: Disable BLOB test in pg_dump TAP tests To: Stephen Frost , Tom Lane References: <15724.1462680651@sss.pgh.pa.us> <20160508045247.GW10850@tamriel.snowman.net> Cc: pgsql-hackers@postgresql.org From: Andrew Dunstan Message-ID: <572F4B21.1080806@dunslane.net> Date: Sun, 8 May 2016 10:20:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160508045247.GW10850@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 05/08/2016 12:52 AM, Stephen Frost wrote: > Tom, > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> Stephen Frost 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&stg=bin-check > > 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