From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id kGd1JF86JWZIXAAA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Apr 2024 18:10:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kGd1JF86JWZIXAAA62LTzQ (envelope-from ) for ; Sun, 21 Apr 2024 18:10:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713715807; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=SELWgf28ENkJ5tNJ294j62YJPYUSII+OvW24co8YkKs=; b=heX8DGvJPjBhcxtHbWkfrdwOLcm6pi4FwjWmVpsA0RRxmVRDeeY+MwdJikrfdlKBPm3c4J pM7W/lJFh+oAdnBwsJ6N/0mqmUYT9fswqGMk885SWbYLoghgKgkJ2wqsUbctJz4cnfZD7g hB6hrISkApG6wWw6VptN09aolzwFme2TREL7z7+Ky3vvAZGGu7i+06+j4e/mh+fWeeTTyN cNy0QQF0BOTLgyl2ke0C4f50tyGzpXbjBa+sszBiqnN7oVaV9lhRwzAKkPVW6qtco6Yu/G pWOitUa8prE30XObt4rAZTUn31INQsXvxaNv3aN04CMNY9drEb+WNCkAhsT01g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713715807; a=rsa-sha256; cv=none; b=KnHmwlMMtwBU2iSFodbHzfvhH8iuJsmIrSqhD2ek8UuZDHnHO16js7TouEmKfjGj/WGTqh KMw3EswGHKEq4Sn3jYExtnXm32sg5C50kstTNgQZmWpbAH2CsRe3zJ1Y4nwq5cvhc4dTy0 OfOJ6p6Y2JqHWWfyJXwS3EMjdE9p3jAeU7CjbLHazfZMeVCAxEUrkbMsey7KW+82YOPeEt 5ICi1hV4reGG0mphrdFQb3ejIZrkmT7bfYKkYRUxqDD4k5aYu6xD+hdeQUhzrCL6jZt33q u5RZ/HuR+fIhDf2+EQjKz1nxzn4130mwY5P/EJ0Jo6WwnfPIuI5QbL5SJp4VDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5ED2010303 for ; Sun, 21 Apr 2024 18:10:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryZlG-0007vg-T1; Sun, 21 Apr 2024 12:09:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryZlD-0007uY-Et for guix-patches@gnu.org; Sun, 21 Apr 2024 12:09:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryZlC-0004A5-NO for guix-patches@gnu.org; Sun, 21 Apr 2024 12:09:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryZlS-00078G-3M for guix-patches@gnu.org; Sun, 21 Apr 2024 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62202] [PATCH v4 6/6] tests: juliahub: Add unit tests for (guix import juliahub). Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Apr 2024 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: zimoun.toutoune@gmail.com, 62202@debbugs.gnu.org Received: via spool by 62202-submit@debbugs.gnu.org id=B62202.171371574626980 (code B ref 62202); Sun, 21 Apr 2024 16:10:02 +0000 Received: (at 62202) by debbugs.gnu.org; 21 Apr 2024 16:09:06 +0000 Received: from localhost ([127.0.0.1]:43628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryZkX-000716-S2 for submit@debbugs.gnu.org; Sun, 21 Apr 2024 12:09:06 -0400 Received: from 18.mo561.mail-out.ovh.net ([87.98.172.162]:46393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryZkV-00070s-Cu for 62202@debbugs.gnu.org; Sun, 21 Apr 2024 12:09:04 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.9.101]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4VMtbf1Vj1z1Rgv for <62202@debbugs.gnu.org>; Sun, 21 Apr 2024 16:08:46 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-nccl2 (unknown [10.110.96.192]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id BA93A1FD21; Sun, 21 Apr 2024 16:08:45 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-6684bf9d7b-nccl2 with ESMTPSA id KB/HKQ06JWZ8LwEARichPQ (envelope-from ); Sun, 21 Apr 2024 16:08:45 +0000 X-OVh-ClientIp: 81.67.146.208 In-Reply-To: <87mspsjrt1.fsf@gnu.org> References: <20240203230807.25751-1-ngraves@ngraves.fr> <20240203230807.25751-6-ngraves@ngraves.fr> <87plv8bye8.fsf@gnu.org> <87bk6jdmdk.fsf@ngraves.fr> <874jc8np51.fsf@ngraves.fr> <875xwhmerp.fsf@gnu.org> <874jc1nmve.fsf@ngraves.fr> <87mspsjrt1.fsf@gnu.org> Date: Sun, 21 Apr 2024 18:08:44 +0200 Message-ID: <87mspmsnoz.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 4183281107603874527 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedguddttdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepgeeugfdvfedvueelgeejiedugeefieevhfekheethefguefgleetfeeutdeiteevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiedvvddtvdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeiuddpmhhouggvpehsmhhtphhouhht X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.88 X-Spam-Score: -6.88 X-Migadu-Queue-Id: 5ED2010303 X-Migadu-Scanner: mx12.migadu.com X-TUID: ECWjZABEvR58 On 2024-04-17 10:51, Ludovic Court=C3=A8s wrote: > Nicolas Graves skribis: > >> libgit2, which is behind guile-git, expects this exact header or fails, >> with no additional charset field. The sanitize-response function in the >> guile web server implementation on its side ensures that a charset field >> is added no matter what. >> >> So indeed we can set >> >> (content-type . (application/x-git-upload-pack-advertisement)) >>=20=20=20=20=20 >> but in reality guile-git // libgit2 will read >> >> (content-type . (application/x-git-upload-pack-advertisement >> (charset . "utf-8")) >>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> and will fail in this case.=20 > > Oh I see, I had misunderstood that. > > Note that =E2=80=98sanitize-response=E2=80=99 does not add a =E2=80=98cha= rset=E2=80=99 header when BODY > is #f or a bytevector. Maybe we could do that? I've just taken a look at your suggestion. That's possible although not elegant. I stumbled accross a bigger issue however: the dumb protocol is implemented for git but not for libgit2, thus is not present in guile-git. https://github.com/libgit2/libgit2/issues/6609 The smart protocol is however way too complex / unadapted for such a light use in tests, and requires more that a simple http server easily configured. That's sad, such a light implementation would've been quite convenient in my juliahub case.=20 > > Thanks, > Ludo=E2=80=99. > > > --=20 Best regards, Nicolas Graves