pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use native methods to open input in TestLib::slurp_file on Windo
10+ messages / 3 participants
[nested] [flat]

Commits from this thread:
  2019-11-26 792dba73c8  Fix closing stdin in TestLib.pm
* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2019-11-24 23:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 1 reply; 10+ messages in thread

From: Andrew Dunstan @ 2019-11-24 23:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

It is hoped that this will avoid some errors that we have seen before,
but lately with greater frequency, in buildfarm animals.

For now apply only to master. If this proves effective it can be
backpatched.

Discussion: https://postgr.es/m/13900.1572839580@sss.pgh.pa.us

Author: Juan José Santamaría Flecha

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/114541d58e5970e51b78b77b65de16210beaab43

Modified Files
--------------
src/test/perl/TestLib.pm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)



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

* Re: pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2019-11-26 04:41  Michael Paquier <michael@paquier.xyz>
  parent: Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 2 replies; 10+ messages in thread

From: Michael Paquier @ 2019-11-26 04:41 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org

Hi Andrew,

On Sun, Nov 24, 2019 at 11:53:31PM +0000, Andrew Dunstan wrote:
> Use native methods to open input in TestLib::slurp_file on Windows.
> 
> It is hoped that this will avoid some errors that we have seen before,
> but lately with greater frequency, in buildfarm animals.
> 
> For now apply only to master. If this proves effective it can be
> backpatched.
> 
> Discussion: https://postgr.es/m/13900.1572839580@sss.pgh.pa.us

jacana is visibly complaining about this commit:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-11-25%2020%3A19%3A49

The tests of commit_ts are failing:
Nov 25 16:46:52 t/001_base.........# Looks like your test exited with
255 before it could output anything.
Nov 25 16:46:52 dubious
Nov 25 16:46:52		Test returned status 255 (wstat 65280, 0xff00)
Nov 25 16:46:52 DIED. FAILED tests 1-2
--
Michael

Attachments:

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

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

* Re: pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2019-11-26 12:53  Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  parent: Michael Paquier <michael@paquier.xyz>
  1 sibling, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2019-11-26 12:53 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org


On 11/25/19 11:41 PM, Michael Paquier wrote:
> Hi Andrew,
>
> On Sun, Nov 24, 2019 at 11:53:31PM +0000, Andrew Dunstan wrote:
>> Use native methods to open input in TestLib::slurp_file on Windows.
>>
>> It is hoped that this will avoid some errors that we have seen before,
>> but lately with greater frequency, in buildfarm animals.
>>
>> For now apply only to master. If this proves effective it can be
>> backpatched.
>>
>> Discussion: https://postgr.es/m/13900.1572839580@sss.pgh.pa.us
> jacana is visibly complaining about this commit:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-11-25%2020%3A19%3A49
>
> The tests of commit_ts are failing:
> Nov 25 16:46:52 t/001_base.........# Looks like your test exited with
> 255 before it could output anything.
> Nov 25 16:46:52 dubious
> Nov 25 16:46:52		Test returned status 255 (wstat 65280, 0xff00)
> Nov 25 16:46:52 DIED. FAILED tests 1-2


Yeah, That's my machine so I will investigate ...


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






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

* Re: pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2019-11-27 02:17  Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  parent: Michael Paquier <michael@paquier.xyz>
  1 sibling, 1 reply; 10+ messages in thread

From: Andrew Dunstan @ 2019-11-27 02:17 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org


On 11/25/19 11:41 PM, Michael Paquier wrote:
> Hi Andrew,
>
> On Sun, Nov 24, 2019 at 11:53:31PM +0000, Andrew Dunstan wrote:
>> Use native methods to open input in TestLib::slurp_file on Windows.
>>
>> It is hoped that this will avoid some errors that we have seen before,
>> but lately with greater frequency, in buildfarm animals.
>>
>> For now apply only to master. If this proves effective it can be
>> backpatched.
>>
>> Discussion: https://postgr.es/m/13900.1572839580@sss.pgh.pa.us
> jacana is visibly complaining about this commit:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-11-25%2020%3A19%3A49
>
> The tests of commit_ts are failing:
> Nov 25 16:46:52 t/001_base.........# Looks like your test exited with
> 255 before it could output anything.
> Nov 25 16:46:52 dubious
> Nov 25 16:46:52		Test returned status 255 (wstat 65280, 0xff00)
> Nov 25 16:46:52 DIED. FAILED tests 1-2


