Re: More efficient build farm animal wakeup?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: More efficient build farm animal wakeup?
Date: 2022-11-19 13:44:26
Message-ID: a362236f-5b50-d8e4-7dda-f57bfa8fb2a1@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2022-11-18 Fr 22:12, Thomas Munro wrote:
> Hi,
>
> Is there a way to find out about new git commits that is more
> efficient and timely than running N git fetches or whatever every
> minute in a cron job? Maybe some kind of long polling where you send
> an HTTP request that says "I think the tips of branches x, y, z are at
> 111, 222, 333" and the server responds when that ceases to be true?

It might not suit your use case, but one of the things I do to reduce
fetch load is to run a local mirror which runs

   git fetch -q --prune

every 5 minutes. It also runs a git daemon, and several of my animals
point at that.

If there's a better git API I'll be happy to try to use it.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2022-11-19 13:51:28 Re: test/modules/test_oat_hooks vs. debug_discard_caches=1
Previous Message Peter Eisentraut 2022-11-19 12:51:35 Re: Fix order of checking ICU options in initdb and create database