Re: marking old branches as no longer maintained

Lists: pgsql-hackers
From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: marking old branches as no longer maintained
Date: 2011-06-28 17:46:22
Message-ID: 4E0A136E.6030509@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


I'd like to add a feature to the buildfarm that automatically picks up
any new branch and automatically stops building any branch we're not
maintaining any more. To do the latter, I need some way for the client
to detect that we are or aren't interested in a branch. What I'd like to
do is add a file to the old back branches (say from 7.4 to 8.1 currently
- I can grandfather the rest) called "end-of-life-reached" or some such,
with some appropriate text. As a branch reaches its end of life, i.e.
right before the last release we make, we should add that file to the
branch.

I think this would possibly be useful anyway, regardless of buildfarm
utility - I still hear of people mistakenly grabbing and building
releases past EOL, and maybe this will give one or two the extra clue
they need that this is less than a good idea.

Comments?

cheers

andrew


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 17:54:13
Message-ID: BANLkTi=dvd==XzZYGCA0Z2DshhXPT+Ro+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jun 28, 2011 at 19:46, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
> I'd like to add a feature to the buildfarm that automatically picks up any
> new branch and automatically stops building any branch we're not maintaining
> any more. To do the latter, I need some way for the client to detect that we
> are or aren't interested in a branch. What I'd like to do is add a file to
> the old back branches (say from 7.4 to 8.1 currently - I can grandfather the
> rest) called "end-of-life-reached" or some such, with some appropriate text.
> As a branch reaches its end of life, i.e. right before the last release we
> make, we should add that file to the branch.

Does this need to be driven out of the main tree? Couldn't you just
have a "blacklist" in the buildfarm code or site? (disclaimer: I
haven't looked at how it works so that may be a completely useless
idea..)

Another way would be to just not run bulids if there are no commits in
<n> days on a branch. Don't we already not run builds on branches with
no comments? Maybe just put a limit on how long we allow an override
of that?

> I think this would possibly be useful anyway, regardless of buildfarm
> utility - I still hear of people mistakenly grabbing and building releases
> past EOL, and maybe this will give one or two the extra clue they need that
> this is less than a good idea.

If you want that to actually work, you probably need to do something
to the point of breaking the configure script. There's zero chance of
people who're not reading the information about which releases are
supported are actually going read a random file somewhere in the
source tree, regardless of where you place it and what you name it.

You could reqiure something like "./configure
--yes-i-know-what-i-am-doing" or something like that, I guess...

> Comments?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 18:38:06
Message-ID: 4E0A1F8E.9090905@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 01:54 PM, Magnus Hagander wrote:
> On Tue, Jun 28, 2011 at 19:46, Andrew Dunstan<andrew(at)dunslane(dot)net> wrote:
>> I'd like to add a feature to the buildfarm that automatically picks up any
>> new branch and automatically stops building any branch we're not maintaining
>> any more. To do the latter, I need some way for the client to detect that we
>> are or aren't interested in a branch. What I'd like to do is add a file to
>> the old back branches (say from 7.4 to 8.1 currently - I can grandfather the
>> rest) called "end-of-life-reached" or some such, with some appropriate text.
>> As a branch reaches its end of life, i.e. right before the last release we
>> make, we should add that file to the branch.
> Does this need to be driven out of the main tree? Couldn't you just
> have a "blacklist" in the buildfarm code or site? (disclaimer: I
> haven't looked at how it works so that may be a completely useless
> idea..)

Not very easily, mainly because of difficulties with MinGW SDK perl.
Building it into the code would defeat the purpose.

If it's contentious I won't bother. We've managed OK for years, and can
go on managing as we are.

cheers

