Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azkqW-0004Tj-L6 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 May 2016 13:03:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1azkqV-00014Z-Ln for pgsql-hackers@arkaria.postgresql.org; Mon, 09 May 2016 13:03:35 +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 1azkqV-00014T-74 for pgsql-hackers@postgresql.org; Mon, 09 May 2016 13:03:35 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azkqQ-0000f5-8W for pgsql-hackers@postgresql.org; Mon, 09 May 2016 13:03:34 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 428E25F798; Mon, 9 May 2016 09:03:28 -0400 (EDT) Date: Mon, 9 May 2016 09:03:28 -0400 From: Stephen Frost To: Michael Paquier Cc: Peter Eisentraut , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Add TAP tests for pg_dump Message-ID: <20160509130328.GD10850@tamriel.snowman.net> References: <20160506191153.GW10850@tamriel.snowman.net> <6a8ad886-2610-b8fa-00f5-0c9c3264f79c@2ndquadrant.com> <20160507133606.GK10850@tamriel.snowman.net> <20160507214416.GV10850@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DnZpZvf47DTw+TzW" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 08:34:43 up 76 days, 9:27, 22 users, load average: 0.26, 0.17, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -4.0 (----) 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 --DnZpZvf47DTw+TzW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Michael Paquier (michael.paquier@gmail.com) wrote: > On Sun, May 8, 2016 at 6:44 AM, Stephen Frost wrote: > > I do think that now is a good time for people to be reviewing what's > > been committed, which includes writing tests (either automated ones, > > which can be included in our test suite, or one-off's for testing > > specific things but which don't make sense to include). >=20 > And what if the tests are buggy? New test suites should go through a > CF first I think for proper review. And this is clearly one. They still won't result in data loss, corruption, or other direct impact on our users, even if they are buggy. They also won't destablize the code base or introduce new bugs into the code. Those are the things we need to be concerned about when it comes to introducing new features into the system and why we take a break from doing so before a release. > > Regarding when we should stop adding new tests, I can't agree with the > > notion that they should be treated as new features. New tests may break > > the buildfarm, but they do not impact the stability of committed code, > > nor do they introduce new bugs into the code which has been committed > > (if anything, they expose committed bugs, as the set of tests we're > > discussing did, which should then be fixed). >=20 > Yes, new tests do not impact the core code, but they could hide > existing bugs, which is what I think Peter is arguing about here, and > why it is not a good idea to pushed in a complete new test suite just > before a beta release. The buildfarm is made so as a run stops once of > the tests turns red, not after all of them have run. I disagree that new tests are going to hide existing bugs. The case which I believe you're making for that happening is where the buildfarm is red for an extended period of time, but I've agreed that we don't want the buildfarm to be red and have said as much, and that's different =66rom the question about adding new tests and simply means the same thing it's always meant- anything which makes the buildfarm red should be addressed in short order. > > As such, I'd certainly encourage you to propose new tests, even now, but > > not changes to the PG code, except for bug fixes, or changes agreed to > > by the RMT. How you prioritise that with the release preparation work > > is up to you, of course, though if I were in your shoes, I'd take care > > of the release prep first, as we're quite close to doing a set of > > releases. I'm happy to try and help with that effort myself, though > > I've not been involved very much in release prep and am not entirely > > sure what I can do to help. >=20 > Adding new tests that are part of an existing bug fix is fine because > the failure of such a test would mean that the bug fix is not working > as intended. Based on my reading of the code this adds test coverage > that is larger than the basic test for a bug fix. Yes, which is an all-together good thing, I believe. We need more and better test coverage of a *lot* of the system and this is just the start of adding that coverage for pg_dump. There is pretty clearly a lack of consensus on the question about adding new tests. It seems like it'd be a good topic for the dev meeting, but I don't think everyone involved in the discussion so far is going to be there, unfortunately. I'm open to still proposing it as a topic, though I dislike having to leave people out of it. I'm not quite sure what the best way to put this is, but I can't help but feel the need to comment on it in at least some way: What *should* we be doing right now? Reviewing code and testing the system is what I had thought but perhaps I'm wrong. To the extent that we're testing the system, isn't it better to write repeatable tests, particularly ones which add code coverage, than one-off tests that only check that the current snapshot of the code is operating correctly? I feel like that's what we should be encouraging, but this position is suggesting that we should be doing that independently and holding all of those new tests until the next commitfest, which is the same as we're asked to do for new development at this point. Perhaps it's not ideal, but I feel it's necessary to point out that between writing code coverage tests and doing new development, other things being equal, you can guess which would be preferred. I'd rather we encourage more of the former rather than acting as if they should be treated the same during this phase of the development cycle. Thanks! Stephen --DnZpZvf47DTw+TzW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXMIqfAAoJEO1sijiDR2RVgHcP/jOjYdXC1b2nGBkCYxHvDBLh mCY+/qpoCFmQi5dbkUh6UBLRDvR6J+1K1MGnXJp+Us3g0Xy8FsiHGmkpSYkNlBpd 32FBfxWjekn2GuDBjjBauHAMWdD8fNpntkxkRXQOZfNTOqArGMZJahg6WbETRgiC DPQiT89DdfzWDJqa3LJn/3Dlvxkfy9qUSrOlRgpxL9M+de8vIpVZg8V6bUa9QxRk 4QRHJfxry6cyZDMNCH7Yhg5z0Up/K9mXoyiR/KfCSwR5XFjuoqLpANKePNgGc3Ls hKh4Rse/6mSPN/gNNt661FSYm2HBEgc6yJz+G+N+I865mJ7AoGmFKbep3q3oYkpH B5Vfu89C2+mKXkKZ1CANN1KHIsDeAqJpozIP1O1ZIlFsJ2+mYSXNCzGvqkTUe8a8 3Tug5bFVNAxfWQP9Q1zzmY0F6/0hGzYBzH/mWJAHDhjDzizlX/WQVP6ZDMdTD6uV YZ5DwrUYmdTtRUSoIQa45K3xbpk18AYjFEiNRugNhJYrvUzcyTU6z8pjl5Z/qZZS fil/omkPJtoRMCZKhZICm3luXJGf2IzvzWccJrDUztjuHIKhQ3eyVzcfs8xSezeP AEzyA46wzGJOvVW3dpmZzrfR8kxiToKDVGdkHRUWjtMJpSj7j3BVsyygFDD4fdEC mSoc5l1e8BG4CXtj7RMo =AwFr -----END PGP SIGNATURE----- --DnZpZvf47DTw+TzW--