Re: buildfarm's typedefs list has gone completely nutso - Mailing list pgsql-hackers

From Tom Lane
Subject Re: buildfarm's typedefs list has gone completely nutso
Date
Msg-id 24705.1563464532@sss.pgh.pa.us
Whole thread Raw
In response to Re: buildfarm's typedefs list has gone completely nutso  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: buildfarm's typedefs list has gone completely nutso  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
I wrote:
> ... I just realized from looking at its
> config that you have it set to do so at most twice a week:

>                                 'dow' => [
>                                      1,
>                                      4
>                                      ]

I was still confused, seeing that today is Thursday, as to why
komodoensis didn't update its typedefs list in the run it just
finished.  Looking at the buildfarm script (in sub
check_optional_step), it seems the "dow" filter is implemented
like this:

    return
      if (exists $oconf->{dow}
        && grep { $_ eq $wday } @{ $oconf->{dow} });

I'm the world's worst Perl programmer, but isn't that backwards?
It seems like it will return undef if today matches any entry
of the dow list, making dow a blacklist of weekdays *not* to run
the step on.  That's not what I would have expected it to mean,
although build-farm.conf.sample is surely unclear on the point.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: buildfarm's typedefs list has gone completely nutso
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Fw: Documentation fix for adding a column with a default value