andrew


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:02:16
Message-ID: BANLkTikK-Jg7dyLstJLvwOu0xvHGNJFPtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jun 28, 2011 at 20:38, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
> On 06/28/2011 01:54 PM, Magnus Hagander wrote:
>>
>> On Tue, Jun 28, 2011 at 19:46, Andrew Dunstan<andrew(at)dunslane(dot)net>  wrote:
>>>
>>> I'd like to add a feature to the buildfarm that automatically picks up
>>> any
>>> new branch and automatically stops building any branch we're not
>>> maintaining
>>> any more. To do the latter, I need some way for the client to detect that
>>> we
>>> are or aren't interested in a branch. What I'd like to do is add a file
>>> to
>>> the old back branches (say from 7.4 to 8.1 currently - I can grandfather
>>> the
>>> rest) called "end-of-life-reached" or some such, with some appropriate
>>> text.
>>> As a branch reaches its end of life, i.e. right before the last release
>>> we
>>> make, we should add that file to the branch.
>>
>> Does this need to be driven out of the main tree? Couldn't you just
>> have a "blacklist" in the buildfarm code or site? (disclaimer: I
>> haven't looked at how it works so that may be a completely useless
>> idea..)
>
>
> Not very easily, mainly because of difficulties with MinGW SDK perl.
> Building it into the code would defeat the purpose.

Drat.

> If it's contentious I won't bother. We've managed OK for years, and can go
> on managing as we are.

If we can find a good way to do it, I think having BF animals
automatically picking up new branches is a very good thing to have. So
don't give up so easily :D If adding a more or less random file to
back branches is the only way to do it, I'm for doing that - I'd just
like to find some method that feels cleaner. But maybe I'm just
bikeshedding for no real use here.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:17:44
Message-ID: BANLkTi=YBA8=9PVWWmpZ4Gj9CwOJpRTi0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jun 28, 2011 at 8:02 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>
> If we can find a good way to do it, I think having BF animals
> automatically picking up new branches is a very good thing to have. So
> don't give up so easily :D If adding a more or less random file to
> back branches is the only way to do it, I'm for doing that - I'd just
> like to find some method that feels cleaner. But maybe I'm just
> bikeshedding for no real use here.

Adding new branches automatically would be great, but it'll need some
work from the animal herders as well as some careful design - for
example, my Windows animals have separate schedules for each branch
(some running more frequently than others), whilst my Solaris ones now
use a runner script that cycles through the list of branches on each
of a couple of animals.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:21:49
Message-ID: 4E0A29CD.1060303@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 03:02 PM, Magnus Hagander wrote:
>
>> If it's contentious I won't bother. We've managed OK for years, and can go
>> on managing as we are.
> If we can find a good way to do it, I think having BF animals
> automatically picking up new branches is a very good thing to have. So
> don't give up so easily :D If adding a more or less random file to
> back branches is the only way to do it, I'm for doing that - I'd just
> like to find some method that feels cleaner. But maybe I'm just
> bikeshedding for no real use here.

Another way would be for us to have a file on master with the names of
the branches we care about.

cheers

andrew


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:37:07
Message-ID: 4E0A2D63.3000805@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 03:17 PM, Dave Page wrote:
> On Tue, Jun 28, 2011 at 8:02 PM, Magnus Hagander<magnus(at)hagander(dot)net> wrote:
>> If we can find a good way to do it, I think having BF animals
>> automatically picking up new branches is a very good thing to have. So
>> don't give up so easily :D If adding a more or less random file to
>> back branches is the only way to do it, I'm for doing that - I'd just
>> like to find some method that feels cleaner. But maybe I'm just
>> bikeshedding for no real use here.
> Adding new branches automatically would be great, but it'll need some
> work from the animal herders as well as some careful design - for
> example, my Windows animals have separate schedules for each branch
> (some running more frequently than others), whilst my Solaris ones now
> use a runner script that cycles through the list of branches on each
> of a couple of animals.

Modern buildfarm code has a wrapper builtin. So my crontab usually just
looks like this:

27 * * * * cd bf && ./run_branches.pl --config=nightjar.conf --run-all

The buildfarm.conf has a section like this:

