From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Strobel Subject: bug#28588: Issue with GNU Shepherd make check Date: Tue, 26 Sep 2017 18:59:46 -0400 Message-ID: <1506466786.6173.0.camel@lee-LibreBook> References: <0f522ae23f8afa2defc3abc7d2cfe187@disroot.org> <87mv5h65jo.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-/iYFj4vlXTnCLl2X2HpV" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwyqf-0007GW-VN for bug-guix@gnu.org; Tue, 26 Sep 2017 19:01:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwyqc-0001Fp-Pn for bug-guix@gnu.org; Tue, 26 Sep 2017 19:01:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwyqc-0001Fb-B1 for bug-guix@gnu.org; Tue, 26 Sep 2017 19:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwyqb-0005V7-Q3 for bug-guix@gnu.org; Tue, 26 Sep 2017 19:01:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mv5h65jo.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 28588@debbugs.gnu.org --=-/iYFj4vlXTnCLl2X2HpV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi Ricardo, I figured out why I was getting those errors - I hadn't given ownership of the source folder to the non-privileged user I was using. I gave the folder ownership to that user and re-ran the tests and they ran ok (sorry, my bad). Although, tests/respawn.sh failed (the only one out of 8). I don't know how critical that test is, but I will attach the test-suite.log file, in case that might be of interest. Many thanks, Lee On Tue, 2017-09-26 at 13:52 +0200, Ricardo Wurmus wrote: > leestrobel@disroot.org writes: > > > If I try 'make check' without root privileges, some other errors get > > thrown up. > > What errors are those? > > -- > Ricardo > > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net > --=-/iYFj4vlXTnCLl2X2HpV Content-Disposition: attachment; filename="test-suite.log" Content-Type: text/x-log; name="test-suite.log"; charset="UTF-8" Content-Transfer-Encoding: 7bit ========================================== GNU Shepherd 0.3.2: ./test-suite.log ========================================== # TOTAL: 8 # PASS: 7 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: tests/respawn =================== + shepherd --version ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/service.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/service.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/service.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument shepherd (GNU Shepherd) 0.3.2 Copyright (C) 2016 the Shepherd authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. + herd --version herd (GNU Shepherd) 0.3.2 Copyright (C) 2016 the Shepherd authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. + socket=t-socket-7568 + conf=t-conf-7568 + log=t-log-7568 + stamp=t-stamp-7568 + service1_pid=t-service1-pid-7568 + service2_pid=t-service2-pid-7568 + pid=t-pid-7568 + herd='herd -s t-socket-7568' + trap 'cat t-log-7568 || true ; rm -f t-socket-7568 t-conf-7568 t-stamp-7568 t-log-7568 ; test -f t-pid-7568 && kill `cat t-pid-7568` || true ; rm -f t-pid-7568 ; test -f t-service1-pid-7568 && kill `cat t-service1-pid-7568` || true ; test -f t-service2-pid-7568 && kill `cat t-service2-pid-7568` || true ; rm -f t-service1-pid-7568 t-service2-pid-7568' EXIT + cat + rm -f t-pid-7568 + wait_for_file t-pid-7568 + i=0 + test -f t-pid-7568 + shepherd -I -s t-socket-7568 -c t-conf-7568 -l t-log-7568 --pid=t-pid-7568 + test 0 -lt 20 + sleep 0.3 ++ expr 0 + 1 + i=1 + test -f t-pid-7568 + test 1 -lt 20 + sleep 0.3 ++ expr 1 + 1 + i=2 + test -f t-pid-7568 + test -f t-pid-7568 ++ cat t-pid-7568 + shepherd_pid=7577 + kill -0 7577 + test -S t-socket-7568 + herd -s t-socket-7568 status ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument Started: + test1 + root Stopped: - test2 Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. + herd -s t-socket-7568 status test1 + grep started ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. It is started. + herd -s t-socket-7568 start test2 ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument Service test2 has been started. Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. + grep started ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument ;;; WARNING: loading compiled file /sources/shepherd-0.3.2/modules/shepherd/comm.go failed: ;;; ERROR: In procedure load-thunk-from-file: Invalid argument Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. It is started. + test -f t-service2-pid-7568 + wait_for_file t-service1-pid-7568 + i=0 + test -f t-service1-pid-7568 + test -f t-service1-pid-7568 ++ cat t-service1-pid-7568 + kill -0 7584 ++ cat t-service2-pid-7568 + kill -0 7598 + assert_killed_service_is_respawned t-service1-pid-7568 ++ cat t-service1-pid-7568 + old_pid=7584 + rm t-service1-pid-7568 + kill 7584 + wait_for_file t-service1-pid-7568 + i=0 + test -f t-service1-pid-7568 + test 0 -lt 20 + sleep 0.3 ++ expr 0 + 1 + i=1 + test -f t-service1-pid-7568 + test 1 -lt 20 + sleep 0.3 ++ expr 1 + 1 + i=2 + test -f t-service1-pid-7568 + test 2 -lt 20 + sleep 0.3 ++ expr 2 + 1 + i=3 + test -f t-service1-pid-7568 + test -f t-service1-pid-7568 + test -f t-service1-pid-7568 ++ cat t-service1-pid-7568 + new_pid=7617 + test 7584 -ne 7617 + kill -0 7617 + assert_killed_service_is_respawned t-service2-pid-7568 ++ cat t-service2-pid-7568 + old_pid=7598 + rm t-service2-pid-7568 + kill 7598 + wait_for_file t-service2-pid-7568 + i=0 + test -f t-service2-pid-7568 + test 0 -lt 20 + sleep 0.3 ++ expr 0 + 1 + i=1 + test -f t-service2-pid-7568 + test 1 -lt 20 + sleep 0.3 ++ expr 1 + 1 + i=2 + test -f t-service2-pid-7568 + test 2 -lt 20 + sleep 0.3 ++ expr 2 + 1 + i=3 + test -f t-service2-pid-7568 + test 3 -lt 20 + sleep 0.3 ++ expr 3 + 1 + i=4 + test -f t-service2-pid-7568 + test 4 -lt 20 + sleep 0.3 ++ expr 4 + 1 + i=5 + test -f t-service2-pid-7568 + test 5 -lt 20 + sleep 0.3 ++ expr 5 + 1 + i=6 + test -f t-service2-pid-7568 + test -f t-service2-pid-7568 + test -f t-service2-pid-7568 ++ cat t-service2-pid-7568 + new_pid=7628 + test 7598 -ne 7628 + kill -0 7628 + assert_killed_service_is_respawned t-service1-pid-7568 ++ cat t-service1-pid-7568 + old_pid=7617 + rm t-service1-pid-7568 + kill 7617 + wait_for_file t-service1-pid-7568 + i=0 + test -f t-service1-pid-7568 + test 0 -lt 20 + sleep 0.3 ++ expr 0 + 1 + i=1 + test -f t-service1-pid-7568 + test 1 -lt 20 + sleep 0.3 ++ expr 1 + 1 + i=2 + test -f t-service1-pid-7568 + test 2 -lt 20 + sleep 0.3 ++ expr 2 + 1 + i=3 + test -f t-service1-pid-7568 + test 3 -lt 20 + sleep 0.3 ++ expr 3 + 1 + i=4 + test -f t-service1-pid-7568 + test -f t-service1-pid-7568 + test -f t-service1-pid-7568 ++ cat t-service1-pid-7568 + new_pid=7650 + test 7617 -ne 7650 + kill -0 7650 + assert_killed_service_is_respawned t-service2-pid-7568 ++ cat t-service2-pid-7568 + old_pid=7628 + rm t-service2-pid-7568 + kill 7628 + wait_for_file t-service2-pid-7568 + i=0 + test -f t-service2-pid-7568 + test 0 -lt 20 + sleep 0.3 ++ expr 0 + 1 + i=1 + test -f t-service2-pid-7568 + test 1 -lt 20 + sleep 0.3 ++ expr 1 + 1 + i=2 + test -f t-service2-pid-7568 + test 2 -lt 20 + sleep 0.3 ++ expr 2 + 1 + i=3 + test -f t-service2-pid-7568 + test 3 -lt 20 + sleep 0.3 ++ expr 3 + 1 + i=4 + test -f t-service2-pid-7568 + test 4 -lt 20 + sleep 0.3 ++ expr 4 + 1 + i=5 + test -f t-service2-pid-7568 + test 5 -lt 20 + sleep 0.3 ++ expr 5 + 1 + i=6 + test -f t-service2-pid-7568 + test 6 -lt 20 + sleep 0.3 ++ expr 6 + 1 + i=7 + test -f t-service2-pid-7568 + test 7 -lt 20 + sleep 0.3 ++ expr 7 + 1 + i=8 + test -f t-service2-pid-7568 + test 8 -lt 20 + sleep 0.3 ++ expr 8 + 1 + i=9 + test -f t-service2-pid-7568 + test 9 -lt 20 + sleep 0.3 ++ expr 9 + 1 + i=10 + test -f t-service2-pid-7568 + test 10 -lt 20 + sleep 0.3 ++ expr 10 + 1 + i=11 + test -f t-service2-pid-7568 + test 11 -lt 20 + sleep 0.3 ++ expr 11 + 1 + i=12 + test -f t-service2-pid-7568 + test 12 -lt 20 + sleep 0.3 ++ expr 12 + 1 + i=13 + test -f t-service2-pid-7568 + test 13 -lt 20 + sleep 0.3 ++ expr 13 + 1 + i=14 + test -f t-service2-pid-7568 + test 14 -lt 20 + sleep 0.3 ++ expr 14 + 1 + i=15 + test -f t-service2-pid-7568 + test 15 -lt 20 + sleep 0.3 ++ expr 15 + 1 + i=16 + test -f t-service2-pid-7568 + test 16 -lt 20 + sleep 0.3 ++ expr 16 + 1 + i=17 + test -f t-service2-pid-7568 + test 17 -lt 20 + sleep 0.3 ++ expr 17 + 1 + i=18 + test -f t-service2-pid-7568 + test 18 -lt 20 + sleep 0.3 ++ expr 18 + 1 + i=19 + test -f t-service2-pid-7568 + test 19 -lt 20 + sleep 0.3 ++ expr 19 + 1 + i=20 + test -f t-service2-pid-7568 + test 20 -lt 20 + test -f t-service2-pid-7568 + cat t-log-7568 2017-09-26 18:48:23 Service root has been started. 2017-09-26 18:48:23 Service test1 has been started. 2017-09-26 18:48:25 Service test2 has been started. 2017-09-26 18:48:26 Respawning test1. 2017-09-26 18:48:26 Service test1 has been started. 2017-09-26 18:48:27 Respawning test2. 2017-09-26 18:48:28 Service test2 has been started. 2017-09-26 18:48:29 Respawning test1. 2017-09-26 18:48:29 Service test1 has been started. 2017-09-26 18:48:30 Respawning test2. 2017-09-26 18:48:35 Service test2 could not be started. + rm -f t-socket-7568 t-conf-7568 t-stamp-7568 t-log-7568 + test -f t-pid-7568 ++ cat t-pid-7568 + kill 7577 + rm -f t-pid-7568 + test -f t-service1-pid-7568 ++ cat t-service1-pid-7568 + kill 7650 + test -f t-service2-pid-7568 + true + rm -f t-service1-pid-7568 t-service2-pid-7568 ./tests/respawn.sh: line 6: 7577 Terminated shepherd -I -s "$socket" -c "$conf" -l "$log" --pid="$pid" FAIL tests/respawn.sh (exit status: 1) --=-/iYFj4vlXTnCLl2X2HpV--