unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 46402@debbugs.gnu.org
Subject: bug#46402: Cuirass rebuilds the same packae multiple times
Date: Wed, 10 Feb 2021 12:24:09 +0100	[thread overview]
Message-ID: <87o8gs2mjq.fsf@gnu.org> (raw)
In-Reply-To: <87zh0c8ajo.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 10 Feb 2021 11:46:51 +0100")


Hey Ludo,

Thanks for sharing your thoughts, it's always useful :).

> Seems to me that ‘BuildSteps’ is an orthogonal concern that has little
> to do with Cuirass’ job and with its data model.  In Hydra I saw that as
> a (necessary) kludge.

I'm not sure to follow you here. Cuirass and Hydra have an almost
identical database schema and are now working very similarly from what I
understand.

In Hydra, a JobSet (Specification in Cuirass) has several Builds. Each
Build can be broken in several BuildSteps, corresponding to transitive
derivation inputs that must be built.

Hydra manages to get those BuildSteps to be built in a topological
order, in the same way as the Guix Build Coordinator.

This makes me think that we could implement this exact same mechanism in
Cuirass but I'm maybe missing something.

> If Cuirass would instead delegate derivation build requests to a
> Coordinator/daemon-like thing, it wouldn’t have to worry about those
> details.  That would better separate concerns.

I think that having Cuirass delegating its builds to the Coordinator is
not the right move. That would mean doubling the size of the CI code
base, doubling the number of databases, for a feature that we could
implement in Cuirass, just by making it catch-up on Hydra.

Thanks,

Mathieu




  reply	other threads:[~2021-02-10 11:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09 13:19 bug#46402: Cuirass rebuilds the same packae multiple times Julien Lepiller
2021-02-09 15:42 ` Mathieu Othacehe
2021-02-10 10:46   ` Ludovic Courtès
2021-02-10 11:24     ` Mathieu Othacehe [this message]
2021-02-17 14:22       ` Ludovic Courtès
2021-05-28 12:51 ` Mathieu Othacehe
2021-05-28 18:40   ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8gs2mjq.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=46402@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).