From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#24060: Test (tests/publish.scm) still fails after fix Date: Thu, 28 Jul 2016 23:20:00 +0200 Message-ID: <87y44lv4sf.fsf@gnu.org> References: <87r3ajs7p2.fsf@gmail.com> <87twf94ug1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSsjr-0007j0-5j for bug-guix@gnu.org; Thu, 28 Jul 2016 17:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSsjl-0000Zd-V4 for bug-guix@gnu.org; Thu, 28 Jul 2016 17:21:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSsjl-0000ZX-Ru for bug-guix@gnu.org; Thu, 28 Jul 2016 17:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bSsjl-0000Gv-Of for bug-guix@gnu.org; Thu, 28 Jul 2016 17:21:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87twf94ug1.fsf@gmail.com> (Chris Marusich's message of "Thu, 28 Jul 2016 09:07:58 -0700") 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: Chris Marusich Cc: 24060@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Chris Marusich skribis: > I tried running the tests against commit > 37402ecb4379d7199dd4b3386488261938edc780, but this time the test fails > for a different reason. Does it succeed for you? Yes. Is this new failure systematic, or does it occur randomly? > publishing /home/marusich/guix/test-tmp/store on 0.0.0.0, port 6799 > GET /z8qsg9bmmjzgfi0bbgls1wxd0wmhhm2i.narinfo > guile: ports.c:2527: scm_i_port_iconv_descriptors: Assertion `pti->encodi= ng_mode =3D=3D SCM_PORT_ENCODING_MODE_ICONV' failed. What version of Guile do you use? I wonder if this could be a remnant of . Does commenting out the =E2=80=9C/nar/gzip/*=E2=80=9D test hide the problem? If so, does the patch below help? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline $ git diff HEAD diff --git a/tests/publish.scm b/tests/publish.scm index 4dc8075..fda0b7c 100644 --- a/tests/publish.scm +++ b/tests/publish.scm @@ -172,11 +172,13 @@ References: ~%" "bar" (call-with-temporary-output-file (lambda (temp port) - (let ((nar (http-get-port - (publish-uri - (string-append "/nar/gzip/" (basename %item)))))) - (call-with-gzip-input-port nar - (cut restore-file <> temp))) + (let* ((nar (http-get-port + (publish-uri + (string-append "/nar/gzip/" (basename %item))))) + (data (call-with-gzip-input-port nar + get-bytevector-all)) + (input (open-bytevector-input-port data))) + (restore-file input temp)) (call-with-input-file temp read-string)))) (unless (zlib-available?) --=-=-=--