Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nku5W-0002Fj-0m for pgsql-committers@arkaria.postgresql.org; Sat, 30 Apr 2022 20:53:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nku5U-0006fz-EN for pgsql-committers@arkaria.postgresql.org; Sat, 30 Apr 2022 20:53:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nku5U-0006ad-5q for pgsql-committers@lists.postgresql.org; Sat, 30 Apr 2022 20:53:08 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nku5M-0005ib-T0 for pgsql-committers@lists.postgresql.org; Sat, 30 Apr 2022 20:53:06 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id 88D8C240002; Sat, 30 Apr 2022 20:52:56 +0000 (UTC) Message-ID: <14402151-376b-a57a-6d0c-10ad12608e12@dunslane.net> Date: Sat, 30 Apr 2022 16:52:54 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: pgsql: Remove command checks in tests of pg_basebackup and pg_receivewa Content-Language: en-US To: Michael Paquier , pgsql-committers@lists.postgresql.org References: From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-02-14 Mo 23:41, Michael Paquier wrote: > Remove command checks in tests of pg_basebackup and pg_receivewal > > The TAP tests of those commands have been checking if commands of "gzip" > and "lz4" existed by launching them with an extra --version. Based on > the buildfarm, this is not required for "gzip" as the command always > exists. Since 1d084fb, "lz4" has a ./configure check doing the same > thing. > > Reported-by: Andres Freund > Discussion: https://postgr.es/m/20220212220643.ozuvq2k4cjkcnr2v@alap3.anarazel.de > Discussion: https://postgr.es/m/Ygm2ADakjlqGc2Ro@paquier.xyz > This appears to have been misconceived, at least in the case of MSVC builds, as I have just discovered. It is entirely possible to have the lz4 libraries installed and build with them but not have the .exe, and unlike the configure case the MSVC build system doesn't conduct any test for it, resulting in a nasty looking TAP test failure. I assume similar failures are possible with zstd and maybe gzip. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com