if ($branch eq 'global')
{
$conf{branches_to_build} = [qw( HEAD REL9_1_STABLE
REL9_0_STABLE REL8_4_STABLE REL8_3_STABLE REL8_2_STABLE)];
}

What I'd like to do is to allow this to read:

if ($branch eq 'global')
{
$conf{branches_to_build} = 'ALL';
}

and have it choose the right set for you.

But if you want to run some more frequently you'd still be stuck having
to manage that yourself. There's actually not a lot of point in doing it
that way, though. We don't build unless there have been changes on the
branch, unless told otherwise, so you might as well run frequently and
test all the branches - for the most part only HEAD (i.e. master) will
be built because it gets far more changes than the back branches.

cheers

andrew


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:48:18
Message-ID: BANLkTimgqXMQ1=sP1nTY2xK2eJyRH+=CoA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tuesday, June 28, 2011, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
> On 06/28/2011 03:17 PM, Dave Page wrote:
>
> On Tue, Jun 28, 2011 at 8:02 PM, Magnus Hagander<magnus(at)hagander(dot)net>  wrote:
>
> If we can find a good way to do it, I think having BF animals
> automatically picking up new branches is a very good thing to have. So
> don't give up so easily :D If adding a more or less random file to
> back branches is the only way to do it, I'm for doing that - I'd just
> like to find some method that feels cleaner. But maybe I'm just
> bikeshedding for no real use here.
>
> Adding new branches automatically would be great, but it'll need some
> work from the animal herders as well as some careful design - for
> example, my Windows animals have separate schedules for each branch
> (some running more frequently than others), whilst my Solaris ones now
> use a runner script that cycles through the list of branches on each
> of a couple of animals.
>
>
> Modern buildfarm code has a wrapper builtin. So my crontab usually just looks like this:
>
>   27 * * * * cd bf && ./run_branches.pl --config=nightjar.conf --run-all
>
> The buildfarm.conf has a section like this:
>
>   if ($branch eq 'global')
>   {
>        $conf{branches_to_build} = [qw( HEAD REL9_1_STABLE
>   REL9_0_STABLE REL8_4_STABLE REL8_3_STABLE REL8_2_STABLE)];
>   }
>
> What I'd like to do is to allow this to read:
>
>   if ($branch eq 'global')
>   {
>        $conf{branches_to_build} = 'ALL';
>   }
>
> and have it choose the right set for you.

Oh, cool. Guess I'll be reconfiguring my animals soon :-)

> But if you want to run some more frequently you'd still be stuck having to manage that yourself. There's actually not a lot of point in doing it that way, though. We don't build unless there have been changes on the branch, unless told otherwise, so you might as well run frequently and test all the branches - for the most part only HEAD (i.e. master) will be built because it gets far more changes than the back branches.

It was something Tom asked for ages ago, so he could see if the
Windows build got broken more promptly. I didn't want multiple
branches running with increased frequency as I run a number of animals
on a single machine with vmware, and a back patched change could cause
a lot of extra work.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 19:59:29
Message-ID: 4E0A32A1.7000507@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 03:48 PM, Dave Page wrote:
>
>> But if you want to run some more frequently you'd still be stuck having to manage that yourself. There's actually not a lot of point in doing it that way, though. We don't build unless there have been changes on the branch, unless told otherwise, so you might as well run frequently and test all the branches - for the most part only HEAD (i.e. master) will be built because it gets far more changes than the back branches.
> It was something Tom asked for ages ago, so he could see if the
> Windows build got broken more promptly. I didn't want multiple
> branches running with increased frequency as I run a number of animals
> on a single machine with vmware, and a back patched change could cause
> a lot of extra work.

Oh, so maybe we need to have some sort of throttle. Probably just for
non-head or non-(head-or-latest) would suffice.

cheers

