pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
7+ messages / 2 participants
[nested] [flat]
* pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-07-31 01:28 Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Paquier @ 2021-07-31 01:28 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Enable TAP tests of pg_receivewal for ZLIB on Windows, take three
This reverts commit 6a2c532. fairywren and bowerbird failed those tests
because of incorrect versions of ZLIB linked to, causing errors like
SIGBREAKs that stopped buildfarm runs or EACCES failures when writing
compressed WAL segments.
Andrew Dunstan has done all the investigation here, so he deserves all
the credit for being able to enable those tests on Windows.
Discussion: https://postgr.es/m/9040d5ed-6462-66a4-07ac-2923785ae563@dunslane.net
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0b8ea707580640f9d5562de77f4b563fa9131547
Modified Files
--------------
src/bin/pg_basebackup/t/020_pg_receivewal.pl | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-07-31 11:16 Andrew Dunstan <andrew@dunslane.net>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Dunstan @ 2021-07-31 11:16 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; pgsql-committers@lists.postgresql.org
On 7/30/21 9:28 PM, Michael Paquier wrote:
> Enable TAP tests of pg_receivewal for ZLIB on Windows, take three
>
> This reverts commit 6a2c532. fairywren and bowerbird failed those tests
> because of incorrect versions of ZLIB linked to, causing errors like
> SIGBREAKs that stopped buildfarm runs or EACCES failures when writing
> compressed WAL segments.
>
> Andrew Dunstan has done all the investigation here, so he deserves all
> the credit for being able to enable those tests on Windows.
>
And now jacana is unhappy. I'll get it fixed shortly. If it ends up that
we have somehow found a situation where Msys/Mingw and MSVC can no
longer share a zlib implementation I'm going to be unhappy too.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-08-01 03:32 Michael Paquier <michael@paquier.xyz>
parent: Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Paquier @ 2021-08-01 03:32 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
On Sat, Jul 31, 2021 at 07:16:22AM -0400, Andrew Dunstan wrote:
> And now jacana is unhappy. I'll get it fixed shortly. If it ends up that
> we have somehow found a situation where Msys/Mingw and MSVC can no
> longer share a zlib implementation I'm going to be unhappy too.
In the worse case, could it be possible to do things so as we skip
tests only with $is_msys2 or a new flag? It would be really nice to
keep some coverage here for some of the Windows builds.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-08-01 12:09 Andrew Dunstan <andrew@dunslane.net>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Dunstan @ 2021-08-01 12:09 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org
On 7/31/21 11:32 PM, Michael Paquier wrote:
> On Sat, Jul 31, 2021 at 07:16:22AM -0400, Andrew Dunstan wrote:
>> And now jacana is unhappy. I'll get it fixed shortly. If it ends up that
>> we have somehow found a situation where Msys/Mingw and MSVC can no
>> longer share a zlib implementation I'm going to be unhappy too.
> In the worse case, could it be possible to do things so as we skip
> tests only with $is_msys2 or a new flag? It would be really nice to
> keep some coverage here for some of the Windows builds.
It won't be necessary.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-08-05 06:02 Michael Paquier <michael@paquier.xyz>
parent: Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Paquier @ 2021-08-05 06:02 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
On Sun, Aug 01, 2021 at 08:09:47AM -0400, Andrew Dunstan wrote:
> It won't be necessary.
These buildfarm members are all green, thanks! Did you split the
version of ZLIB used for each build?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-08-05 15:49 Andrew Dunstan <andrew@dunslane.net>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Dunstan @ 2021-08-05 15:49 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org
On 8/5/21 2:02 AM, Michael Paquier wrote:
> On Sun, Aug 01, 2021 at 08:09:47AM -0400, Andrew Dunstan wrote:
>> It won't be necessary.
> These buildfarm members are all green, thanks! Did you split the
> version of ZLIB used for each build?
Yeah, pretty much. I wonder what zlib API the pg_receivewal tests are
tickling that other tests have not?
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre
@ 2021-08-06 00:23 Michael Paquier <michael@paquier.xyz>
parent: Andrew Dunstan <andrew@dunslane.net>
0 siblings, 0 replies; 7+ messages in thread
From: Michael Paquier @ 2021-08-06 00:23 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
On Thu, Aug 05, 2021 at 11:49:01AM -0400, Andrew Dunstan wrote:
> Yeah, pretty much. I wonder what zlib API the pg_receivewal tests are
> tickling that other tests have not?
The main issue is that this is the first test suite stressing directly
zlib internals, as we only use gzread(), gzwrite() and gzflush()
within pg_dump/ and pg_basebackup/. And there is currently no
coverage of pg_dump --compress. My guess is that nobody tackled this
issue because of the need to make the tests conditional depending on
the compilation options.
Saying that, I recall two error patterns from this thread's
experience thanks to the specific error messages we have in
pg_receivewal for the handling of the WAL segments:
- gzopen(), followed by gzwrite() failing on EACCES.
- gzopen(), followed by gzflush() failing.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2021-08-06 00:23 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 01:28 pgsql: Enable TAP tests of pg_receivewal for ZLIB on Windows, take thre Michael Paquier <michael@paquier.xyz>
2021-07-31 11:16 ` Andrew Dunstan <andrew@dunslane.net>
2021-08-01 03:32 ` Michael Paquier <michael@paquier.xyz>
2021-08-01 12:09 ` Andrew Dunstan <andrew@dunslane.net>
2021-08-05 06:02 ` Michael Paquier <michael@paquier.xyz>
2021-08-05 15:49 ` Andrew Dunstan <andrew@dunslane.net>
2021-08-06 00:23 ` Michael Paquier <michael@paquier.xyz>
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