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 1lwZ86-0005PY-Mm for pgsql-committers@arkaria.postgresql.org; Thu, 24 Jun 2021 23:51:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwZ85-0007iR-Em for pgsql-committers@arkaria.postgresql.org; Thu, 24 Jun 2021 23:51:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwZ85-0007iJ-9E for pgsql-committers@lists.postgresql.org; Thu, 24 Jun 2021 23:51:29 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwZ82-0003PW-5o for pgsql-committers@lists.postgresql.org; Thu, 24 Jun 2021 23:51:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6EA8E3200583 for ; Thu, 24 Jun 2021 19:51:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 24 Jun 2021 19:51:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=nobzCpItmqWcUxsWUc6vGcYW0O+ CnBP5HFDRGwJA3YU=; b=cRvcMZJDupNmH2827iHTFanwZishkNXFWY33k8Ki67A UGHGlKA1kjxbGz/chi34kubtgTc/DRpF773iSZkxP5Y8Iqy92gI+vUxYVKuHnozY teuadAN0e/kizIqD0Yvc2f78pBKxhIjkJbf81oyA6p5z6y+kUC3tVYDFBJeVxxqK /r0rV/HVVHjU0m6ci+ppTsHge9MdwaFDNlkRlHRPfEAP2h4JvwYd8IcwmanD5o34 /NI3tzYAy0uGRzGLkopmAxr2w9sQSbgWnP5OGutcuXClwFf5yiQWc2ow0ieHpEFM 5pbC+zohNzIWJzhqt13sozvjxlmBYthAgXCgs3o+nmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=nobzCp ItmqWcUxsWUc6vGcYW0O+CnBP5HFDRGwJA3YU=; b=YSI/1dcfMA5lEvG9emjoxK WdZpvE1BTj0KZQ/0ndNlcFYTGAADnTqQv4EBZVJAcVjBSRI0dHNEmn2ojqyd4bUb j3r/Hd+8jSpnfl+V4kYlPnfcdWQO9sx+KF4YpHozCMpiPQwS5r+863PkpaTDrduE SsmqKAel7hpqHyeqm2S3iJKBNAX40LVgrosNbyjSmz5H9lwcoR1fSiYM+sZNsMjq 1F0KrFIzDPdiw73TmTzKeFyLrCPp/bF3HaF7l3VZ7zdf3MJcSBx3l8HZWpF27QAg vtQgoTloU17SVWXAVM9Z7cbeZtxImXp/vsYg1Ikugke/7yrNQE785rqKc6JOUPtg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegiedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpeffudeffeelgffhkedukeekvedvudfgieetkeekudelfeevhffhffdtudffieeutden ucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdr giihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 24 Jun 2021 19:51:22 -0400 (EDT) Date: Fri, 25 Jun 2021 08:51:19 +0900 From: Michael Paquier To: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix pattern matching logic for logs in TAP tests of pgbench Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X2o25DcszwpNhpF6" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --X2o25DcszwpNhpF6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 24, 2021 at 09:54:51PM +0000, Michael Paquier wrote: > Fix pattern matching logic for logs in TAP tests of pgbench >=20 > The logic checking for the format of per-thread logs used grep() with > directly "$re", which would cause the test to consider all the logs as > a match without caring about their format at all. Using "/$re/" makes > grep() perform a regex test, which is what we want here. >=20 > While on it, improve some of the tests to be more picky with the > patterns expected and add more comments to describe the tests. >=20 > Issue discovered while digging into a separate patch. fairywren does not like that: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dfairywren&dt=3D20= 21-06-24%2022%3A36%3A14 not ok 302 - transaction format for 001_pgbench_log_2 not ok 311 - transaction format for 001_pgbench_log_3 I am not sure if this is a pre-existing bug in pgbench itself regarding the way we generate the logs or an issue with fairywren's perl installation. Andrew, what's the format of the per-thread logs generated on this host when running the commands? I'd bet that the checks for the client IDs are right, but that some parts of the regex are too picky when it comes to this host. -- Michael --X2o25DcszwpNhpF6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDVGncACgkQnvQgOdby QH29lQ/+LIbwRKK6NZQ1pRfAqgsjytK+CaCGaQNpuO1y7Eb197aRh2sbSv6RrElP Hc9cG7EXlBjsOJtBDh9vxL9z/ormet/kLJQBslVDJuI4GYY8mOmDWRsWZ5MOqIcK LQeGBaUDlvqFrpCbNga5aIRSa0LMON1YthEcJ6lUkiKWh8r6pGLFN4JUtBaxaN0J gvjkck58R0GdN0wcV0e/2FaStz7AHUR2FKpHPGiaGutlYue8pNZukw9JBy2MuFpG hh7kgoIHHAdUOEGRteKBfYz0heec21YjQRNvfJhQTjl7dMkNIQGlbEYxg042HZZk 6/IwVRqdon5co1NGdU5yXtx8U/wC8ti8bDPdKXsaIKc2jiQFklYurwC1vEA/Eqjv 4SeAG/tm2624VKTVSE/qZhUxNz1foOtaSe8mf78vByWjEhhi/0ty/YusKKQU9OC/ VYHTPYktTCy6HAAM5ZHjuzpRZf1XIYm3ePTgA6HPhfjLp0beNO4g3cK5boymb2b2 5JvYQHlumxO0BsaRALt2WivAhzEgMhU1jvvwY7Fckv93Bm5ExRTcFFPZrCqbChwc tR7X5DyC15jTc+e7IP5/wf08taPPGgYKvqYrgUZkBL9k6mTMM9c33xzrxwB3B9ix MFt+m82yT/nHYZ6cPvg3Npeglq5QbX1IvvZ2dPGcYzJ2mNFNtqA= =yiZU -----END PGP SIGNATURE----- --X2o25DcszwpNhpF6--