Re: Help with failures on HEAD

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Todd A(dot) Cook" <ToddA(dot)Cook(at)synopsys(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "buildfarm-members(at)lists(dot)postgresql(dot)org" <buildfarm-members(at)lists(dot)postgresql(dot)org>
Subject: Re: Help with failures on HEAD
Date: 2023-02-14 16:18:48
Message-ID: 4a4d0487-5055-5663-69d0-9f0265fe876d@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: buildfarm-members


On 2023-02-09 Th 14:00, Todd A. Cook wrote:
> On 2/9/23, 1:41 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us <mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
> "Todd A. Cook" <ToddA(dot)Cook(at)synopsys(dot)com <mailto:ToddA(dot)Cook(at)synopsys(dot)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

In response to

Responses

Browse buildfarm-members by date

  From Date Subject
Next Message Todd A. Cook 2023-02-14 19:30:15 Re: Help with failures on HEAD
Previous Message Tom Lane 2023-02-10 21:48:35 Re: Help with failures on HEAD