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 1pRy1C-00014u-Ta for buildfarm-members@arkaria.postgresql.org; Tue, 14 Feb 2023 16:18:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pRy1B-0008Fo-8p for buildfarm-members@arkaria.postgresql.org; Tue, 14 Feb 2023 16:18:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRy1B-0008Ff-2R for buildfarm-members@lists.postgresql.org; Tue, 14 Feb 2023 16:18:57 +0000 Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRy17-0000x7-PI for buildfarm-members@lists.postgresql.org; Tue, 14 Feb 2023 16:18:55 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id E017624000E; Tue, 14 Feb 2023 16:18:49 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------ozsBVai2wnjOEzUvJNVNg8Jv" Message-ID: <4a4d0487-5055-5663-69d0-9f0265fe876d@dunslane.net> Date: Tue, 14 Feb 2023 11:18:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Help with failures on HEAD Content-Language: en-US To: "Todd A. Cook" , Tom Lane Cc: "buildfarm-members@lists.postgresql.org" References: <5E0A4E81-CCCE-4267-A4A8-C6C1B93EE487@contoso.com> <3937519.1675968094@sss.pgh.pa.us> From: Andrew Dunstan In-Reply-To: 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. --------------ozsBVai2wnjOEzUvJNVNg8Jv Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2023-02-09 Th 14:00, Todd A. Cook wrote: > On 2/9/23, 1:41 PM, "Tom Lane" > wrote: > "Todd A. Cook" > writes: > > Hi, > > Last Saturday morning, builds of HEAD on my animal mantid[1] spontaneously started failing; > > see [2] for an example. The log shown there is > > > Missing checked out branch bf_HEAD: > > * [32mbf_HEAD[m > > bf_REL_11_STABLE[m > > bf_REL_12_STABLE[m > > bf_REL_13_STABLE[m > > bf_REL_14_STABLE[m > > bf_REL_15_STABLE[m > > master[m > > In the past, I've been able to resolve issues similar to this one > by flushing the animal's git repo (rm -rf pgmirror.git) and letting > it pull that down fresh on the next run. Not clear if you included > that when you "removed the buildroot"? > > Yes, I did "rm -rf buildroot". After that, I verified (with "diff -r") that I had no changes > vs. the distribution tarball other than having my build-farm.conf present. It looks like you're getting some color output, probably because of some unwise git configuration or something that makes git think it's talking to a terminal. Please see if this patch works to fix things: diff --git a/PGBuild/SCM.pm b/PGBuild/SCM.pm index dcfd180..6dc1232 100644 --- a/PGBuild/SCM.pm +++ b/PGBuild/SCM.pm @@ -983,7 +983,7 @@ sub _setup_new_workdir     # doesn't yet know about     my @fetchlog = run_log('git fetch --prune'); -   my @branches = `git branch`; +   my @branches = `git branch --no-color`;     chomp @branches;     my @colog;     if (grep { /\bbf_$branch\b/ } @branches) cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------ozsBVai2wnjOEzUvJNVNg8Jv Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2023-02-09 Th 14:00, Todd A. Cook wrote:
    On 2/9/23, 1:41 PM, "Tom Lane" <tgl@sss.pgh.pa.us <mailto:tgl@sss.pgh.pa.us>> wrote:
    "Todd A. Cook" <ToddA.Cook@synopsys.com <mailto:ToddA.Cook@synopsys.com>> writes:
    > Hi,
    > Last Saturday morning, builds of HEAD on my animal mantid[1] spontaneously started failing;
    > see [2] for an example. The log shown there is

    > Missing checked out branch bf_HEAD:
    > * [32mbf_HEAD[m
    > bf_REL_11_STABLE[m
    > bf_REL_12_STABLE[m
    > bf_REL_13_STABLE[m
    > bf_REL_14_STABLE[m
    > bf_REL_15_STABLE[m
    > master[m

    In the past, I've been able to resolve issues similar to this one
    by flushing the animal's git repo (rm -rf pgmirror.git) and letting
    it pull that down fresh on the next run. Not clear if you included
    that when you "removed the buildroot"?

Yes, I did "rm -rf buildroot".  After that, I verified (with "diff -r") that I had no changes
vs. the distribution tarball other than having my build-farm.conf present.


It looks like you're getting some color output, probably because of some unwise git configuration or something that makes git think it's talking to a terminal. Please see if this patch works to fix things:


diff --git a/PGBuild/SCM.pm b/PGBuild/SCM.pm
index dcfd180..6dc1232 100644
--- a/PGBuild/SCM.pm
+++ b/PGBuild/SCM.pm
@@ -983,7 +983,7 @@ sub _setup_new_workdir
    # doesn't yet know about
    my @fetchlog = run_log('git fetch --prune');
 
-   my @branches = `git branch`;
+   my @branches = `git branch --no-color`;
    chomp @branches;
    my @colog;
    if (grep { /\bbf_$branch\b/ } @branches)


cheers


andrew

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