From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: [GSoC] Continuous integration tool =?utf-8?Q?=C3=A0?= la Hydra. Date: Sun, 29 May 2016 22:10:16 +0200 Message-ID: <871t4ksk0n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b772Z-00027e-9F for guix-devel@gnu.org; Sun, 29 May 2016 16:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b772U-0002n5-Re for guix-devel@gnu.org; Sun, 29 May 2016 16:10:27 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b772U-0002mu-OJ for guix-devel@gnu.org; Sun, 29 May 2016 16:10:22 -0400 Received: from mek33-4-82-236-46-88.fbx.proxad.net ([82.236.46.88]:53418 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1b772S-0000o7-Qy for guix-devel@gnu.org; Sun, 29 May 2016 16:10:21 -0400 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 Hello Guix! Here is a first update on my GSoC project after the first week. Hydra (https://nixos.org/hydra/) is a Nix-based continuous build system which is used by Guix to compile packages on different platforms and to distribute packages substitutes. The aim of this project is to replace Hydra with a more integrated software written in Guile. Since it would be cumbersome to speak about something without giving it a name, I have decided to call this software =E2=80=9CCuirass=E2=80=9D. While being intended as a general purpose continuous integration tool, the first iteration of Cuirass is focusing only on building Guix packages. The logic of the program is simple since 'cuirass' sits in a loop: - Fetching new changes from Guix master branch - Compiling Guix code - Evaluating packages derivations - Building those derivations The Guix repository is kept in a directory set by 'CUIRASS_CACHEDIR' environment variable to avoid cloning it every time. Even if the algorithm is trivial, the implementation has required some thought in order to allow using guile code fetched from the Guix git repository. Hopefully the solution was already in 'hydra-eval-guile-jobs' script from Hydra, so I have used the same technique. Currently the build phase is failing with the following error: --8<---------------cut here---------------start------------->8--- Starting download of /gnu/store/y17blrd1x80nqik4ss4djbm92a5i5ivl-zsh-5.1.1.= tar.gz >From http://www.zsh.org/pub/zsh-5.1.1.tar.gz... ERROR: In procedure connect*: Network is unreachable Starting download of /gnu/store/y17blrd1x80nqik4ss4djbm92a5i5ivl-zsh-5.1.1.= tar.gz >From http://www.zsh.org/pub/old/zsh-5.1.1.tar.gz... ERROR: In procedure connect*: Network is unreachable Starting download of /gnu/store/y17blrd1x80nqik4ss4djbm92a5i5ivl-zsh-5.1.1.= tar.gz >From http://tarballs.nixos.org/sha256/11shllzhq53fg8ngy3bgbmpf09fn2czifg7hs= b41nxi3410mpvcl... ERROR: download failed "http://tarballs.nixos.org/sha256/11shllzhq53fg8ngy3= bgbmpf09fn2czifg7hsb41nxi3410mpvcl" 404 "Not Found" failed to download "/gnu/store/y17blrd1x80nqik4ss4djbm92a5i5ivl-zsh-5.1.1.t= ar.gz" from ("http://www.zsh.org/pub/zsh-5.1.1.tar.gz" "http://www.zsh.org/= pub/old/zsh-5.1.1.tar.gz") builder for `/gnu/store/srsm569hhqiz56abp90dksknn6mqb03j-zsh-5.1.1.tar.gz.d= rv' failed to produce output path `/gnu/store/y17blrd1x80nqik4ss4djbm92a5i5= ivl-zsh-5.1.1.tar.gz' @ build-failed /gnu/store/srsm569hhqiz56abp90dksknn6mqb03j-zsh-5.1.1.tar.gz= .drv - 1 builder for `/gnu/store/srsm569hhqiz56abp90dksknn6mqb03j-zsh-5.1.1= .tar.gz.drv' failed to produce output path `/gnu/store/y17blrd1x80nqik4ss4d= jbm92a5i5ivl-zsh-5.1.1.tar.gz' cannot build derivation `/gnu/store/ri86p3f5w84r6pxyz54icyb0r00lmqaj-zsh-5.= 1.1.drv': 1 dependencies couldn't be built Backtrace: In ice-9/boot-9.scm: 157: 9 [catch #t # ...] In unknown file: ?: 8 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 7 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 6 [eval # #] In ice-9/boot-9.scm: 63: 5 [call-with-prompt break486 ...] 63: 4 [call-with-prompt continue487 ...] In ice-9/eval.scm: 432: 3 [eval # #] In ice-9/r4rs.scm: 90: 2 [dynamic-wind # ...] In ice-9/boot-9.scm: 702: 1 [map # (# # # # ..= .)] In guix/store.scm: 684: 0 [build # # 0] guix/store.scm:684:15: In procedure build: guix/store.scm:684:15: Throw to key `srfi-34' with args `(#)'. --8<---------------cut here---------------end--------------->8--- which is probably related to the fact that https is not handled. The next step will be to fix this issue, to provide a better abstraction for the 'build jobs', and to find a way to make some test scripts using dummy jobs. For those willing to see more, a Git repository is available here: https://notabug.org/mthl/cuirass Everyone is of course welcome to provide any feedback. Thanks. --=20 Mathieu Lirzin