From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: [PATCH] gnu: Resurrect hydra Date: Tue, 13 Sep 2016 18:59:36 +0200 Message-ID: <20160913165941.2834-1-janneke@gnu.org> References: <87eg4o9pl9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjr3p-00020f-Vl for guix-devel@gnu.org; Tue, 13 Sep 2016 12:59:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjr3k-00064f-VI for guix-devel@gnu.org; Tue, 13 Sep 2016 12:59:53 -0400 In-Reply-To: <87eg4o9pl9.fsf@gnu.org> 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: guix-devel@gnu.org Hi! > I should mention that I didn’t maintain the Guile part in Hydra (which > is really just the ‘hydra-eval-guile-jobs.in’ script), so the latest > Hydra won’t work with Guix. :-/ Ah..I was wondering about nix and how it all worked together. That makes more sense now. > I think it’s “just a matter” of updating this script to produce JSON instead > of XML, but that has to be done (and I thought it’d be more fruitful to > invest in Cuirass). Sure. I didn't upgrade hydra to latest git, as that depends on an unreleased version of nix also; did not want to go there. > ISTR that other changes were made that tie Hydra to Nix more closely, > and I’m not sure what the implications are. I understand. I struggled quite a while reading doc/dev-notes.txt and getting sqlite up and running, fixing database errors until I finaly found that file is terribly out of date and in 2014 sqlite support was dropped, apparently. > > Two perl packages did not build anymore (failing tests), so I disabled > > the tests. Hydra also has two new dependencies, which I added. > Woow, congrats on getting this far! :-) I need a sensible ci server that works with guix, and from the outside it looks like hydra is pretty good. > Could you split it into separate packages: one for each new package, one > for each individual package change? Done. Find the script below that I used to test hydra with postgres. Greetings, Jan --8<---------------cut here---------------start------------->8--- #! /bin/sh set -x hydra=/gnu/store/zcrnzxp44b6k1fcanpxgv6mzvh5wj3w9-hydra-20151030.1ff48da/bin data=/tmp/hydra export HYDRA_DBI="dbi:Pg:dbname=hydra;host=localhost;user=hydra;" export HYDRA_DATA=$data mkdir -p $data if false; then createuser -S -D -R hydra postgres -c "psql --command \"alter user hydra with password 'hydra'\" postgres" dropdb hydra hydra createdb -O hydra hydra $hydra/hydra-init $hydra/hydra-create-user root --full-name 'root' --email-address 'root@localhost' --password root --role admin fi # $hydra/hydra-init # $hydra/hydra-create-user root --full-name 'root' --email-address 'root@localhost' --password root --role admin #$hydra/hydra-server --debug & $hydra/hydra-server & $hydra/hydra-queue-runner & $hydra/hydra-evaluator & jobs -p echo "#!/bin/sh" > kill-hydra.sh echo -n "kill " >> kill-hydra.sh jobs -p | tr '\n' ' ' >> kill-hydra.sh echo >> kill-hydra.sh chmod +x kill-hydra.sh --8<---------------cut here---------------end--------------->8---