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 1o8UHn-00057V-Dh for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 22:11:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8UHl-0004ec-Vs for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2022 22:11:17 +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 1o8UHl-0004dy-N8 for pgsql-hackers@lists.postgresql.org; Mon, 04 Jul 2022 22:11:17 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8UHj-0003aA-72 for pgsql-hackers@lists.postgresql.org; Mon, 04 Jul 2022 22:11:17 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 8BD3E2F30E64 for ; Tue, 5 Jul 2022 00:11:14 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 7C1D72E33BC1; Tue, 5 Jul 2022 00:11:14 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id 776D77CEA68; Tue, 5 Jul 2022 00:11:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s979.loopia.se ([172.22.191.5]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id 34KKzsVK5Adp; Tue, 5 Jul 2022 00:11:14 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 217.213.77.61 Received: from smtpclient.apple (host-217-213-77-61.mobileonline.telia.com [217.213.77.61]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id D475110BC39F; Tue, 5 Jul 2022 00:11:13 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: TAP output format in pg_regress From: Daniel Gustafsson In-Reply-To: <1558373.1656945577@sss.pgh.pa.us> Date: Tue, 5 Jul 2022 00:11:13 +0200 Cc: Peter Eisentraut , Andres Freund , PostgreSQL Developers Content-Transfer-Encoding: quoted-printable Message-Id: <0F8DA66F-3604-4ED4-B2EE-57815652449C@yesql.se> References: <49A54862-C682-4B60-9155-05F178FA79DC@yesql.se> <20220321234924.kcc3q26o7sx6rnfa@alap3.anarazel.de> <489D2B5A-B26F-4918-BC07-B426329169E3@yesql.se> <5e6bc6a6-0a4e-109d-2b7d-c286dc58d609@enterprisedb.com> <1558373.1656945577@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3696.100.31) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 4 Jul 2022, at 16:39, Tom Lane wrote: >=20 > Peter Eisentraut writes: >> I'm not sure what to make of all these options. I think providing a = TAP=20 >> output for pg_regress is a good idea. But then do we still need the = old=20 >> output? Is it worth maintaining two output formats that display = exactly=20 >> the same thing in slightly different ways? >=20 > Probably is, because this is bad: >=20 >> ... The proposed default format now hides the=20 >> fact that some tests are started in parallel. I remember the last = time=20 >> I wanted to tweak the output of the parallel tests, people were very=20= >> attached to the particular timing and spacing of the current output. = So=20 >> I'm not sure people will like this. >=20 > and so is this: >=20 >> The timing output is very popular. Where is that in the TAP output? >=20 > Both of those things are fairly critical for test development. You > need to know what else might be running in parallel with a test case, > and you need to know whether you just bloated the runtime = unreasonably. >=20 > More generally, I'm unhappy about the proposal that TAP should become > the default output. =20 That's not my proposal though, my proposal is that the traditional = format should be the default output (with the parallel test info added back, = that was my bad), and that TAP is used in automated test runners like in meson. = Hiding the timing in TAP was (as mentioned upthread) since TAP test runners = generally never show that anyways, but I'll add it back since it clearly doesn't = hurt to have even there. > There is nothing particularly human-friendly > about it, whereas the existing format is something we have tuned to > our liking over literally decades. I don't mind if there's a way to > get TAP when you're actually intending to feed it into a TAP-parsing > tool, but I am not a TAP-parsing tool and I don't see why I should > have to put up with it. I totally agree, and that's why the patch has the traditional format - = without all the boilerplate - as the default. Unless opting-in there is no = change over today, apart from the boilerplate. -- Daniel Gustafsson https://vmware.com/