andrew


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 20:51:26
Message-ID: 1309294287.30757.1.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tis, 2011-06-28 at 15:37 -0400, Andrew Dunstan wrote:
> What I'd like to do is to allow this to read:
>
> if ($branch eq 'global')
> {
> $conf{branches_to_build} = 'ALL';
> }
>
> and have it choose the right set for you.

It seems to me that if you put a marker file into old branches, you'd
still have to check out and poll the old branches, which could become
somewhat expensive as the number of old branches grows.

Couldn't you just put a text file on the build farm server with
recommended branches?


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 21:05:10
Message-ID: 4E0A4206.40507@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 04:51 PM, Peter Eisentraut wrote:
> On tis, 2011-06-28 at 15:37 -0400, Andrew Dunstan wrote:
>> What I'd like to do is to allow this to read:
>>
>> if ($branch eq 'global')
>> {
>> $conf{branches_to_build} = 'ALL';
>> }
>>
>> and have it choose the right set for you.
> It seems to me that if you put a marker file into old branches, you'd
> still have to check out and poll the old branches, which could become
> somewhat expensive as the number of old branches grows.

No, not really. I'd use 'git ls-tree $branchname $filetolookfor". I have
tested it and this works just fine, takes a second or so.

> Couldn't you just put a text file on the build farm server with
> recommended branches?

As I told Magnus, that gets ugly because of limitations in MinGW's SDK
perl. I suppose I could just not implement the feature for MinGW, but
I've tried damn hard not to make those sorts of compromises and I'm not
keen to start.

cheers

andrew


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 21:31:35
Message-ID: 1309296695.30757.2.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tis, 2011-06-28 at 17:05 -0400, Andrew Dunstan wrote:
> > Couldn't you just put a text file on the build farm server with
> > recommended branches?
>
> As I told Magnus, that gets ugly because of limitations in MinGW's SDK
> perl. I suppose I could just not implement the feature for MinGW, but
> I've tried damn hard not to make those sorts of compromises and I'm not
> keen to start.

The buildfarm code can upload the build result via HTTP; why can't it
download a file via HTTP?


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-06-28 21:51:03
Message-ID: 4E0A4CC7.6090606@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 06/28/2011 05:31 PM, Peter Eisentraut wrote:
> On tis, 2011-06-28 at 17:05 -0400, Andrew Dunstan wrote:
>>> Couldn't you just put a text file on the build farm server with
>>> recommended branches?
>> As I told Magnus, that gets ugly because of limitations in MinGW's SDK
>> perl. I suppose I could just not implement the feature for MinGW, but
>> I've tried damn hard not to make those sorts of compromises and I'm not
>> keen to start.
> The buildfarm code can upload the build result via HTTP; why can't it
> download a file via HTTP?

It has to use a separate script to do that. I don't really want to add
another one just for this.

(thinks a bit) I suppose I can make it do:

my $url = "http://buildfarm.postgresql.org/branches_of_interest.txt";
my $branches_of_interest = `perl -MLWP::Simple -e "getprint(q{$url})"`;

Maybe that's the best option. It's certainly going to be less code than
anything else :-)

cheers

andrew


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-07-11 23:59:01
Message-ID: 201107112359.p6BNx1B17817@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andrew Dunstan wrote:
>
>
> On 06/28/2011 05:31 PM, Peter Eisentraut wrote:
> > On tis, 2011-06-28 at 17:05 -0400, Andrew Dunstan wrote:
> >>> Couldn't you just put a text file on the build farm server with
> >>> recommended branches?
> >> As I told Magnus, that gets ugly because of limitations in MinGW's SDK
> >> perl. I suppose I could just not implement the feature for MinGW, but
> >> I've tried damn hard not to make those sorts of compromises and I'm not
> >> keen to start.
> > The buildfarm code can upload the build result via HTTP; why can't it
> > download a file via HTTP?
>
>
> It has to use a separate script to do that. I don't really want to add
> another one just for this.
>
> (thinks a bit) I suppose I can make it do:
>
> my $url = "http://buildfarm.postgresql.org/branches_of_interest.txt";
> my $branches_of_interest = `perl -MLWP::Simple -e "getprint(q{$url})"`;
>
> Maybe that's the best option. It's certainly going to be less code than
> anything else :-)