Yeah, when the client is updated it actually fails at the same spot that
fairywren is failing.


I suspect this API doesn´t understand Msys virtualised paths, even
though it's running inside Msys' perl. So either we need to convert the
path to a Windows path, or we need to restrict use of this API to MSVC
builds.


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






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

* Re: pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2019-11-27 20:35  Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  parent: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2019-11-27 20:35 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org


On 11/26/19 9:17 PM, Andrew Dunstan wrote:
> On 11/25/19 11:41 PM, Michael Paquier wrote:
>> Hi Andrew,
>>
>> On Sun, Nov 24, 2019 at 11:53:31PM +0000, Andrew Dunstan wrote:
>>> Use native methods to open input in TestLib::slurp_file on Windows.
>>>
>>> It is hoped that this will avoid some errors that we have seen before,
>>> but lately with greater frequency, in buildfarm animals.
>>>
>>> For now apply only to master. If this proves effective it can be
>>> backpatched.
>>>
>>> Discussion: https://postgr.es/m/13900.1572839580@sss.pgh.pa.us
>> jacana is visibly complaining about this commit:
>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-11-25%2020%3A19%3A49
>>
>> The tests of commit_ts are failing:
>> Nov 25 16:46:52 t/001_base.........# Looks like your test exited with
>> 255 before it could output anything.
>> Nov 25 16:46:52 dubious
>> Nov 25 16:46:52		Test returned status 255 (wstat 65280, 0xff00)
>> Nov 25 16:46:52 DIED. FAILED tests 1-2
>
> Yeah, when the client is updated it actually fails at the same spot that
> fairywren is failing.
>
>
> I suspect this API doesn´t understand Msys virtualised paths, even
> though it's running inside Msys' perl. So either we need to convert the
> path to a Windows path, or we need to restrict use of this API to MSVC
> builds.
>
>


This hypothesis proved not to be correct, so I'll be implementing  option 2.


cheers


andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






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

* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2020-12-15 15:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2020-12-15 15:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

This is a backport of commits 114541d58e and 6f59826f0 to the remaining
live branches.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/355f9d2452dc93563fd89cac4b858d9e3f8e5960

Modified Files
--------------
src/test/perl/TestLib.pm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)



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

* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2020-12-15 15:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2020-12-15 15:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

This is a backport of commits 114541d58e and 6f59826f0 to the remaining
live branches.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b5eb07ed78a0e52b392c9b64e01e044a45c1fdb6

Modified Files
--------------
src/test/perl/TestLib.pm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)



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

* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2020-12-15 15:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2020-12-15 15:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

This is a backport of commits 114541d58e and 6f59826f0 to the remaining
live branches.

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bf88c6d6021c1abbc73197803c98dad0f033b462

Modified Files
--------------
src/test/perl/TestLib.pm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)



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

* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2020-12-15 15:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2020-12-15 15:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

This is a backport of commits 114541d58e and 6f59826f0 to the remaining
live branches.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f57c6cdbadd32050b860e66c4fec7823d59319da

Modified Files
--------------
src/test/perl/TestLib.pm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)



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

* pgsql: Use native methods to open input in TestLib::slurp_file on Windo
@ 2020-12-15 15:53  Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 10+ messages in thread

From: Andrew Dunstan @ 2020-12-15 15:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use native methods to open input in TestLib::slurp_file on Windows.

This is a backport of commits 114541d58e and 6f59826f0 to the remaining
live branches.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/da7edca4630c5bcf7c0f0f5819ab6fb020d3c845

Modified Files
--------------
src/test/perl/TestLib.pm | 34 +++++++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 5 deletions(-)



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


end of thread, other threads:[~2020-12-15 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-24 23:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.net>
2019-11-26 04:41 ` Michael Paquier <michael@paquier.xyz>
2019-11-26 12:53   ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2019-11-27 02:17   ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2019-11-27 20:35     ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2020-12-15 15:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.net>
2020-12-15 15:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.net>
2020-12-15 15:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.net>
2020-12-15 15:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.net>
2020-12-15 15:53 pgsql: Use native methods to open input in TestLib::slurp_file on Windo Andrew Dunstan <andrew@dunslane.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