Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeUl3-00025D-38 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jan 2018 23:47:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeUl2-0007lt-6g for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jan 2018 23:47:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eeUl1-0007lj-ND for pgsql-hackers@lists.postgresql.org; Wed, 24 Jan 2018 23:47:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eeUkz-00018g-C7 for pgsql-hackers@postgresql.org; Wed, 24 Jan 2018 23:47:06 +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 w0ONkxix014482; Wed, 24 Jan 2018 18:46:59 -0500 From: Tom Lane To: Alvaro Herrera cc: Thomas Munro , Andres Freund , pgsql-hackers@postgresql.org Subject: Re: reducing isolation tests runtime In-reply-to: <20180124231006.z7spaz5gkzbdvob5@alvherre.pgsql> References: <20180124231006.z7spaz5gkzbdvob5@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 24 Jan 2018 20:10:06 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14480.1516837619.1@sss.pgh.pa.us> Date: Wed, 24 Jan 2018 18:46:59 -0500 Message-ID: <14481.1516837619@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On the subject of test total time, we could paralelize isolation tests. > Right now "make check" in src/test/isolation takes 1:16 on my machine. > Test "timeouts" takes full 40s of that, with nothing running in parallel > -- the machine is completely idle. BTW, one small issue there is that the reason the timeouts test is so slow is that we have to use multi-second timeouts to be sure slower buildfarm critters (eg valgrind animals) will get the expected results. So I'm worried that if the machine isn't otherwise idle, we will get random failures. We could parallelize the rest of those tests and leave timeouts in its own group. That cuts the payback a lot :-( but might still be worth doing. Or maybe tweak things so that the buildfarm runs a serial schedule but manual testing doesn't. Or we could debate how important the timeout tests really are ... or think harder about how to make them reproducible. regards, tom lane