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 1pcOUT-0004uJ-EU for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2023 10:36:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pcOUR-0001Pg-LH for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Mar 2023 10:36:15 +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 1pcOUR-0001PX-B5 for pgsql-hackers@lists.postgresql.org; Wed, 15 Mar 2023 10:36:15 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pcOUJ-00011c-KN for pgsql-hackers@lists.postgresql.org; Wed, 15 Mar 2023 10:36:14 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id A068F582157; Wed, 15 Mar 2023 06:36:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 15 Mar 2023 06:36:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1678876565; x=1678883765; bh=N01Y4jtpeSm98my5IapT0SwgnvnnPT50yUK VOkQkBqs=; b=V6v2OEj4ettM1zTTZo+WFDFe4pq2GzJ/k+z+AESJqPCV0EzxPH1 mZ6XsDa/inFVo5Jfcjon9/InFRTG/RNZene7TkuUi6ZU1YSbS4ru33R1dvNZwNDc m1nHns5p11jGo5X2LLt2iX58z5N0MzxWstZTaJQ8xIwVRApJwB7aqkJAok/yqbIu klJIcrzlLtUj+CHbzafV3Bq2uZqc5Kpb4GXZNhW1CyM3W6hB/IFNrRWNQWlDWzhC e90QKQ9gcYMwFT73wvENb+pnVubKeocx+k+yCIbvrP4lR9mcVPI2/73rQhb0rBLD O4VqmtBrAoW4NJhLV+e/jJ5e+O6g38MrsGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvkedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Mar 2023 06:36:03 -0400 (EDT) Message-ID: <34735bb9-ca5e-8b3d-1ccd-c4ba252bbfa4@enterprisedb.com> Date: Wed, 15 Mar 2023 11:36:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: TAP output format in pg_regress Content-Language: en-US To: Daniel Gustafsson , vignesh C Cc: Nikolay Shaplov , Andres Freund , =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= , PostgreSQL Developers , Andrew Dunstan , Tom Lane References: <5e6bc6a6-0a4e-109d-2b7d-c286dc58d609@enterprisedb.com> <20221128182848.rxcmaxtw3mclmyr4@awork3.anarazel.de> <5348601.u5redSiXY4@thinkpad-pgpro> <655E7296-24A1-4481-A992-B5CD55B7F7DB@yesql.se> <4B2CBB72-9B1D-4028-9CAD-E53DF303AB8D@yesql.se> <0CBE542D-F333-45DE-9D6B-533CCDB13CDE@yesql.se> <42883A10-AA8C-4044-B559-3E741F011B4E@yesql.se> From: Peter Eisentraut In-Reply-To: <42883A10-AA8C-4044-B559-3E741F011B4E@yesql.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.02.23 10:49, Daniel Gustafsson wrote: > Another rebase on top of 337903a16f. Unless there are conflicting reviews, I > consider this patch to be done and ready for going in during the next CF. I think this is just about as good as it's going to get, so I think we can consider committing this soon. A few comments along the way: 1) We can remove the gettext markers _() inside calls like note(), bail(), etc. If we really wanted to do translation, we would do that inside those functions (similar to errmsg() etc.). 2) There are a few fprintf(stderr, ...) calls left. Should those be changed to something TAP-enabled? 3) Maybe these lines +++ isolation check in src/test/isolation +++ should be changed to TAP format? Arguably, if I run "make -s check", then everything printed should be valid TAP, right? 4) From the introduction lines ============== creating temporary instance ============== ============== initializing database system ============== ============== starting postmaster ============== running on port 61696 with PID 85346 ============== creating database "regression" ============== ============== running regression test queries ============== you have kept # running on port 61696 with PID 85346 which, well, is that the most interesting of those? The first three lines (creating, initializing, starting) take some noticeable amount of time, so they could be kept as a progress indicator. Or just delete all of them? I suppose some explicit indication about temp-instance versus existing instance would be useful. 5) About the output format. Obviously, this will require some retraining of the eye. But my first impression is that there is a lot of whitespace without any guiding lines, so to speak, horizontally or vertically. It makes me a bit dizzy. ;-) I think instead # parallel group (2 tests): event_trigger oidjoins ok 210 event_trigger 131 ms ok 211 oidjoins 190 ms ok 212 fast_default 158 ms ok 213 tablespace 319 ms Something like this would be less dizzy-making: # parallel group (2 tests): event_trigger oidjoins ok 210 - + event_trigger 131 ms ok 211 - + oidjoins 190 ms ok 212 - fast_default 158 ms ok 213 - tablespace 319 ms Just an idea, we don't have to get this exactly perfect right now, but it's something to think about. I think if 1-4 are addressed, this can be committed.