Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLBdn-00016V-9E for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 20:13:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLBdm-0004g0-3g for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Apr 2020 20:13:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLBdl-0004ft-SU for pgsql-hackers@lists.postgresql.org; Sun, 05 Apr 2020 20:13:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLBdf-0003LK-PC for pgsql-hackers@postgresql.org; Sun, 05 Apr 2020 20:13:08 +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 035KCQFH004027; Sun, 5 Apr 2020 16:12:26 -0400 From: Tom Lane To: Andrew Dunstan cc: =?UTF-8?Q?Mikael_Kjellstr=c3=b6m?= , Robert Haas , Fabien COELHO , Alvaro Herrera , David Steele , Andres Freund , Noah Misch , Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , PostgreSQL Hackers , Jeevan Chalke , vignesh C , Thomas Munro Subject: Re: backup manifests and contemporaneous buildfarm failures In-reply-to: <95e52766-4e00-1bc7-8710-8b681760bdf4@2ndQuadrant.com> References: <20200403205412.GA8279@alvherre.pgsql> <22394.1585951968@sss.pgh.pa.us> <3419.1585965125@sss.pgh.pa.us> <10b8121c-faa1-66a7-4280-319b9be5cc2d@mksoft.nu> <95e52766-4e00-1bc7-8710-8b681760bdf4@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Sun, 05 Apr 2020 16:06:58 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4025.1586117546.1@sss.pgh.pa.us> Date: Sun, 05 Apr 2020 16:12:26 -0400 Message-ID: <4026.1586117546@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > Hmm, the buildfarm client does this at the beginning of each run to > remove anything that might be left over from a previous run: > rmtree("inst"); > rmtree("$pgsql") unless ($from_source && !$use_vpath); Right, the point is precisely that some versions of rmtree() fail to remove a mode-0 subdirectory. > Do I need to precede those with some recursive chmod commands? Perhaps > the client should refuse to run if there is still something left after > these. I think the latter would be a very good idea, just so that this sort of failure is less obscure. Not sure about whether a recursive chmod is really going to be worth the cycles. (On the other hand, the normal case should be that there's nothing there anyway, so maybe it's not going to be costly.) regards, tom lane