Could you pull the list of active branches from our web site HTML?
\
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Dave Page <dpage(at)pgadmin(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-07-12 00:10:42
Message-ID: 4E1B9102.30301@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 07/11/2011 07:59 PM, Bruce Momjian wrote:
> Andrew Dunstan wrote:
>>
>> On 06/28/2011 05:31 PM, Peter Eisentraut wrote:
>>> On tis, 2011-06-28 at 17:05 -0400, Andrew Dunstan wrote:
>>>>> Couldn't you just put a text file on the build farm server with
>>>>> recommended branches?
>>>> As I told Magnus, that gets ugly because of limitations in MinGW's SDK
>>>> perl. I suppose I could just not implement the feature for MinGW, but
>>>> I've tried damn hard not to make those sorts of compromises and I'm not
>>>> keen to start.
>>> The buildfarm code can upload the build result via HTTP; why can't it
>>> download a file via HTTP?
>>
>> It has to use a separate script to do that. I don't really want to add
>> another one just for this.
>>
>> (thinks a bit) I suppose I can make it do:
>>
>> my $url = "http://buildfarm.postgresql.org/branches_of_interest.txt";
>> my $branches_of_interest = `perl -MLWP::Simple -e "getprint(q{$url})"`;
>>
>> Maybe that's the best option. It's certainly going to be less code than
>> anything else :-)
> Could you pull the list of active branches from our web site HTML?
>

I can, but I'm not that keen on having to do web scraping. Currently my
test machine (crake) is using the above scheme and it's working fine.
It's not a huge burden to maintain, after all.

cheers

andrew


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Dave Page <dpage(at)pgadmin(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: marking old branches as no longer maintained
Date: 2011-07-12 14:20:59
Message-ID: CABUevExA=-xY0cTcH7tQBbtDKKdZQHs=On3hOqNf771EK6SgRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jul 12, 2011 at 01:10, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
> On 07/11/2011 07:59 PM, Bruce Momjian wrote:
>>
>> Andrew Dunstan wrote:
>>>
>>> On 06/28/2011 05:31 PM, Peter Eisentraut wrote:
>>>>
>>>> On tis, 2011-06-28 at 17:05 -0400, Andrew Dunstan wrote:
>>>>>>
>>>>>> Couldn't you just put a text file on the build farm server with
>>>>>> recommended branches?
>>>>>
>>>>> As I told Magnus, that gets ugly because of limitations in MinGW's SDK
>>>>> perl. I suppose I could just not implement the feature for MinGW, but
>>>>> I've tried damn hard not to make those sorts of compromises and I'm not
>>>>> keen to start.
>>>>
>>>> The buildfarm code can upload the build result via HTTP; why can't it
>>>> download a file via HTTP?
>>>
>>> It has to use a separate script to do that. I don't really want to add
>>> another one just for this.
>>>
>>> (thinks a bit) I suppose I can make it do:
>>>
>>>     my $url = "http://buildfarm.postgresql.org/branches_of_interest.txt";
>>>     my $branches_of_interest = `perl -MLWP::Simple -e
>>> "getprint(q{$url})"`;
>>>
>>> Maybe that's the best option. It's certainly going to be less code than
>>> anything else :-)
>>
>> Could you pull the list of active branches from our web site HTML?
>>
>
> I can, but I'm not that keen on having to do web scraping. Currently my test
> machine (crake) is using the above scheme and it's working fine. It's not a
> huge burden to maintain, after all.

You don't actually need to resort to web scraping - it's available as
well formatted xml (http://www.postgresql.org/versions.rss).

That said, I agree that it's not a huge burden, and probably a better
idea, to do it your current way.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/