Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSFo4-0052lC-19 for buildfarm-members@arkaria.postgresql.org; Sat, 05 Aug 2023 11:50:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qSFo2-00FsI4-8a for buildfarm-members@arkaria.postgresql.org; Sat, 05 Aug 2023 11:50:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSFo2-00FsHp-2P for buildfarm-members@lists.postgresql.org; Sat, 05 Aug 2023 11:50:50 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSFnu-000fNU-79 for buildfarm-members@lists.postgresql.org; Sat, 05 Aug 2023 11:50:48 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id D4F721C0005; Sat, 5 Aug 2023 11:50:37 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------ZskwA0e9R7qkWYMdAZbFfE0O" Message-ID: Date: Sat, 5 Aug 2023 07:50:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Release 17 of the PostgreSQL Buildfarm Client Content-Language: en-US From: Andrew Dunstan To: Tom Lane Cc: "buildfarm-members@lists.postgresql.org" References: <6e00da65-f0dc-3fa7-8b06-49385e08d05c@dunslane.net> <3951994.1691190865@sss.pgh.pa.us> <3973102.1691198716@sss.pgh.pa.us> <793aa36e-e0a9-ca2e-c350-bac7054105cf@dunslane.net> In-Reply-To: <793aa36e-e0a9-ca2e-c350-bac7054105cf@dunslane.net> X-GND-Sasl: adsend@dunslane.net List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------ZskwA0e9R7qkWYMdAZbFfE0O Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-08-05 Sa 06:40, Andrew Dunstan wrote: > > > On 2023-08-04 Fr 21:25, Tom Lane wrote: >> I wrote: >>> I ran a test of this using >>> run_branches.pl --run-all --nosend --force >>> and noticed that it created "animal.force-one-run" files in each >>> of the per-branch directories, and never removed them. >> Further testing shows that a pre-existing force-one-run file does >> get removed, so use-cases involving manual creation of the file >> are still OK. Maybe this "force twice" from --force has been >> there all along, and nobody noticed? Even if it's a new bug, >> it's not a show-stopper. >> >> > > > This isn't a product of the --force flag. It's done so that --nosend > and --nostatus don't defeat the up-to-date checks in run_branches.pl > by writing a githead.log with a gitref we haven't reported on. We > could possibly do that another way, e.g. by removing or renaming the > githead.log file in such cases, since the checks in run_branches.pl > rely on that name. (thinks) In fact that's probably better, because > instead of forcing a run it would just make the code do a slow > up-to-date check (by doing a git pull) next time around. Will fix. > > If you had used --test instead of --nosend this wouldn't have happened. > > In any case, the next regular run (i.e. one without --nosend or > --nostatus) will remove the files. > See cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------ZskwA0e9R7qkWYMdAZbFfE0O Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2023-08-05 Sa 06:40, Andrew Dunstan wrote:


On 2023-08-04 Fr 21:25, Tom Lane wrote:
I wrote:
I ran a test of this using
run_branches.pl --run-all --nosend --force
and noticed that it created "animal.force-one-run" files in each
of the per-branch directories, and never removed them.
Further testing shows that a pre-existing force-one-run file does
get removed, so use-cases involving manual creation of the file
are still OK.  Maybe this "force twice" from --force has been
there all along, and nobody noticed?  Even if it's a new bug,
it's not a show-stopper.

		


This isn't a product of the --force flag. It's done so that --nosend and --nostatus don't defeat the up-to-date checks in run_branches.pl by writing a githead.log with a gitref we haven't reported on. We could possibly do that another way, e.g. by removing or renaming the githead.log file in such cases, since the checks in run_branches.pl rely on that name. (thinks) In fact that's probably better, because instead of forcing a run it would just make the code do a slow up-to-date check (by doing a git pull) next time around. Will fix.

If you had used --test instead of --nosend this wouldn't have happened.

In any case, the next regular run (i.e. one without --nosend or --nostatus) will remove the files.


See <https://github.com/PGBuildFarm/client-code/commit/ec4cf43613a74cb88f228efcde09931cf9fd57e7>


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------ZskwA0e9R7qkWYMdAZbFfE0O--