Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpyhy-0001kX-Ue for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2017 14:54:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cpyhy-0007Jc-EM for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2017 14:54:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cpyhx-0007JP-OW for pgsql-hackers@postgresql.org; Mon, 20 Mar 2017 14:54:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cpyhu-0000aG-JB for pgsql-hackers@postgresql.org; Mon, 20 Mar 2017 14:54:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2KEsk1L031824; Mon, 20 Mar 2017 10:54:46 -0400 From: Tom Lane To: Andres Freund cc: Stephen Frost , Robert Haas , pgsql-hackers Subject: Re: Re: [COMMITTERS] pgsql: Improve pg_dump regression tests and code coverage In-reply-to: <20170320144235.mxohhmxb6xz2vy4x@alap3.anarazel.de> References: <20170320123302.GF9812@tamriel.snowman.net> <20170320133046.GJ9812@tamriel.snowman.net> <20170320143515.GM9812@tamriel.snowman.net> <20170320144235.mxohhmxb6xz2vy4x@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 20 Mar 2017 07:42:35 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31822.1490021686.1@sss.pgh.pa.us> Date: Mon, 20 Mar 2017 10:54:46 -0400 Message-ID: <31823.1490021686@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > On 2017-03-20 10:35:15 -0400, Stephen Frost wrote: >> I continue to be of the opinion that this entire discussion is quite >> flipped from how we really should be running things- adding regression >> tests to improve code coverage, particularly when they're simply adding >> to the existing structure for those tests, should be strongly encouraged >> both before and after feature-freeze. > I don't think posting a preliminary patch, while continuing to polish, > with a note that you're working on that and plan to commit soon, would > slow you down that much. There's pretty obviously a difference between > an added 10 line test, taking 30ms, and what you did here - and that > doesn't mean what you added is wrong or shouldn't be added. New tests are not zero-cost; they create a distributed burden on the buildfarm and, by increasing the buildfarm cycle time, slow down feedback to authors of subsequent patches. So I'm very much not on board with any argument that "more tests are always better and don't even require discussion". I'd have liked to see this patch posted with some commentary along the lines of "this improves LOC coverage in pg_dump by X%, and for me it increases the time taken for 'make installcheck' in bin/pg_dump by Y%". Assuming Y isn't totally out of line with X, I doubt anyone would have objected or even bothered to review the patch in detail ... but it would have been polite to proceed that way. In short, I agree with Stephen's position that test additions can get away with less review than other sorts of changes, but I also agree with Robert's position that that doesn't mean there's no process to follow at all. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers