Re: Release 13 of the PostgreSQL BuildFarm client

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: buildfarm-members(at)postgresql(dot)org
Subject: Re: Release 13 of the PostgreSQL BuildFarm client
Date: 2021-08-03 19:14:41
Message-ID: 0234f0ff-221a-e6a4-39c7-137ed4edb74e@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: buildfarm-members pgsql-hackers


On 8/3/21 8:47 AM, Andrew Dunstan wrote:
> On 8/2/21 7:11 PM, Tom Lane wrote:
>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>> I have pushed Release 13 of the PostgreSQL BuildFarm client.
>> FYI, this seems to have broken compatibility with ancient versions
>> of git. prairiedog and gaur/pademelon are both using
>> git version 1.7.9.6, and they both choked on the --prune-tags
>> option. I tried removing that, as it seemed possibly unnecessary,
>> but it didn't improve matters.
>>
>> I suppose I'm overdue to update git on these machines, but anyone
>> else running dinosaur versions may want to be cautious.
>
> Not so much dinosaurs either. I just tried on Centos 7 which isn't that
> old, and got a failure. Not just from the prune-tags but from 'git
> ls-remote' not supporting symref. I will come up with a solution in a
> couple of days, but for now please don't deploy unless you have a fairly
> modern git. If you do deploy, be prepared to roll back.
>
>

OK, I have come up with this fix. Essentially the code detects if the
git version can run `git ls-remote --symref` and refuses to run branch
name checking code if it fails. It also outputs a warning message unless
the config setting skip_git_default_check has been explicitly set. In
either case the owner will have to update their git installation or face
a flag day event when the default branch name changes.

I have tested this on Centos 7 which has a git that's plenty old enough
to exhibit the problems Tom encountered.

I'm planning on issuing a 12.1 release fairly soon with this patch, but
as I developed it fairly quickly and through the fog of some painkillers
I'd appreciate more eyes on it first :-)

cheers

andrew

--

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

Attachment Content-Type Size
v13-git-fix.patch text/x-patch 1.6 KB

In response to

Responses

Browse buildfarm-members by date

  From Date Subject
Next Message Tom Lane 2021-08-03 20:00:00 Re: Release 13 of the PostgreSQL BuildFarm client
Previous Message Tom Lane 2021-08-03 15:01:37 CLOBBER_CACHE_ALWAYS testing (was Re: Release 13 of the PostgreSQL BuildFarm client)

Browse pgsql-hackers by date

  From Date Subject
Next Message Michail Nikolaev 2021-08-03 19:23:58 Re: Slow standby snapshot
Previous Message Bruce Momjian 2021-08-03 18:57:49 Re: Commitfest overflow