From: Jan Nieuwenhuizen <janneke@gnu.org>
To: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Resurrect hydra
Date: Tue, 13 Sep 2016 18:59:36 +0200 [thread overview]
Message-ID: <20160913165941.2834-1-janneke@gnu.org> (raw)
In-Reply-To: <87eg4o9pl9.fsf@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---
next prev parent reply other threads:[~2016-09-13 16:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 21:09 [PATCH] gnu: Resurrect hydra Jan Nieuwenhuizen
2016-09-13 8:22 ` Ludovic Courtès
2016-09-13 16:59 ` Jan Nieuwenhuizen [this message]
2016-09-13 16:59 ` [PATCH 1/5] gnu: perl-gd: disable tests Jan Nieuwenhuizen
2016-09-13 16:59 ` [PATCH 2/5] gnu: perl-image-magick: " Jan Nieuwenhuizen
2016-09-13 16:59 ` [PATCH 3/5] gnu: Add perl-net-statsd Jan Nieuwenhuizen
2016-09-13 16:59 ` [PATCH 4/5] gnu: Add libpqxx Jan Nieuwenhuizen
2016-09-13 16:59 ` [PATCH 5/5] gnu: Resurrect hydra Jan Nieuwenhuizen
2016-09-14 19:44 ` Leo Famulari
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=20160913165941.2834-1-janneke@gnu.org \
--to=janneke@gnu.org \
--cc=guix-devel@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).