From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 09:24:11 2022 Received: (at submit) by debbugs.gnu.org; 9 Aug 2022 13:24:11 +0000 Received: from localhost ([127.0.0.1]:42869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLPDO-0006ur-Ai for submit@debbugs.gnu.org; Tue, 09 Aug 2022 09:24:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:45496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLPDL-0006uj-Kv for submit@debbugs.gnu.org; Tue, 09 Aug 2022 09:24:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLPDK-000693-VY for bug-guix@gnu.org; Tue, 09 Aug 2022 09:24:07 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:38388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLPDH-0007bX-Q1 for bug-guix@gnu.org; Tue, 09 Aug 2022 09:24:05 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7A6E81044; Tue, 9 Aug 2022 15:24:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j3J8SxVOQgs9; Tue, 9 Aug 2022 15:23:59 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0:1ce9:67cd:7487:edd5]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 641D3DC2; Tue, 9 Aug 2022 15:23:59 +0200 (CEST) Date: Tue, 9 Aug 2022 15:23:57 +0200 From: Andreas Enge To: bug-guix@gnu.org Subject: guix-jupyter fails a test Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.233.100.1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, guix-jupyter currently fails to build with the error message below. While I noticed it when updating python-sympy, the problem was already present before. Andreas test-name: execute_request location: /tmp/guix-build-guix-jupyter-0.2.2.drv-0/source/tests/kernels.scm= :100 source: + (test-equal + "execute_request" + 42 + (let ((request + (message + (header "execute_request" "luser" "12345") + (scm->json-string + (execute-request->json + (execute-request (code "40 + 2\n"))))))) + (send-message %kernel request) + (let* ((replies + (unfold + (cut > <> 4) + (lambda (_) (read-message %kernel 10000)) + #{1+}# + 0))) + (define (type-predicate type) + (lambda (message) + (string=3D? (message-type message) type))) + (and (every message? (pk 'replies replies)) + (match (filter (type-predicate "status") replies) + ((busy idle) + (and (eq? 'busy + (kernel-status-execution-state + (json->kernel-status (message-content busy= )))) + (eq? 'idle + (kernel-status-execution-state + (json->kernel-status (message-content idle= )))) + (equal? + (message-parent-header busy) + (message-header request)) + (equal? + (message-parent-header idle) + (message-header request))))) + (let ((input (find (type-predicate "execute_input") replies))) + (equal? + (message-parent-header input) + (message-header request))) + (let ((reply (find (type-predicate "execute_reply") replies))) + (equal? + (message-parent-header reply) + (message-header request))) + (let ((result + (find (type-predicate "execute_result") replies))) + (and (equal? + (message-parent-header result) + (message-header request)) + (let* ((content + (json-string->scm (message-content result))) + (data (assoc-ref content "data")) + (text (assoc-ref data "text/plain"))) + (string->number text)))))))) ;;; (replies (#< header: #<
id: "5103841f-98e1ea45964e58d9= ba214dc5_900_3" user: "username" session: "5103841f-98e1ea45964e58d9ba214dc= 5" date: "2022-08-09T13:21:24.436017Z" type: "kernel_info_reply" version: "= 5.3" sender: #f> parent-header: #<
id: "7b136e32ddcbe2e226edffb116a= 4fca9" user: "luser" session: "12345" date: "2022-08-09T13:21:24.298532000"= type: "kernel_info_request" version: "5.0" sender: #f> metadata: "{}" cont= ent: "{\"status\": \"ok\", \"protocol_version\": \"5.3\", \"implementation\= ": \"ipython\", \"implementation_version\": \"8.2.0\", \"language_info\": {= \"name\": \"python\", \"version\": \"3.9.9\", \"mimetype\": \"text/x-python= \", \"codemirror_mode\": {\"name\": \"ipython\", \"version\": 3}, \"pygment= s_lexer\": \"ipython3\", \"nbconvert_exporter\": \"python\", \"file_extensi= on\": \".py\"}, \"banner\": \"Python 3.9.9 (main, Jan 1 1970, 00:00:01) \\= nType 'copyright', 'credits' or 'license' for more information\\nIPython 8.= 2.0 -- An enhanced Interactive Python. Type '?' for help.\\n\", \"help_link= s\": [{\"text\": \"Python Reference\", \"url\": \"https://docs.python.org/3= =2E9\"}, {\"text\": \"IPython Reference\", \"url\": \"https://ipython.org/d= ocumentation.html\"}, {\"text\": \"NumPy Reference\", \"url\": \"https://do= cs.scipy.org/doc/numpy/reference/\"}, {\"text\": \"SciPy Reference\", \"url= \": \"https://docs.scipy.org/doc/scipy/reference/\"}, {\"text\": \"Matplotl= ib Reference\", \"url\": \"https://matplotlib.org/contents.html\"}, {\"text= \": \"SymPy Reference\", \"url\": \"http://docs.sympy.org/latest/index.html= \"}, {\"text\": \"pandas Reference\", \"url\": \"https://pandas.pydata.org/= pandas-docs/stable/\"}]}" buffers: ()> #< header: #<
id: "= 5103841f-98e1ea45964e58d9ba214dc5_900_4" user: "username" session: "5103841= f-98e1ea45964e58d9ba214dc5" date: "2022-08-09T13:21:24.438407Z" type: "stat= us" version: "5.3" sender: #vu8(107 101 114 110 101 108 46 100 53 55 102 10= 2 101 102 53 45 48 98 102 50 45 52 97 57 102 45 97 99 50 52 45 53 53 100 54= 97 97 100 102 53 56 52 97 46 115 116 97 116 117 115)> parent-header: #< id: "7b136e32ddcbe2e226edffb116a4fca9" user: "luser" session: "12345"= date: "2022-08-09T13:21:24.298532000" type: "kernel_info_request" version:= "5.0" sender: #f> metadata: "{}" content: "{\"execution_state\": \"idle\"}= " buffers: ()> #< header: #<
id: "5103841f-98e1ea45964e58d= 9ba214dc5_900_5" user: "username" session: "5103841f-98e1ea45964e58d9ba214d= c5" date: "2022-08-09T13:21:24.470543Z" type: "status" version: "5.3" sende= r: #vu8(107 101 114 110 101 108 46 100 53 55 102 102 101 102 53 45 48 98 10= 2 50 45 52 97 57 102 45 97 99 50 52 45 53 53 100 54 97 97 100 102 53 56 52 = 97 46 115 116 97 116 117 115)> parent-header: #<
id: "b101b0c27f410= 55fc03178fdce86a4f6" user: "luser" session: "12345" date: "2022-08-09T13:21= :24.465152000" type: "execute_request" version: "5.0" sender: #f> metadata:= "{}" content: "{\"execution_state\": \"busy\"}" buffers: ()> #< h= eader: #<
id: "5103841f-98e1ea45964e58d9ba214dc5_900_6" user: "user= name" session: "5103841f-98e1ea45964e58d9ba214dc5" date: "2022-08-09T13:21:= 24.471181Z" type: "execute_input" version: "5.3" sender: #vu8(107 101 114 1= 10 101 108 46 100 53 55 102 102 101 102 53 45 48 98 102 50 45 52 97 57 102 = 45 97 99 50 52 45 53 53 100 54 97 97 100 102 53 56 52 97 46 101 120 101 99 = 117 116 101 95 105 110 112 117 116)> parent-header: #<
id: "b101b0c= 27f41055fc03178fdce86a4f6" user: "luser" session: "12345" date: "2022-08-09= T13:21:24.465152000" type: "execute_request" version: "5.0" sender: #f> met= adata: "{}" content: "{\"code\": \"40 + 2\\n\", \"execution_count\": 1}" bu= ffers: ()> #< header: #<
id: "5103841f-98e1ea45964e58d9ba2= 14dc5_900_7" user: "username" session: "5103841f-98e1ea45964e58d9ba214dc5" = date: "2022-08-09T13:21:24.497586Z" type: "execute_result" version: "5.3" s= ender: #vu8(107 101 114 110 101 108 46 100 53 55 102 102 101 102 53 45 48 9= 8 102 50 45 52 97 57 102 45 97 99 50 52 45 53 53 100 54 97 97 100 102 53 56= 52 97 46 101 120 101 99 117 116 101 95 114 101 115 117 108 116)> parent-he= ader: #<
id: "b101b0c27f41055fc03178fdce86a4f6" user: "luser" sessi= on: "12345" date: "2022-08-09T13:21:24.465152000" type: "execute_request" v= ersion: "5.0" sender: #f> metadata: "{}" content: "{\"data\": {\"text/plain= \": \"42\"}, \"metadata\": {}, \"execution_count\": 1}" buffers: ()>)) expected-value: 42 actual-value: #f result: FAIL error: in phase 'check': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("check" "-j" "4") ex= it-status: 2 term-signal: #f stop-signal: #f> phase `check' failed after 10.7 seconds command "make" "check" "-j" "4" failed with status 2 builder for `/gnu/store/i1r5p6g0k3a98316x3s2yrpx9kwjq9vn-guix-jupyter-0.2.2= =2Edrv' failed with exit code 1