Dear Guix Gurus, I am trying to compile Guix (commit1955ef93b76e51cab5bed4c90f7eb9df7035355a) from source, on a computerrunning Ubuntu 20.04 with Guix added via a binary installation. I getone test failure, whose test-suite.log is attached. Cheers, Konrad.
Is it reproducible? (You can run “make check TESTS=tests/publish.scm”.) If it is, could you add ‘pk’ calls here and there to see which of thesub-expressions in (and …) returns false? For example, replace: (= 404 (response-code response) by: (pk 'four-oh-four (= 404 (response-code response))) That’ll print a line in the test log with the value of that (= …)expression. TIA,Ludo’.
Toggle quote (15 lines)> I think this is a simple umask issue. Making the test check for just the bits worked for me:>> diff --git a/tests/publish.scm b/tests/publish.scm> index 52101876b5..3e67c435ac 100644> --- a/tests/publish.scm> +++ b/tests/publish.scm> @@ -452,8 +452,8 @@ References: ~%"> (wait-for-file cached)>> ;; Both the narinfo and nar should be world-readable.> - (= #o644 (stat:perms (lstat cached)))> - (= #o644 (stat:perms (lstat nar)))> + (= #o444 (logand #o444 (stat:perms (lstat cached))))> + (= #o444 (logand #o444 (stat:perms (lstat nar))))
Indeed. Pushed as c536f0b217714917988d2f412999d978c2f2f495 on yourbehalf. Thanks! Ludo’.