From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: master: FAIL: tests/store.scm Date: Sun, 16 Mar 2014 22:16:18 +0100 Message-ID: <87k3btsv31.fsf@gnu.org> References: <87d2i2dwnk.fsf@karetnikov.org> <87r46ilyp5.fsf@yeeloong.lan> <87ha7dq42k.fsf@gnu.org> <87vbvsnwv8.fsf_-_@karetnikov.org> <87txbcuveq.fsf@gnu.org> <874n351335.fsf@karetnikov.org> <87a9cxngh0.fsf@gnu.org> <87a9cqzj14.fsf@karetnikov.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]:40281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPIPx-0002hW-RR for guix-devel@gnu.org; Sun, 16 Mar 2014 17:16:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPIPt-0004yP-85 for guix-devel@gnu.org; Sun, 16 Mar 2014 17:16:25 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:37293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPIPs-0004yA-Pj for guix-devel@gnu.org; Sun, 16 Mar 2014 17:16:21 -0400 In-Reply-To: <87a9cqzj14.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sun, 16 Mar 2014 11:42:31 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >>> Which log files would you like to see? > >> The SRFI-64 $top_builddir/*.log files, and $top_builddir/test-suite.log. > > $ git rev-parse HEAD > 6f58d582432fe46c163f61ddf8f653584f4f7be8 > > FAIL: tests/store.scm > FAIL: tests/guix-build.sh > FAIL: tests/guix-register.sh > Test begin: > test-name: "log-file, derivation" > source-file: "tests/store.scm" > source-line: 206 > source-form: (test-assert "log-file, derivation" (let* ((b (add-text-to= -store %store "build" "echo $foo > $out" (quote ()))) (s (add-to-store %sto= re "bash" #t "sha256" (search-bootstrap-binary "bash" (%current-system)))) = (d (derivation %store "the-thing" s (quasiquote ("-e" (unquote b))) #:env-v= ars (quasiquote (("foo" unquote (random-text)))) #:inputs (quasiquote (((un= quote b)) ((unquote s))))))) (and (build-derivations %store (list d)) (file= -exists? (pk (log-file %store (derivation-file-name d))))))) > Test end: > result-kind: fail > actual-value: #f > actual-error: (wrong-type-arg "stat" "Wrong type argument in position ~= A (expecting ~A): ~S" (1 "open file port" #f) (#f)) > Test begin: > test-name: "log-file, output file name" > source-file: "tests/store.scm" > source-line: 218 > source-form: (test-assert "log-file, output file name" (let* ((b (add-t= ext-to-store %store "build" "echo $foo > $out" (quote ()))) (s (add-to-stor= e %store "bash" #t "sha256" (search-bootstrap-binary "bash" (%current-syste= m)))) (d (derivation %store "the-thing" s (quasiquote ("-e" (unquote b))) #= :env-vars (quasiquote (("foo" unquote (random-text)))) #:inputs (quasiquote= (((unquote b)) ((unquote s)))))) (o (derivation->output-path d))) (and (bu= ild-derivations %store (list d)) (file-exists? (pk (log-file %store o))) (s= tring=3D? (log-file %store (derivation-file-name d)) (log-file %store o))))) > Test end: > result-kind: fail > actual-value: #f > actual-error: (wrong-type-arg "stat" "Wrong type argument in position ~= A (expecting ~A): ~S" (1 "open file port" #f) (#f)) These two failures are because the =E2=80=98test-tmp=E2=80=99 directory pre= dates the nix =E2=86=92 guix change in commit f5768afa333bbc8167ef2e33db44c9bb64bef0b= e. An annoyance, but that should be fixed by either =E2=80=9Crm -rf test-tmp && make check=E2=80=9D, or =E2=80=9Ccd test-tmp/var/log && mv nix guix=E2=80= =9D. Can you confirm? [...] > ++ guix build --log-file /home/tester/guix-MASTER/test-tmp/store/hsmxb8q6= dybsb7qm7g4hr28l5kngvly6-guile-bootstrap-2.0.drv > accepted connection from pid 23039, uid 1000 > guix build: error: no build log for '/home/tester/guix-MASTER/test-tmp/st= ore/hsmxb8q6dybsb7qm7g4hr28l5kngvly6-guile-bootstrap-2.0.drv' > + log=3D This is the same problem (tests/guix-build.sh). > + type -P sqlite3 > /nix/var/nix/profiles/default/guix-profile/bin/sqlite3 > + echo 'select * from ValidPaths where path=3D"/gnu/store/r5a3g247wzcvyap= 67jhk2f1hbhsqajw0-guile-bootstrap-2.0";' > + sqlite3 /home/tester/guix-MASTER/t-register-24008/nix/var/nix/db/db.sql= ite > Error: near line 1: database is locked > + chmod -R +w t-register-24008 > + rm -rf t-register-24008 t-register-closure-24008 > + kill 24053 I don=E2=80=99t know what this means. Could this be a version mismatch between the =E2=80=98sqlite3=E2=80=99 comm= and above and libsqlite guix-register is linked against? Thanks for the report! Ludo=E2=80=99.