all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#64598: Test fail: tests/store-roots.scm
@ 2023-07-13 15:29 wolf
  0 siblings, 0 replies; only message in thread
From: wolf @ 2023-07-13 15:29 UTC (permalink / raw)
  To: 64598


[-- Attachment #1.1: Type: text/plain, Size: 1035 bytes --]

Hi,

I am experiencing a test failure on a Guix build from the git in the
tests/store-roots.scm test file.  Excerpt (whole log file attached):

    test-name: gc-roots, initial
    location: /home/wolf/devel/guix/tests/store-roots.scm:33
    source:
    + (test-equal
    +   "gc-roots, initial"
    +   (list (string-append %state-directory "/profiles"))
    +   (begin
    +     (delete-file-recursively
    +       (string-append %state-directory "/profiles"))
    +     (gc-roots)))
    expected-value: ("/home/wolf/devel/guix/test-tmp/var/15530/profiles")
    actual-value: #f
    actual-error:
    + (system-error
    +   "lstat"
    +   "~A: ~S"
    +   ("No such file or directory"
    +    "/home/wolf/devel/guix/test-tmp/var/15530/profiles")
    +   (2))
    result: FAIL

Commit: 3b524cde7115a6e89a438c1fd230093e6f30442f

Build was done inside guix shell -D guix --pure.

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #1.2: store-roots.log --]
[-- Type: text/plain, Size: 1892 bytes --]

test-name: gc-roots, initial
location: /home/wolf/devel/guix/tests/store-roots.scm:33
source:
+ (test-equal
+   "gc-roots, initial"
+   (list (string-append %state-directory "/profiles"))
+   (begin
+     (delete-file-recursively
+       (string-append %state-directory "/profiles"))
+     (gc-roots)))
expected-value: ("/home/wolf/devel/guix/test-tmp/var/15530/profiles")
actual-value: #f
actual-error:
+ (system-error
+   "lstat"
+   "~A: ~S"
+   ("No such file or directory"
+    "/home/wolf/devel/guix/test-tmp/var/15530/profiles")
+   (2))
result: FAIL

test-name: gc-roots, regular root
location: /home/wolf/devel/guix/tests/store-roots.scm:44
source:
+ (test-assert
+   "gc-roots, regular root"
+   (let* ((item (add-text-to-store
+                  %store
+                  "something"
+                  (random-text)))
+          (root (string-append
+                  %gc-roots-directory
+                  "/test-gc-root")))
+     (symlink item root)
+     (let ((result (member root (gc-roots))))
+       (delete-file root)
+       result)))
actual-value: ("/home/wolf/devel/guix/test-tmp/var/15530/gcroots/test-gc-root")
result: PASS

test-name: gc-roots, indirect root
location: /home/wolf/devel/guix/tests/store-roots.scm:53
source:
+ (test-assert
+   "gc-roots, indirect root"
+   (call-with-temporary-directory
+     (lambda (directory)
+       (let* ((item (add-text-to-store
+                      %store
+                      "something"
+                      (random-text)))
+              (root (string-append directory "/gc-root")))
+         (symlink item root)
+         (add-indirect-root %store root)
+         (let ((result (member root (gc-roots))))
+           (delete-file root)
+           result)))))
actual-value: ("/tmp/guix-directory.YyukEN/gc-root" "/home/wolf/devel/guix/test-tmp/var/15530/profiles")
result: PASS

random seed for tests: 1689185210

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-13 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 15:29 bug#64598: Test fail: tests/store-roots.scm wolf

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.