Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yr94y-0003Pq-Gp for pgsql-committers@arkaria.postgresql.org; Sat, 09 May 2015 18:02:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yr94y-0000cz-1F for pgsql-committers@arkaria.postgresql.org; Sat, 09 May 2015 18:02:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yr94x-0000ct-8M for pgsql-committers@postgresql.org; Sat, 09 May 2015 18:02:23 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yr94u-00047z-CF for pgsql-committers@postgresql.org; Sat, 09 May 2015 18:02:21 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Yr94p-0002NT-Dj; Sat, 09 May 2015 14:02:15 -0400 Date: Sat, 9 May 2015 14:02:15 -0400 From: Bruce Momjian To: Alvaro Herrera Cc: Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: Improve speed of make check-world Message-ID: <20150509180215.GB30684@momjian.us> References: <20150505180250.GL2523@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <20150505180250.GL2523@alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 5, 2015 at 03:02:50PM -0300, Alvaro Herrera wrote: > Peter Eisentraut wrote: > > Improve speed of make check-world > > > > Before, make check-world would create a new temporary installation for > > each test suite, which is slow and wasteful. Instead, we now create one > > test installation that is used by all test suites that are part of a > > make run. > > Maybe I'm confused, but now "make -C doc/src/sgml check" seems to build > the whole backend; it didn't do so before, and I think that's quite > pointless. I take it that's unintended? Can we get the old behavior > back? Yes, I found this odd too. It is caused by this commit: commit dcae5faccab64776376d354decda0017c648bb53 Author: Peter Eisentraut Date: Thu Apr 23 08:59:52 2015 -0400 Improve speed of make check-world It basically added a'check' target dependency of 'temp-install' to Makefile.global.in, which added it to every Makefile containing a 'check' target. While you can't easily add rule action to an existing target, you can easily add dependencies by just mentioning the target multiple times, e.g. check: dep1 check: dep2 dep1: echo 1 dep2: echo 2 Running 'make check' will output '1 2'. Now, of course many check's need temp-install, but the SGML build does not. The attached diff uses a symbol defined in doc/src/sgml/Makefile (GENERATED_SGML) to supress the temp-install target rule action. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --sm4nu43k4a2Rpi4c Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="Makefile.diff" diff --git a/src/Makefile.global.in b/src/Makefile.global.in new file mode 100644 index f8b7b35..3ec1fa3 *** a/src/Makefile.global.in --- b/src/Makefile.global.in *************** check: temp-install *** 303,313 **** --- 303,315 ---- .PHONY: temp-install temp-install: + ifdef GENERATED_SGML ifeq ($(MAKELEVEL),0) rm -rf '$(abs_top_builddir)'/tmp_install $(MAKE) -C '$(top_builddir)' DESTDIR='$(abs_top_builddir)'/tmp_install install endif $(if $(EXTRA_INSTALL),for extra in $(EXTRA_INSTALL); do $(MAKE) -C '$(top_builddir)'/$$extra DESTDIR='$(abs_top_builddir)'/tmp_install install || exit; done) + endif PROVE = @PROVE@ PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ --sm4nu43k4a2Rpi4c Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers --sm4nu43k4a2Rpi4c--