From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: Cuirass and duplicate derivations Date: Mon, 09 Jan 2017 00:20:42 +0100 Message-ID: <87tw99yw8l.fsf@gnu.org> References: <87r35o8x0h.fsf@gnu.org> <87shq35tue.fsf@gnu.org> <87y3zv4c4i.fsf@gnu.org> <87fuljj5ku.fsf@gnu.org> <87tw9mzq4v.fsf@gnu.org> <87eg0l9m38.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]:39569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMlc-0004Io-HR for guix-devel@gnu.org; Sun, 08 Jan 2017 18:20:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQMlb-0000R8-C5 for guix-devel@gnu.org; Sun, 08 Jan 2017 18:20:48 -0500 In-Reply-To: <87eg0l9m38.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Mon, 02 Jan 2017 22:40:59 +0100") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Cuirass is almost up and running on the new machine! :-) Great work! > The last problem I experienced is this: > > evaluate 'gfortran-4.9.4.x86_64-linux': 0.136 seconds > evaluate 'gfortran-4.9.4.x86_64-linux': 0.000 seconds > Backtrace: > In ice-9/boot-9.scm: > 160: 12 [catch #t # ...] > In unknown file: > ?: 11 [apply-smob/1 #] > In ice-9/boot-9.scm: > 66: 10 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 9 [eval # #] > In ice-9/r4rs.scm: > 90: 8 [dynamic-wind # .= ..] > In ice-9/eval.scm: > 481: 7 [lp (# #) ("/var/run/cuirass/cuirass.db" #f)] > 481: 6 [lp (#) (#f)] > 432: 5 [eval # #] > 387: 4 [eval # #] > In ice-9/boot-9.scm: > 705: 3 [map # #] > In ice-9/eval.scm: > 432: 2 [eval # #] > In src/cuirass/database.scm: > 54: 1 [sqlite-exec # ...] > In ice-9/eval.scm: > 432: 0 [eval # #] > > ice-9/eval.scm:432:17: In procedure eval: > ice-9/eval.scm:432:17: Throw to key `sqlite-error' with args `(#f 1555 "U= NIQUE constraint failed: Derivations.derivation, Derivations.evaluation")'. > > =E2=80=A6 which commit 7355634db3ccf0d86f8e34c4aea37392c1a0ab0a fixes. > > Then there was another one: > > evaluate 'wine-1.9.24.i686-linux': 0.205 seconds > Backtrace: > In ice-9/boot-9.scm: > 160: 12 [catch #t # ...] > In unknown file: > ?: 11 [apply-smob/1 #] > In ice-9/boot-9.scm: > 66: 10 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 9 [eval # #] > In ice-9/r4rs.scm: > 90: 8 [dynamic-wind # .= ..] > In ice-9/eval.scm: > 481: 7 [lp (# #) ("/var/run/cuirass/cuirass.db" #f)] > 481: 6 [lp (#) (#f)] > 432: 5 [eval # #] > 387: 4 [eval # #] > In ice-9/boot-9.scm: > 703: 3 [map # #] > In ice-9/eval.scm: > 432: 2 [eval # #] > In src/cuirass/database.scm: > 54: 1 [sqlite-exec # ...] > In ice-9/eval.scm: > 432: 0 [eval # #] > > ice-9/eval.scm:432:17: In procedure eval: > ice-9/eval.scm:432:17: Throw to key `sqlite-error' with args `(#f 1555 "U= NIQUE constraint failed: Derivations.derivation, Derivations.evaluation")'. > > This is because Wine is always built for i686-linux, even on x86_64, > hence the same .drv. So I hacked my way to ignore Wine. > > But then =E2=80=98cargo-bootstrap=E2=80=99 showed the same problem. > > Hence this message. :-) > > What change would you suggest to solve this problem? It would be best > if Cuirass allowed several jobs building the same derivations (the key > could be an autoincrement counter instead of the (drv,eval) pair maybe?) Seems reasonable to me. I will do that. Thanks. --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37