Re: Cirrus CI (Windows help wanted)

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
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:17:09
Message-ID: 20220819011709.GS26426@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

There's a patch to use depend mode, which would make cache misses less
expensive.

> > => 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.

--
Justin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-08-19 01:23:09 Re: Cirrus CI (Windows help wanted)
Previous Message Andres Freund 2022-08-19 01:09:39 Re: Cirrus CI (Windows help wanted)