Re: Cirrus CI (Windows help wanted) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Cirrus CI (Windows help wanted)
Date
Msg-id 20220819012309.ssvkmidqmfsms7x3@awork3.anarazel.de
Whole thread Raw
In response to Re: Cirrus CI (Windows help wanted)  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
Hi,

On 2022-08-18 20:17:09 -0500, Justin Pryzby wrote:
> On Thu, Aug 18, 2022 at 06:09:39PM -0700, Andres Freund wrote:
> > > But look: https://cirrus-ci.com/task/4953593575899136
> > 
> > Why is the build phase so slow in that image? 12min? That's way slower than
> > the windows builds normally.
> 
> Because I'd just rebased it, and it's using ccache, which I mentioned is
> several times slower for cache misses, and only ~50% faster for cache hits :(
> 20220701191841.GH13040@telsasoft.com

That makes it basically unusable - builds being that slow even just
occasionally is prohibitive for something like cfbot I think.

I'm a bit surprised though - I'm fairly certain that that wasn't the case when
I tried it locally (with ninja at least).


> > > => I installed most of the goodies, but deferred running the installers until
> > > the image is run, and it starts just as quickly.  It has to run the installer
> > > each time, rather than once when building the image.  That's crummy, but it's
> > > still 1-2 minutes faster than now.  Maybe for some of those, it's not needed to
> > > run an installer at all.  (Like if the installer can be extracted into
> > > c:\programfiles).
> > 
> > I am strongly against that. For one, the amount of traffic that causes with
> > the software providers is substantial. For another, the failure rates of
> > downloading stuff every time are quite high.
> 
> I think you misunderstood.  The installers are *retrieved* when the image is
> built, and zipfiles are extracted.  But for .exes, the installation is deferred
> until the image is run.

Ah, that's better.

I still think it's better to not install things every time and reduce the
install footprint though.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: Cirrus CI (Windows help wanted)
Next
From: Justin Pryzby
Date:
Subject: Re: Mingw task for Cirrus CI