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 1lxYsJ-0004hd-Tt for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jun 2021 17:47:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lxYsI-0000Bk-R4 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jun 2021 17:47:18 +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 1lxJVM-0004gb-9G; Sun, 27 Jun 2021 01:22:37 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxJVJ-0003IU-JJ; Sun, 27 Jun 2021 01:22:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 9B67C3200094; Sat, 26 Jun 2021 21:22:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 26 Jun 2021 21:22:31 -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=fm2; bh=k6vlR6op+Ay209xhDUxtUdfrcTp pXZU06e6SMKuqzEE=; b=DNodblR27A0IbCPXayFnQv19J66xdQIr/BvBmtgjOlu 1F6hiv/Oodm8FoDHuty0mEydESQKlI6Oue4Eb5lLjaW5RGBWNL2jkTIHqGwWrKOD VgMLf6yN/69qjPd3hEpjUJp46jFnsn0UVzk1pz+D99i2kNg4q5r33+ucz2ii2MQp wo+fGfDGTYrYZ1aXk6aljkHVnNxnOo2cmWQpDtjBC2DT3mk5wtmDP/H/BzNhfHGl wZTEAy2Tgw6Igh1apFvWt550bHEqA/3swu8Mi2PBWtFFzDqwZai+dizYxX7CgrvQ sa6MD68RANhiAakp/+IbUwA286jvniNtGiJgBTPjcTQ== 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=fm3; bh=k6vlR6 op+Ay209xhDUxtUdfrcTppXZU06e6SMKuqzEE=; b=CpEm8grhZ1vkXjzKprF5Va 0KQSSH9d3tJnR+Oa90xaEEzJPYPZHdaZihtii744AeumLyPza+HUCfZ1DD7+9j56 y9WL8RNYYBykydQHyh0aVLpz30TC7EGJ/j66mQ/N4K4oXtUg0uQ+5PZnsdgT1bHf RucMfMl2P2t6QYFanf0qlc70yCP30CNSRziWgkdnHsEw18jUCTk9Lh762g8WnpHO CNM9f4wJ0n2ojKxXQK04JeQ9mV4JL9p18ook0/L6E802VbEpodwj8NLMxRZYDTmY KwWFaM1/7TQ3Ygi8M72mp3VBKpM3zorQvl8lWlvG2oFGjYdqsSH3GIkls3/eqK/g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehuddggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Jun 2021 21:22:28 -0400 (EDT) Date: Sun, 27 Jun 2021 10:22:24 +0900 From: Michael Paquier To: Andrew Dunstan Cc: Fabien COELHO , pgsql-committers@lists.postgresql.org, PostgreSQL Developers Subject: Re: pgsql: Fix pattern matching logic for logs in TAP tests of pgbench Message-ID: References: <0f49303e-7784-b3ee-200b-cbf67be2eb9e@dunslane.net> <9f70b570-9aa2-29cc-8732-34cc6d16d798@dunslane.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0f+Sy/ooU2m7DOe/" Content-Disposition: inline In-Reply-To: <9f70b570-9aa2-29cc-8732-34cc6d16d798@dunslane.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0f+Sy/ooU2m7DOe/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 26, 2021 at 11:01:07AM -0400, Andrew Dunstan wrote: > On 6/26/21 2:47 AM, Fabien COELHO wrote: >> However, if slurp_file fails it raises an exception and aborts the >> whole TAP unexpectedly, which is pretty unclean. So I'd suggest to >> keep the eval, as attached. I tested it by changing the file name so >> that the slurp fails. >=20 > Seem quite unnecessary. We haven't found that to be an issue elsewhere > in the code where slurp_file is used. And in the present case we know > the file exists because we got its name from list_files(). Agreed. That's an exchange between a hard failure mid-test and a failure while letting the whole test run. Here, we expect the test to find the log file all the time, so a hard failure does not sound like a bad thing to me either. -- Michael --0f+Sy/ooU2m7DOe/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDX0tAACgkQnvQgOdby QH0k2Q//XJ4H02yvl2HddFpUaX5veqKFdxGkj3uXYkhCtrKkh4aSUiYMJrJlZEKM /oMPsHK8vE0qekfCkQoq/b7Ui7h5XP3QQI65kzSHoqSnU3rNqJDOuIAcHhRnFgvs fq92KxVrSdcTAnLg/Gz9jUiFBdOWHkzqLDQuKjQ+7pjfjma2A+7HR+F/mKN0DKja wqQYftX7Io/zphkE1p8vGW74G6gH4AJUe5olUHGIwTTpFYk/p7gCwlpr9pFFKs8X NbOj0yEDf0reGeurTog4VZkWBQg9Bj6oXwLXWUhbOOXjVUqgPubn/X9G+b7DJGfs 3tFub2+QqlP1Zxek7DnhuDxP3fGFR79Tcu42Qev9bBQ/r2/9oBR3sbzIS0kCdkMK VuO6Ac0dVmBZDmh2A7ufHNnsjwXDcKs4CXGN3gYG3jvmaP7w2lzxiMXbq5pg7Z8h ZNoTWYnDMyvl/Mlq5yM0cbgVCi/akkhzn5d0sN3pTPC41nLOhX3FETpjWOJTSCpL pIYglb68VhYZkorniCvwWiYKDu+nFglgGNPB1FSnmaeY6TZThrdvc8te/lkRJbX9 0jq2jJ6I9eiWSGg28sSeL+ThcEB/qW/uXMjd5cMjlqtwsnHNSjcLkQZh3OBnBv3e 7oCyh6hgAm8RkTVYiGMiNTcCSRnAh4n3sA3jJSN0v7k/L+2MqiU= =LHQK -----END PGP SIGNATURE----- --0f+Sy/ooU2m7DOe/--