guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Resurrect hydra


From: Jan Nieuwenhuizen
Subject: Re: [PATCH] gnu: Resurrect hydra
Date: Tue, 13 Sep 2016 18:59:36 +0200

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 
'address@hidden' --password root --role admin
fi
    
#    $hydra/hydra-init
#    $hydra/hydra-create-user root --full-name 'root' --email-address 
'address@hidden' --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---





reply via email to

[Prev in Thread] Current Thread [Next in Thread]