Re: buildfarm windows checks / tap tests on windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: buildfarm windows checks / tap tests on windows
Date: 2021-03-04 16:10:19
Message-ID: 8f9417e4-a029-6533-0ec2-56f2c31996c3@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 3/3/21 7:21 PM, Andrew Dunstan wrote:
> On 3/3/21 5:32 PM, Andrew Dunstan wrote:
>> On 3/3/21 4:42 PM, Andres Freund wrote:
>>> Hi,
>>>
>>> On 2021-03-03 16:07:13 -0500, Andrew Dunstan wrote:
>>>> Here's what I actually got working. Rip out the calls to kill_kill and
>>>> replace them with:
>>>>
>>>>
>>>> $psql_primary{stdin} .= "\\q\n";
>>>> $psql_primary{run}->pump_nb();
>>>> $psql_standby{stdin} .= "\\q\n";
>>>> $psql_standby{run}->pump_nb();
>>>> sleep 2; # give them time to quit
>>>>
>>>>
>>>> No hang or signal now.
>>> Hm. I wonder if we can avoid the sleep 2 by doing something like
>>> ->pump(); ->finish(); instead of one pump_nb()? One pump() is needed to
>>> send the \q to psql, and then we need to wait for the process to finish?
>>> I'll try that, but given that I can't reproduce any problems...
>> Looking at the examples in the IPC:Run docco, it looks like we might
>> just be able to replace the pump_nb above with finish, and leave the
>> sleep out. I'll try that.
>
> OK, this worked fine. I'll try it s a recipe in the other places where
> kill_kill is forcing us to skip tests under MSwin32 perl, and see how we go.
>
>

Here's the patch. I didn't see a convenient way of handling the
pg_recvlogical case, so that's unchanged.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

Attachment Content-Type Size
fix-recovery-tests-for-windows.patch text/x-patch 1.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-03-04 16:11:39 Re: Removing support for COPY FROM STDIN in protocol version 2
Previous Message Dmitry Dolgov 2021-03-04 16:03:11 Re: Keep notnullattrs in RelOptInfo (Was part of UniqueKey patch series)