Re: buildfarm vs code

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: buildfarm vs code
Date: 2018-06-06 13:16:35
Message-ID: CAA4eK1+sTttv8cyRzOrh6d1TPLDMUU=0HWWKKA9OHq6tpUZ3og@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 6, 2018 at 9:05 AM, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
wrote:

> On Wed, Jun 6, 2018 at 4:09 AM, Andrew Dunstan
> <andrew(dot)dunstan(at)2ndquadrant(dot)com> wrote:
> > At my talk at pgcon last Friday [1] I presented some ideas for how people
> > could run a full buildfarm run against their code, including a 4 line
> recipe
> > using some Docker recipes I had created. Thomas Munro suggested it would
> be
> > even nicer if you could just point something like Appveypr at the code
> and
> > have it do the buildfarm run. That intrigued me a bit, so I created a
> recipe
> > for that. Along the way there are a few adjustments to how the buildfarm
> > client runs, which is why the recipe [2] runs with a git clone rather
> than a
> > published release. Nevertheless it does seem to work [3]
>
> Very nice! Thank you for working on this. So it seems like we're
> pretty close to being able to use the standard buildfarm software to
> manage automatic Windows testing of PostgreSQL from any personal git
> repo, and also for cfbot's testing of CF submissions.
>
> Would this dump the build log to stderr if it fails, so you could see
> it on appveyor? I'd also like to see compiler warnings (and perhaps
> enable the equivalent of -Werror). How should we access that -- is
> there a just-write-everything-to-stdout mode? It suppose we could
> just add some scripting to find and dump all log files.
>
> The quick-and-dirty configuration I've been using for cfbot also runs
> a bit of perl on failure to locate and dump out any regression.diffs
> files, like this:
>
> https://ci.appveyor.com/project/postgresql-cfbot/postgresql/build/1.0.1127
> https://github.com/macdice/cfbot/blob/master/appveyor/appveyor.yml#L22
> https://github.com/macdice/cfbot/blob/master/appveyor/dumpregr.pl
>
> I wonder if it's possible to teach it to locate and backtrace any core
> files, as cfbot does on Linux:
>
> https://github.com/macdice/cfbot/blob/master/travis/.travis.yml#L28
>
> > The second change the recipe makes is to disable the tablespace tests. On
> > Windows, when running as the Administrator, the application gives up
> > privilege to such an extent that the tablespace tests fail.
>
> Ohh. I was confused about why Windows was giving us fewer privileges
> when we had a more privileged account, but in fact *we* did that.
> Where does the privilege-giving-up happen?
>
>
It happens during startup, see CreateRestrictedProcess in
src/bin/pg_ctl/pg_ctl.c.

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2018-06-06 13:33:47 Re: [HACKERS] Moving relation extension locks out of heavyweight lock manager
Previous Message Magnus Hagander 2018-06-06 13:09:35 Re: Add PostgreSQL 11 to feature matrix page?