From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: using Cuirass to track a guix packages' git Date: Fri, 23 Sep 2016 19:59:17 +0200 Message-ID: <87mviyxzt6.fsf@gnu.org> References: <87fup0rqwz.fsf@gnu.org> <8760pn7ftf.fsf@gnu.org> <871t0adalz.fsf@gnu.org> <87r38ay6xx.fsf@gnu.org> <87shsqbp6w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnUl2-0006XK-Ds for guix-devel@gnu.org; Fri, 23 Sep 2016 13:59:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnUl0-00040e-Ja for guix-devel@gnu.org; Fri, 23 Sep 2016 13:59:31 -0400 In-Reply-To: <87shsqbp6w.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Fri, 23 Sep 2016 17:39:35 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org Jan Nieuwenhuizen writes: > Mathieu Lirzin writes: > >>> Thanks! I'd really love to get a working Guix-based ci system and >>> Cuirass is already very close to the minimal set that I need. I have >>> a working patch to add building of VMs (a la hydra/guix-system.scm) but >>> it needs a bit of cleanup work. >> >> Nice! > > I figure we experiment and maintain this in Cuirass and move into Guix > again later. This is a good strategy I think. >> There is a basic Guile Web server which is runnable via >> 'run-cuirass-server' procedure. There is only one JSON ressource which >> is accessible from "/specifications" and "/jobsets" routes. To use the >> server you have to parameterize the '%package-database' parameter to >> point to an SQLite file with specifications in it. > > Yes, I think I found this, I can see json in my browser window...but > that's not really a web view yet (no criticism, I'm just wondering...) Sorry I misread what you meant by web view. I don't have much experience in Web programming, I guess an "easy" way (for a Scheme programmer at least) to achieve something quickly would be to generate static HTML from SXML and procedures that convert Cuirass data structures to SXML. >> WHAT NEEDS TO be done is to provide more JSON ressources (inspired by >> Hydra API) by translating request to SQL queries. A command line >> interface would be a nice addition too. > > If this is inspired by Hydra does it mean you plan to somehow use (parts > of?) the Hydra web engine to present views using this json? The idea is to reuse Emacs Hydra interface in Guix if possible. :) -- Mathieu Lirzin