From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id CAanCfusHmZ0/gAA62LTzQ:P1 (envelope-from ) for ; Tue, 16 Apr 2024 18:53:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CAanCfusHmZ0/gAA62LTzQ (envelope-from ) for ; Tue, 16 Apr 2024 18:53:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=UyoZVyd+; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713286395; a=rsa-sha256; cv=none; b=rQ9jq5rHhF5OM9pvV5t92WBx9+p4SYw3wZRsvPBEUR8zo+I/v2Q3yEyL97+ckjlIYSX+c2 U6RQ+bmZNNB/L6VTjQpBGjj9/8CS5y+/GmTEyNIeRN76Xx64Zfu03x7VuwlJVPc0a3BcJ8 y/iuUJOjfe09gRe0CAu3MmXx9dWYzQK+HEP8aAUGZ7kVTjWc/tXcetMe687VlEI/wxf6Jz kfg5kgqQG7icW95Y+mal0t8p50qbYKMnDYaM3N8F+dh0DvVQvsT9Hp44ddNHYMdqTBk9fR sOP4CXi8hnWffLGZLa9NA6kul+0fNiHTNvrxNOZwdv4Ac5yF7n6p7OaioxUKZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=UyoZVyd+; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713286395; h=from:from:sender:sender: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:dkim-signature; bh=bHIbildjYAX3BJFZTjF23rO6Bm7yg16dvFTKnMI88Ig=; b=sjB21n/sZuo1JCTMEZzx3No2OQaRMyzGRx6obFz1LPv914lCqhneuNIp4q00A/kRRPMCwc +AJyemsCM/enUYEfX6XCZlpK5bvYCWK0YZEJkZ5ZGORMHau7lbRJaM6JAPlykmN7HAnRt6 9vEaZ+uSiaCvVofhvu6hQXwFVv8/g+2if7Xa+M/QzqQ1Qc2hwWfiK9ficm55ycOl/W20mb qWj+XeuyEKOu7liMusv23ACOgaxeGc+eqI9RWynzaQIJ9Mc2B8gb3nPemM0P94+9HUy3BE i0ciqDr4xMqB+0kgrh0On0KZArkW0O+SZbrN8LDV2iCiehEexpN1XIPIQU9QBw== 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 1EB462655A for ; Tue, 16 Apr 2024 18:53:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwm3C-0000ds-KU; Tue, 16 Apr 2024 12:52:54 -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 1rwm39-0000dM-78 for guix-patches@gnu.org; Tue, 16 Apr 2024 12:52:51 -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 1rwm38-0000Eh-Ni for guix-patches@gnu.org; Tue, 16 Apr 2024 12:52:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwm3L-0000cH-30 for guix-patches@gnu.org; Tue, 16 Apr 2024 12:53:03 -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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Apr 2024 16:53:03 +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: Nicolas Graves Cc: zimoun.toutoune@gmail.com, 62202@debbugs.gnu.org Received: via spool by 62202-submit@debbugs.gnu.org id=B62202.17132863562212 (code B ref 62202); Tue, 16 Apr 2024 16:53:03 +0000 Received: (at 62202) by debbugs.gnu.org; 16 Apr 2024 16:52:36 +0000 Received: from localhost ([127.0.0.1]:44936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwm2t-0000ZQ-0I for submit@debbugs.gnu.org; Tue, 16 Apr 2024 12:52:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwm2q-0000YK-Ry for 62202@debbugs.gnu.org; Tue, 16 Apr 2024 12:52:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwm2W-00008D-UI; Tue, 16 Apr 2024 12:52:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=bHIbildjYAX3BJFZTjF23rO6Bm7yg16dvFTKnMI88Ig=; b=UyoZVyd+iDsCmlz5juQm OKmqNCj0udW0mK44Cwxs2/+rhBr4oiZhYiXE0Q4dMXMYNuJ9v/hn39CjwDi5UzDEJKBIUkjOq+ywa TENLUZZi486nli9W0ESM3mUKAlXba3L4XPbY217JQgswc1iJIGiFB1yMExBIIhc7R/L4N+eh96zbQ JuOUXPrfc80mmYDnQBIpwaap1Xp0BhlAXNrBbVVLkHY52JixKAUXpLGBtXAiAGjNSj3+U8teHAelH gE1XC6i4frFDNXLg+al8XKWuITU0m0vNa7hLIcQ4m9KHQYzdh9G/ZzcCncaHn6Q4kYPQTB0PU0rMx GFnX0nOjzippQg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <874jc8np51.fsf@ngraves.fr> (Nicolas Graves's message of "Thu, 11 Apr 2024 12:56:58 +0200") 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 28 Germinal an 232 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la =?UTF-8?Q?Pens=C3=A9e?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 16 Apr 2024 18:52:10 +0200 Message-ID: <875xwhmerp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , 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-Spam-Score: -5.58 X-Migadu-Queue-Id: 1EB462655A X-Migadu-Spam-Score: -5.58 X-Migadu-Scanner: mx10.migadu.com X-TUID: S6Y4KjUdIUal Hi, Nicolas Graves skribis: > I'm currently writing it, it'll result in a handy helper for tests, such > as : > > (with-git-forge ; spawns a dumb but functional git server > '(("MyPackage" . ((add "a.txt" "A") > (commit "First commit") > (tag "v1.0.0" "Release 1.0")))) > (with-julia-test-servers > `(("/juliahub/MyPackage/" 200 ,juliahub-redirect.html) > ("/juliahub/MyPackage/" 200 ,juliahub-redirect.html) > ("/juliahub/MyPackage/MySlg/1.0.0/pkg.json" 200 > ,(lambda (port) (display (fixture-pkg.json) port))) > ("/general/M/MyPackage/Package.toml" 200 > ,(lambda (port) (display (pk 'd (general-Package.toml)) port))= )) > (juliahub->guix-package "MyPackage"))) Nice! > However, for that I'll need the http server to be able to respond with a > (content-type . (application/x-git-upload-pack-advertisement)) > header to git. But in guile's web server implementation, this is not > possible because of sanitize-response's charset addition, which is not > configurable.=20 D=E2=80=99oh. I=E2=80=99m not sure what this is about; it=E2=80=99s defini= tely possible to add pretty much any =E2=80=98content-type=E2=80=99 header (we do that in =E2=80= =98guix publish=E2=80=99 for instance), but if it=E2=80=99s going too far, then maybe you should go back= to procedure mocks. > That's outside my field, how can we progress further ? We do indeed need > such a server to properly test juliahub since we go get the tag from the > actual repo (this is justified in the patch series). > > _________________________________________________________________________= ____ > ;;; Git Forge =3D Git HTTP Server with Dump transfer protocol and reposit= ories This work=E2=80=99s not lost: we can definitely switch back to it when the limitations you encountered has been fixed on the Guile side, and/or in other, simpler cases. Thanks! Ludo=E2=80=99.