Re: Cirrus CI (Windows help wanted)

From: Andres Freund <andres(at)anarazel(dot)de>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-hackers(at)lists(dot)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Cirrus CI (Windows help wanted)
Date: 2022-08-19 01:23:09
Message-ID: 20220819012309.ssvkmidqmfsms7x3@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)GH13040(at)telsasoft(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-08-19 02:33:56 Re: Mingw task for Cirrus CI
Previous Message Justin Pryzby 2022-08-19 01:17:09 Re: Cirrus CI (Windows help wanted)