unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: guix-devel@gnu.org
Subject: Re: master: FAIL: tests/store.scm
Date: Sun, 16 Mar 2014 22:16:18 +0100	[thread overview]
Message-ID: <87k3btsv31.fsf@gnu.org> (raw)
In-Reply-To: <87a9cqzj14.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sun, 16 Mar 2014 11:42:31 +0400")

Nikita Karetnikov <nikita@karetnikov.org> 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 %store "bash" #t "sha256" (search-bootstrap-binary "bash" (%current-system)))) (d (derivation %store "the-thing" s (quasiquote ("-e" (unquote b))) #:env-vars (quasiquote (("foo" unquote (random-text)))) #:inputs (quasiquote (((unquote 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-text-to-store %store "build" "echo $foo > $out" (quote ()))) (s (add-to-store %store "bash" #t "sha256" (search-bootstrap-binary "bash" (%current-system)))) (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 (build-derivations %store (list d)) (file-exists? (pk (log-file %store o))) (string=? (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 ‘test-tmp’ directory predates the
nix → guix change in commit f5768afa333bbc8167ef2e33db44c9bb64bef0be.

An annoyance, but that should be fixed by either “rm -rf test-tmp &&
make check”, or “cd test-tmp/var/log && mv nix guix”.

Can you confirm?

[...]

> ++ guix build --log-file /home/tester/guix-MASTER/test-tmp/store/hsmxb8q6dybsb7qm7g4hr28l5kngvly6-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/store/hsmxb8q6dybsb7qm7g4hr28l5kngvly6-guile-bootstrap-2.0.drv'
> + log=

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="/gnu/store/r5a3g247wzcvyap67jhk2f1hbhsqajw0-guile-bootstrap-2.0";'
> + sqlite3 /home/tester/guix-MASTER/t-register-24008/nix/var/nix/db/db.sqlite
> 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’t know what this means.

Could this be a version mismatch between the ‘sqlite3’ command above and
libsqlite guix-register is linked against?

Thanks for the report!

Ludo’.

  reply	other threads:[~2014-03-16 21:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 11:35 master: the tests take ages Nikita Karetnikov
2014-03-04 16:23 ` Mark H Weaver
2014-03-04 17:14   ` Ludovic Courtès
2014-03-05 21:44     ` master: FAIL: tests/store.scm (was: master: the tests take ages) Nikita Karetnikov
2014-03-05 22:34       ` master: FAIL: tests/store.scm Ludovic Courtès
2014-03-11  9:45         ` Nikita Karetnikov
2014-03-11 11:04           ` Ludovic Courtès
2014-03-16  7:42             ` Nikita Karetnikov
2014-03-16 21:16               ` Ludovic Courtès [this message]
2014-03-17 19:54                 ` Nikita Karetnikov
2014-03-17 21:08                   ` Ludovic Courtès
2014-03-17 22:32                   ` Ludovic Courtès

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=87k3btsv31.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=nikita@karetnikov.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).