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 1lTXwG-0007WP-Cv for pgsql-committers@arkaria.postgresql.org; Mon, 05 Apr 2021 22:43:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTXwF-0005C5-8E for pgsql-committers@arkaria.postgresql.org; Mon, 05 Apr 2021 22:43:19 +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 1lTXwD-0005By-Rk for pgsql-committers@lists.postgresql.org; Mon, 05 Apr 2021 22:43:19 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTXwB-0000Oe-07 for pgsql-committers@lists.postgresql.org; Mon, 05 Apr 2021 22:43:16 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ABEC45C0055; Mon, 5 Apr 2021 18:43:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 05 Apr 2021 18:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=66Ni0PD57kxa8cQ2elDnGgvUGi7 +VVL9b1rO3xL/a2o=; b=ce+Lh42/3Bmi0mhDanphcO+xIcLD4LKTq/vjGsWfS4p Elbk/uV1FgmCOqVvxEGtIeHJ25TrtKG9aOScyWrHQRTdN2j244BpvZApT5dDWpAN DNP58Rf49SNfkPNVS6LcWez4fi/VFobhUy/6lstW1Q3ONGxaKCH0J5yuCOz/jEXD sO1gJ0xMDZa10R4YcrvWuFgU3Y1esxY5vE+KhHEcbHXSDLhSqPUiXlq2xde9OsP6 ijt7GsYIxgmWbPQs0ZVfnRVfhLxIX/TkKixdRC4y0PvdLhDghUC9M3t57CrNi/iG sQBxc49+JzxPUdzNXqHVxEjoXw1wX5pfDRCeUbln8RQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=66Ni0P D57kxa8cQ2elDnGgvUGi7+VVL9b1rO3xL/a2o=; b=lBQs08az1VQhx2ZRFVUOTu ZbvSD64o9SR+zZMz9z6mXX7Lnb3kpWVI6tqIcd+w34dja2qeQ16XZDlQTRJq1PyF Aw4yKB+r4tgCybSmE7U8+xJ0dZ/6+4n8duNZh0Ta9P6FXM9xlOfkqa3Oyn6fgO5z GosihO+xwkmc/AhOmwllmDbdWH3+BsIboaaqcsB4G0pepJ11KXae9dAJ7RXVaNto E9hj3Yk8fVOpsP7cYGhSjf/M+6XY4MmTnN6Mq1adjCefRcgSs8gg4J/XQnHpH5fY iHB2beFEQl+SHBIumrPsY9plMAUx2y1QA1yfVcLBkgpR117aLdy3fJU1+Huu2vaQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejfedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfen ucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 294221080054; Mon, 5 Apr 2021 18:43:11 -0400 (EDT) Date: Tue, 6 Apr 2021 07:43:07 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor all TAP test suites doing connection checks Message-ID: References: <513200.1617634642@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qIyzHZoISTn0st8w" Content-Disposition: inline In-Reply-To: <513200.1617634642@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --qIyzHZoISTn0st8w Content-Type: multipart/mixed; boundary="W/CW4SUb98eFJ9ML" Content-Disposition: inline --W/CW4SUb98eFJ9ML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 05, 2021 at 10:57:22AM -0400, Tom Lane wrote: > Some of the buildfarm seems not to like this. gaur failed here: Thanks. I did not notice these. > I didn't look at the code, but I bet this is similar to the race > conditions we've seen before where a server process may exit before > the perl test script finishes stuffing a command down the pipe. Hmm. Those failures refer to the 5th and 8th tests of 001_password.pl where connect_ok() is used. The only logical differences compared to the previous code are: - The addition of on_error_stop in connect_ok() to ignore any errors - The fact that this now defines a SQL query (was undef previously). - $Test::Builder::Level So, the problem is with on_error_stop. That's not necessary anyway, but I am a bit surprised that this would be an issue. I'll apply that to see if it fixes the issue. If it does not, a revert would be better at this stage. -- Michael --W/CW4SUb98eFJ9ML Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-auth-failure.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index bbde34c929..95e107373b 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -1901,8 +1901,7 @@ sub connect_ok 'postgres', $sql, extra_params =3D> ['-w'], - connstr =3D> "$connstr", - on_error_stop =3D> 0); + connstr =3D> "$connstr"); =20 is($ret, 0, $test_name); =20 --W/CW4SUb98eFJ9ML-- --qIyzHZoISTn0st8w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBrknsACgkQnvQgOdby QH0d+g/+IXWiRM7+IziAar6Rrxc3pn+BuxC0o+bUJr9N6w4ZAiHNu4ROl4yaka4c YE0ofSKx6DAGnuxIgq0JvUWO2Z2beuNl8Sf1Bwlb6daqkl0JC8ZPloIBTkghD1BJ J8YVUycsieP03Pk6oMQmTLOLJ9UXRmeKPxKikizBAUVqY5uWg2uEsXr2e0kr5UiO YL4BhO8WiRb85YSpsDBZGlv9iwjoww/Gyq4ME14npwlGz0jo6VGJQiMZGKU0ctrI zvyzT/2xW/z6yAFNF/99PVd2iokwpMxcn7qsXqA5o9IznUhyiULlQd9lniTl7jbz xNyooIDMnV0GWznR1+YKCpmSxYKpZmrcIH3b4QvlxlX142iORoRi3vpdM9EV5/De d6j2EInXkMcnuOqbkJxzbhSgUrTiHjCkY8TgAtR8b2x3lQ3EoY2ORF58DPKgJQPJ MlCML3XieOrAUyy/u1ZpXEx9LHSwfYoBNb5QajrlpBDy+CG8/MsaBCeLvCwsdecQ 9t4zisvy6IMziHIobZJ0US1dHLlt0hf4GWz/rpLfetcS6itQiB/Wq6W8fHX0NUad /cD3j7fiWfjhpBoTm3rjRBFehGDZ7NAR0vcab0ve/0HvpzxUgvsaxZBFxnKgNq7E oWc1T9u9Bf12gaHBkYeKEmv+cly72W9B3vgsB/9VQQTHYakr45o= =cS9a -----END PGP SIGNATURE----- --qIyzHZoISTn0st8w--