Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvlMA-0008DM-8U for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 13:52:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvlM9-0003pA-I3 for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2017 13:52:17 +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 1cvlM7-0003mk-Mi for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 13:52:15 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvlM4-0002Ma-On for pgsql-hackers@postgresql.org; Wed, 05 Apr 2017 13:52:15 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 1D46E5F794; Wed, 5 Apr 2017 09:52:12 -0400 (EDT) Date: Wed, 5 Apr 2017 09:52:12 -0400 From: Stephen Frost To: Michael Paquier Cc: Peter Eisentraut , Andres Freund , PostgreSQL mailing lists , Noah Misch Subject: Re: Rewriting the test of pg_upgrade as a TAP test Message-ID: <20170405135211.GZ9812@tamriel.snowman.net> References: <62a4e16e-5ea3-89c9-c94a-ee3be953b94a@2ndquadrant.com> <20170403153200.jqntjo7zat6x5rhh@alap3.anarazel.de> <42d412a2-9cd7-7ee1-0c1a-e8d230d568b0@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VBDpdjLefZynJFCd" 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-91-generic (x86_64) X-Uptime: 09:48:08 up 270 days, 15:12, 31 users, load average: 0.01, 0.12, 0.16 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --VBDpdjLefZynJFCd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael, * Michael Paquier (michael.paquier@gmail.com) wrote: > On Tue, Apr 4, 2017 at 10:52 PM, Peter Eisentraut > wrote: > > On 4/3/17 11:32, Andres Freund wrote: > >> That doesn't strike as particularly future proof. We intentionally > >> leave objects behind pg_regress runs, but that only works if we actual= ly > >> run them... > > > > I generally agree with the sentiments expressed later in this thread. > > But just to clarify what I meant here: We don't need to run a, say, > > 1-minute serial test to load a few "left behind" objects for the > > pg_upgrade test, if we can load the same set of objects using dedicated > > scripting in say 2 seconds. This would make both the pg_upgrade tests > > faster and would reduce the hidden dependencies in the main tests about > > which kinds of objects need to be left behind. >=20 > Making the tests run shorter while maintaining the current code > coverage is nice. But this makes more complicated the test suite > maintenance as this needs either a dedicated regression schedule or an > extra test suite where objects are created just for the sake of > pg_upgrade. This increases the risks of getting a rotten test suite > with the time if patch makers and reviewers are not careful. I believe that what Peter was getting at is that the pg_dump TAP tests create a whole slew of objects in just a few seconds and are able to then exercise those code-paths in pg_dump, without needing to run the entire serial regression test run. I'm still not completely convinced that we actually need to independently test pg_upgrade by creating all the objects which the pg_dump TAP tests do, given that pg_upgrade just runs pg_dump underneath. If we really want to do that, however, what we should do is abstract out the pg_dump set of tests into a place that both the pg_dump and pg_upgrade TAP tests could use them to create all the types of objects which are supported to perform their tests. Thanks! Stephen --VBDpdjLefZynJFCd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY5PaLAAoJEO1sijiDR2RVZTsP/1EYBSmMCMaLqCmheUs6pMdh +iXikeyVamfi1LPbSdbFTocVCHeKv5KCSXIoOGuBIbXUPwWwO1fR2mULWAATLAJv JsHm1NrrxaKI+F1KsoZ2UdNSBsiByblxAkYRZySaOfUHD8nIwqthHykN058m7WlO 103eLancYLOvLTWlF5rpzXIFihsKPc99jDdsJ/s3yUXJbERtMPMyL1ivnblgf7To vA82raEpNxGUTbwtnShoKHccI5Don+jkqVXxYSbzS231rYbc6sZINQ/ertsyoHlG vk44LmFHgAR1Pyti2skz+WFqLaTpOlkYp3eFpvs76u+z1E1WNpJDQ8ovhxvAbm2+ qin0ZqmMuiyQBun5TU+iIqMwbFu+Jeg2ya4zNeaJtLjIlAP4+2fBpv8ivA0pO2v8 rVESgdBLM0R4mpwtz3dYcRBG43hkITp5ERwGbnvpj5qqixuSVYlhDe1c9I4DXE+f ZdvAk4G0nTTfDTpvdW4ZW1x86pd76jluJJDa0L+7n9pYCXZ4zrlK5taY+GHge50g FM3fr54x7yQbhEj5/UGtD9klRTsjEcwvAcMC0V6YEbQXs2iAe2/duWbHn41pgCOW D+MWDtaY4fyUDFWBF8IRdberuEvr4c9+zUXiVbl3scB5PyvhOy/kw1THGCuxhEIt 9acnoFKOkZRh4pAdPdbI =oCeO -----END PGP SIGNATURE----- --VBDpdjLefZynJFCd--