unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@infotropique.org>
To: Christopher Baines <mail@cbaines.net>
Cc: guix-devel@gnu.org
Subject: Re: Building things other than Guix with Cuirass
Date: Tue, 19 Sep 2017 11:55:15 +0000	[thread overview]
Message-ID: <20170919115515.udthnvkwpse7ujx6@abyayala> (raw)
In-Reply-To: <20170918215906.2c32b61d@cbaines.net>

[-- Attachment #1: Type: text/plain, Size: 3695 bytes --]

Christopher Baines transcribed 3.8K bytes:
> Hey,
> 
> At the GHM, one of the things I looked in to was cuirass. Specifically,
> I tried to see if I could build a collection of guix packages that sit
> outside of Guix.

I would be very much interested in exploring the possibility
(at the very least testing/experimenting with) to use cuirass to build
the "gnunet" and "gnunet-doc" guix definitions which reside inside the
gnunet repository (and more to come, in other GNUnet related repos
with the perspective on integrating it into our (GNUnet) infrastructure
once cuirass proves to be mature enough. Ultimately to evaluate if (or
when) it could replace buildbot (and if not, what needs to be improved
in cuirass to get to the point where it could replace it).

That is my "ideas for cuirass" (you can ask me to split up this horrible
long sentence if it's a problem.)

> From trying to use cuirass for a few hours, I began thinking that it
> might be beneficial to change the interface between cuirass and the
> jobs.
> 
> The interface provided by cuirass to fetch jobs through consists of
> specifying a Guile load path, file, procedure, and arguments to that
> procedure.
> 
> Currently, something like this is used to describe how to get some
> jobs.
> 
>   `((#:name . "hello")
>     (#:url . "git://git.savannah.gnu.org/guix.git")
>     (#:branch . "master")
>     (#:no-compile? . #t)
>     (#:load-path . ".")
>     (#:proc . cuirass-jobs)
>     (#:file . "/tmp/drv-file.scm")
>     (#:arguments (subset . "hello")))
> 
> As an example, with minor changes to the way arguments are handled, I
> think this could also be represented as a invocation of guile.
> 
>   `((#:name . "hello")
>     (#:url . "git://git.savannah.gnu.org/guix.git")
>     (#:branch . "master")
>     (#:no-compile? . #t)
>     (#:command "guile -L. -s /tmp/drv-file.scm -e cuirass-jobs -- --subset=hello"))
> 
> However, if you've gone to the trouble to have a Guile program, it
> might be easier to make it executable directly.
> 
>   `((#:name . "hello")
>     (#:url . "git://git.savannah.gnu.org/guix.git")
>     (#:branch . "master")
>     (#:no-compile? . #t)
>     (#:command "/tmp/drv-file.scm --subset=hello"))
> 
> It might also be possible to remove the hardcoded compilation process
> and just use the single command. However, it might be better to be able
> to specify a separate compilation command or list of commands.
> 
> Back to the jobs though, Cuirass already executes a separate command to
> load jobs, but this is hardcoded to the evaluate command. I think
> changing the interface to allow directly specifying a command would
> open up new possibilities for cuirass, and at the same time simplify
> the implementation and interface.
> 
> I've tried out using this approach for building a collection of guix
> packages that sit outside of guix, and it seems to work well. I copied
> one of the examples, and wrote a guile program that when run prints out
> the jobs. Cuirass then runs a bash script that sets up the correct
> environment with the guix environment command, and then invokes the
> guile script to generate the jobs.
> 
> I'm half way through writing a proper patch for this, but I haven't
> moved all the functionality in the evaluate command in to cuirass yet.
> 
> Does anyone have any opinions or ideas about this part of cuirass, or
> building things other than the packages in the Guix repository with it?
> 
> Thanks,
> 
> Chris



-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://krosos.org/dist/keys/
https://www.infotropique.org https://www.krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2017-09-19 11:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 20:59 Building things other than Guix with Cuirass Christopher Baines
2017-09-19  8:24 ` Efraim Flashner
2017-09-20  5:53   ` Christopher Baines
2017-09-20  6:20     ` Jan Nieuwenhuizen
2017-10-08 13:02       ` Christopher Baines
2017-09-19 11:55 ` ng0 [this message]

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=20170919115515.udthnvkwpse7ujx6@abyayala \
    --to=ng0@infotropique.org \
    --cc=guix-devel@gnu.org \
    --cc=mail@cbaines.net \
    /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).