From unknown Sun Jun 22 07:59:21 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75782] [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jan 2025 11:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75782 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75782@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17376322633685 (code B ref -1); Thu, 23 Jan 2025 11:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2025 11:37:43 +0000 Received: from localhost ([127.0.0.1]:39530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tavWo-0000xM-DF for submit@debbugs.gnu.org; Thu, 23 Jan 2025 06:37:42 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46070) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tavWk-0000x7-UW for submit@debbugs.gnu.org; Thu, 23 Jan 2025 06:37:41 -0500 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 1tavWe-0006Ya-ED for guix-patches@gnu.org; Thu, 23 Jan 2025 06:37:32 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tavWc-0004bx-Dt; Thu, 23 Jan 2025 06:37:32 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1737632244; cv=none; d=strato.com; s=strato-dkim-0002; b=HpblUcAhsicDCalDWKin+SPlvJbK1eW6aNwE1v1k6ZLZMYpPsAtJuV9hU7/076utIs 9RMDrPihqST3qP2xJHhy4H1OvCYvIEk0IISVdVOWOIdJGxPaVRP1s9D6TR0EJDVnjSee mbjK78/gaGgKyQEGzjWL9Z3DKs7Xyi+1w1Ybb2eO4YsIpxjImkicdx0kgu/agMuckN9n MWFEysMCqTpTK8QNG5RSyF0CB+IqdXQysNfSZbDkHbEvPPRId1ySHB9Aht1DagVJvu0d QMGXbKMH183hGtHILQC7sEIQr595Y8tVdE/M5MfkaA1ses+79m1HXD6RJyBQlDyoBBKC XgVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=WSPjrhPrsRki8wUUMB6azNpOpqvOZoIJxzKx+PnChBkfOMenrxWfnf/KdoE/yS2D8i rIUpKrX5skhNbAr/UY3RUK5Zjll4eyxpOJy7TpMgMPR9WVhDbYjb49JwJ8UpQTZH3PZW BOdBkLcc7EeMb0J1Y9MuYAXNSxEwMFzRj7zcwtGcrZSet+opAcgX9WY7ucl8UUN9F/bD 5PcHTlAJar0E5NjB4eliYbcV5jcNsd2+Cjl84O6XTYXHUzOcpke0mGyrvUwc7upc8qzb ws0TmBGhRbWrFQjZGhjKKVj+On41huMHfHHV43QHsE3krvWXEz5jBmw/LhlTKNxLp2w0 2ouA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0002; d=ikherbers.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=kM3FY5qPPdAzs6MeUZmt+5YIa3RsKy561Aysa0Q82+fp8yhTFTqPnrGY1h4u5Fk9yd p2Z5Gtn6APGTV8i9QC2YlyYpTYq4W+geQhyJli4QBRpzrAMFwhJ9CejKyRN4I16rcne3 JWuNTR1x7t54b5iSDP79ru5zSdTsU3h9xH9JPrjH7/pvHsZwksvP1ezAtsdhnuoxH11y 6T8C4X7madrvwoegRX6y/IZWQ3fFm1acNeNy/BMFynlhG0Fnd2YAuIFLLpPm6y5akKLx +jWN8DGdC3DSag1mGFLH+qFec1S1SCnAodKTu/D5AviADiElfUW/pAXls5SPLk8rPTx8 yh9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0003; d=ikherbers.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=QpNSmLnlLo0QU0eaqUvFpE7tfSIZLygB9gJAsXOV+//DfMr+Oas41YukqDNMv7ys/8 O5HjqlppNUqh/GSNiYCg== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3Nk6Yq72yyCbdHpqjhxwXUzRPTUenFbzqrjHgrCc7mACIQ1wIavITl2k8Cp4hnA==" Received: from lambda.localdomain by smtp.strato.de (RZmta 51.2.17 AUTH) with ESMTPSA id 5193b310NBbOYRx (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 23 Jan 2025 12:37:24 +0100 (CET) From: vicvbcun Date: Thu, 23 Jan 2025 12:36:10 +0100 Message-ID: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=guix@ikherbers.com; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.043, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) 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: -1.0 (-) If an output is larger than the configured cache bypass threshold and the substitute hasn't already been baked, guix publish returns a 404 response and schedules baking. This error code causes `url-fetch*' to instead try fetching the narinfo from the Internet Archive. Suppress this fallback behaviour as the sole purpose is triggering the baking of substitutes. * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Bind `%download-methods' to the empty list befor calling `url-fetch*'. --- Hello Guix! I've stumbled upon this as somehow (presumably due to the way my server is connected to the IPv4 internet) the remote server would block indefinitely reading a reply from web.archive.org, needing to be restarted. This patch fixes (or at least hides) this behaviour. Anyway, since there is no point to the fallback in the first place, I think this merits a patch regardless of that. src/cuirass/scripts/remote-server.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cuirass/scripts/remote-server.scm b/src/cuirass/scripts/remote-server.scm index caeb8ed..fb99551 100644 --- a/src/cuirass/scripts/remote-server.scm +++ b/src/cuirass/scripts/remote-server.scm @@ -45,7 +45,8 @@ #:use-module ((guix build utils) #:select (mkdir-p strip-store-file-name call-with-temporary-output-file)) - #:autoload (guix build download) (url-fetch) + #:autoload (guix build download) (%download-methods + url-fetch) #:autoload (gcrypt pk-crypto) (read-file-sexp) #:use-module (simple-zmq) #:use-module (srfi srfi-1) @@ -255,7 +256,13 @@ Start a remote build server.\n") (%program-name)) (log-debug "Bake: ~a" narinfo-url) (call-with-temporary-output-file (lambda (tmp-file port) - (url-fetch* narinfo-url tmp-file))))) + (parameterize + ;; XXX: guix publish returns a 404 response when the output is + ;; large and has not already been baked. By default, this causes + ;; `url-fetch*' to fall back to the Internet Archive. Disable + ;; this. + ((%download-methods '())) + (url-fetch* narinfo-url tmp-file)))))) (define (add-to-store drv outputs url) "Add the OUTPUTS that are available from the substitute server at URL to the base-commit: 6b499a74999fc05e19e349e2c8ca8e7f417147f5 -- 2.47.1 From unknown Sun Jun 22 07:59:21 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75782] [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2025 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75782 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: vicvbcun Cc: 75782@debbugs.gnu.org Received: via spool by 75782-submit@debbugs.gnu.org id=B75782.173945937930136 (code B ref 75782); Thu, 13 Feb 2025 15:10:01 +0000 Received: (at 75782) by debbugs.gnu.org; 13 Feb 2025 15:09:39 +0000 Received: from localhost ([127.0.0.1]:44908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiaqQ-0007q0-He for submit@debbugs.gnu.org; Thu, 13 Feb 2025 10:09:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55420) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiaqO-0007po-18 for 75782@debbugs.gnu.org; Thu, 13 Feb 2025 10:09:36 -0500 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 1tiaqI-0005kb-DX; Thu, 13 Feb 2025 10:09:30 -0500 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=mQ7BHPQSQqyBANNoGsJs0+G8foRwFs1L7HrnOiACOFE=; b=pkTdEIfSKE0wS8S34U/Q 1gzzzmEykcQtmgYeeXTvSe8afTa64lldM9Z0U/dXkHFmVki1dANCkTKEuGxY5OuQIoI72Lk5pHmTk 0dbk3dptYFgudjG+eZa422HiKc/Wvtf3YK2+dObUaGnXvy/e1yygiE8M0L2Icnj/adQk9cHH2XB9C vdfxv8x3Gc8ZZKdD9rITUfx8z3YM+cy1oHDgah+OJfHhNLi//l6v5Y071PRFoS+DWsQbsoy6snrxs L3p0+Z6UUIVezQGGq55ZiRJGX+t9XDnijPquNGmJlECq2EjXZjlRaJWRuDEI3jMeLhbZX3loPJxs2 KwVKfdQrcJd4tg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> (vicvbcun's message of "Thu, 23 Jan 2025 12:36:10 +0100") References: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> Date: Thu, 13 Feb 2025 16:09:20 +0100 Message-ID: <87frkh2867.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-Spam-Score: -2.3 (--) 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: -3.3 (---) Hi, vicvbcun skribis: > If an output is larger than the configured cache bypass threshold and the > substitute hasn't already been baked, guix publish returns a 404 response= and > schedules baking. This error code causes `url-fetch*' to instead try fet= ching > the narinfo from the Internet Archive. Suppress this fallback behaviour = as > the sole purpose is triggering the baking of substitutes. > > * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Bind > `%download-methods' to the empty list befor calling `url-fetch*'. Good catch! > + (parameterize > + ;; XXX: guix publish returns a 404 response when the output is > + ;; large and has not already been baked. By default, this ca= uses > + ;; `url-fetch*' to fall back to the Internet Archive. Disable > + ;; this. > + ((%download-methods '())) > + (url-fetch* narinfo-url tmp-file)))))) Shouldn=E2=80=99t it be '(upstream) rather than '()? (I=E2=80=99m looking at guix/build/download.scm.) Thanks, Ludo=E2=80=99. From unknown Sun Jun 22 07:59:21 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75782] [PATCH cuirass v2] remote-server: Disable url-fetch* fallback when triggering substitutes. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2025 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75782 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75782@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 75782-submit@debbugs.gnu.org id=B75782.173946356010496 (code B ref 75782); Thu, 13 Feb 2025 16:20:01 +0000 Received: (at 75782) by debbugs.gnu.org; 13 Feb 2025 16:19:20 +0000 Received: from localhost ([127.0.0.1]:45100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tibvs-0002jE-1i for submit@debbugs.gnu.org; Thu, 13 Feb 2025 11:19:20 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]:35071) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tibvp-0002j3-Lr for 75782@debbugs.gnu.org; Thu, 13 Feb 2025 11:19:18 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1739463549; cv=none; d=strato.com; s=strato-dkim-0002; b=nzYBrJGI7I976/Skix28TATp4ZWnXQAJU9hB9dh84+eh2bGzEMlzwTZRCuZEkDy49m lYB9qcXOLnycTZrRFhhgu8eujmEOykqluzuYwTwq7WRznMykcU3rG0KdpdcvUzkRN6At 2had3GhNEehiAmYUReg/EP/dK+kTRiVaHKAEDq7u+KGeBpD3ZN1ww3LMc6CQdMm7RuA3 oIumxYxxouIW0/qdV8EUp0X4OlKihilw4DC+UWajaGTxsUWPAP9jwEfXSSCqxdBcv38h kn5N8x3BDSNrfnsLFBqt27hJAqoRPPqtbtpNyE3PjKvUhxOsN72jiMppwKeqDCAUfyo0 Cn9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1739463549; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=e/rxMwPDDbcU3oiiAVz5jODHnpX5ojBCSt/8hsnDfeM=; b=sYgyfduavMSH1DGNB3jSnE1kvjHiCFbhrSVVUsDNSBEHGs3rr59bzKllHIMsvBMW6v MpQB9PESC7UljZj9h55nHtVOy5Ndi6oPy8OZC2LuIc39crmL0Vepc01rfr/2DTfA4gM1 OesXGBSbMlaW5cy2+ss0dHBkdGGtWK5HxUiAtBLmC+MeFntz9mDFFO0h/+AD5vh2IvBQ p3Nzdldnfakm/QL/w4gRbFm3dkSh7fiPattb+jb9p71mOyhQWHrawawLzY0Bt+GZPDU/ XlTMi84cWB6kQcPQX/8b7ljpcCk4npkYSOXOV59hUNDdO5UhcrdZysCvvEYS5LCnChqP v9sQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1739463549; s=strato-dkim-0002; d=ikherbers.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=e/rxMwPDDbcU3oiiAVz5jODHnpX5ojBCSt/8hsnDfeM=; b=RkgiSFEc8Da28B8+8DLoUc0KvcRdYRMZQzsYJGT5ypTVofj6qhf1SbhQTusr3O15Ds AvbEraEJGK29m3j9zKqTFQW2bR7VnMNgznA5nxbV9Wz33GkIm5xxl8IjFeXpvXpMSVI1 X1zVRcE5Gc4ffoMBsMiUK0nZTnGdnB9mY+cZFizah5eZQIdi57QnhC2qLemQ1aawruLa L7kYF/+6NdcYwQCvXwoQwG0/mUm59DdBB+LoZ5NG3Y7y/3zSXhoGAlecqksZZ/Y4RasI pgkSzCJ8gCHq8gvDAz21CVYzw8pjy1p6wtmPbB+Pr9/QfA+clULTg2AdDKgukJSqXy09 j3yQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1739463549; s=strato-dkim-0003; d=ikherbers.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=e/rxMwPDDbcU3oiiAVz5jODHnpX5ojBCSt/8hsnDfeM=; b=JobYSv7j8qwEm6aRL5IH6pXenZfWHqQ7KV2LTLlnm1heje3MUAc6na0htLImlvRlrh o8hp9q2zRE0aQGgY3fCg== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3Nk6Yq72yyCbdHpqjhxwXUzRPTUenFbzqrjHgq3VqwV5AO1vwpv/9BB0Pd2aN2HQ=" Received: from lambda.localdomain by smtp.strato.de (RZmta 51.2.23 AUTH) with ESMTPSA id 50a23e11DGJ8Jwb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 13 Feb 2025 17:19:08 +0100 (CET) From: vicvbcun Date: Thu, 13 Feb 2025 17:17:07 +0100 Message-ID: <81f8b841e32ed2687ac9d05a36a79cbeeff38e6c.1739462086.git.guix@ikherbers.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> References: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: 0.0 (/) 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: -1.0 (-) If an output is larger than the configured cache bypass threshold and the substitute hasn't already been baked, guix publish returns a 404 response and schedules baking. This error code causes `url-fetch*' to instead try fetching the narinfo from the Internet Archive. Suppress this fallback behaviour as the sole purpose is triggering the baking of substitutes. * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Disable all download methods except "upstream" before calling `url-fetch*'. --- Changes since v1: - bind `%download-methods' to '(upstream) instead of the empty list src/cuirass/scripts/remote-server.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cuirass/scripts/remote-server.scm b/src/cuirass/scripts/remote-server.scm index caeb8ed..90a3db7 100644 --- a/src/cuirass/scripts/remote-server.scm +++ b/src/cuirass/scripts/remote-server.scm @@ -45,7 +45,8 @@ #:use-module ((guix build utils) #:select (mkdir-p strip-store-file-name call-with-temporary-output-file)) - #:autoload (guix build download) (url-fetch) + #:autoload (guix build download) (%download-methods + url-fetch) #:autoload (gcrypt pk-crypto) (read-file-sexp) #:use-module (simple-zmq) #:use-module (srfi srfi-1) @@ -255,7 +256,13 @@ Start a remote build server.\n") (%program-name)) (log-debug "Bake: ~a" narinfo-url) (call-with-temporary-output-file (lambda (tmp-file port) - (url-fetch* narinfo-url tmp-file))))) + (parameterize + ;; XXX: guix publish returns a 404 response when the output is + ;; large and has not already been baked. By default, this causes + ;; `url-fetch*' to fall back to the Internet Archive. Disable + ;; this. + ((%download-methods '(upstream))) + (url-fetch* narinfo-url tmp-file)))))) (define (add-to-store drv outputs url) "Add the OUTPUTS that are available from the substitute server at URL to the base-commit: 6b499a74999fc05e19e349e2c8ca8e7f417147f5 -- 2.48.1 From unknown Sun Jun 22 07:59:21 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75782] [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2025 16:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75782 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 75782@debbugs.gnu.org Received: via spool by 75782-submit@debbugs.gnu.org id=B75782.173946393511835 (code B ref 75782); Thu, 13 Feb 2025 16:26:03 +0000 Received: (at 75782) by debbugs.gnu.org; 13 Feb 2025 16:25:35 +0000 Received: from localhost ([127.0.0.1]:45115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tic1v-00034n-1a for submit@debbugs.gnu.org; Thu, 13 Feb 2025 11:25:35 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.160]:44769) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tic1t-00034e-89 for 75782@debbugs.gnu.org; Thu, 13 Feb 2025 11:25:33 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1739463924; cv=none; d=strato.com; s=strato-dkim-0002; b=bwTNzsyaoRY3XWkZXlxk5/+FvmHiNAjTwp+7ab7u/fyrMptXP7NVwBDCcfPavlu6dl TSksSv5+PAE69inztnavsapzj0vGODo5ytqmyeEqsmfW08I/VLtWWUJPyNuxw+YVpBdY Y1+pmqzGNQ+she46BfNqVDT9VeqhzcygDBL/D4FLB77oM4X4oZxMKMNN9juMgMNULuwB JxPEqtIhDIB/ElgIPXCVAW+GqpOa4Gtps8+R0v3FP9H/28z7tyrE17kE9QATnD6BPc0R I8B2+pVRWETarw9Mn71TSfKkKCD6h7NK2rp8fGvHScoiPYMEY9pHi+PCHTo9cf/WJeYA 8FDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1739463924; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=Kwk/t0QA/GQyodbMAoEBtzIG9m3MdGHMJYIHqXbsTd4=; b=SKJCWyTzaANAtZSvBShARJY+cqgZA9LRAH47TfYPtG953SL/OsoI6qgqGkSTYgj84n BzPipMkxS+RPlh36Rb2mz1hbDlMTK2F+kkH2pLN5NTf4s7XThQib7SHWWVdDzuQOrncH aqs7sIjaiYEdBr7XYbzWVKvt3wcO1/5BAq4pBeQltasLsfOTBaoZ21LKQ+y68fXU8Xy9 tWqQwvY+ipVn5JZ6PNrQmh+QyjweNRN3gUC7szVNXrsLmYeATkoxaMpC7B3LS1OSP8TN DD8G3t3031vM6Kjx2qwun2tZEWvwlkKvMkMD18AvFDpzT7vyJye8kCZ7X+Urx9iwBkH5 7OnA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1739463924; s=strato-dkim-0002; d=ikherbers.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=Kwk/t0QA/GQyodbMAoEBtzIG9m3MdGHMJYIHqXbsTd4=; b=jXXMBkPOvcwn/MPfUPSbBrY4+YETl9PsKbRMAFancX6yWDALXq97SgTLIG4dEU08hi DxgdsAK+qoj0UHZlLyH5NG+3zQvfb32R9+ClVLAxK5WSiCq+K/bs9Aj9Ljv9eaiLIGI5 q2yoUihSnUWFNAMuAQ8bkMRL8V8D+adwXkey42IbRvNzZKzUdCiYZ3mU0P5x/knSWvGK cBfck1PMnP4q+M+rZxu4PDO9MUJ4sNp3YqY2C3967uRdBw88335r4kzvSIoEodWpvyte ylYh0cwaXqGJOTwbRHbyMbx7uk1vUMOmnFHy0usJqBwb4JvkEHVwS9mkgk9y2e7HitsI AORg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1739463924; s=strato-dkim-0003; d=ikherbers.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=Kwk/t0QA/GQyodbMAoEBtzIG9m3MdGHMJYIHqXbsTd4=; b=k0F2eUklZXMND23ZFQecVSD5AtkTAxm1nWSaKeDIowz+XTgRnSadRikFyoeyyrsf2P 2eM0LTx2kGcSKujAPQAQ== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3Nk6Yq72yyCbeHZq8hRsIADXMDIqyp/A=" Received: from lambda.localdomain by smtp.strato.de (RZmta 51.2.23 DYNA|AUTH) with ESMTPSA id 50a23e11DGPOJxT (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 13 Feb 2025 17:25:24 +0100 (CET) Date: Thu, 13 Feb 2025 17:25:24 +0100 From: vicvbcun Message-ID: Mail-Followup-To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 75782@debbugs.gnu.org References: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> <87frkh2867.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87frkh2867.fsf@gnu.org> X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hello, On 2025-02-13T16:09:20+0100, Ludovic Courtès wrote: > [...] >> + (parameterize >> + ;; XXX: guix publish returns a 404 response when the output is >> + ;; large and has not already been baked. By default, this causes >> + ;; `url-fetch*' to fall back to the Internet Archive. Disable >> + ;; this. >> + ((%download-methods '())) >> + (url-fetch* narinfo-url tmp-file)))))) > >Shouldn’t it be '(upstream) rather than '()? > >(I’m looking at guix/build/download.scm.) Of course …. I guess I was so happy it didn't block that I forgot to verify it actually still does its job :). I have sent a v2 but haven't tested it yet because of missing aarch64-linux substitutes. vicvbcun From unknown Sun Jun 22 07:59:21 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75782] [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Feb 2025 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75782 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 75782@debbugs.gnu.org Received: via spool by 75782-submit@debbugs.gnu.org id=B75782.17394810037776 (code B ref 75782); Thu, 13 Feb 2025 21:11:01 +0000 Received: (at 75782) by debbugs.gnu.org; 13 Feb 2025 21:10:03 +0000 Received: from localhost ([127.0.0.1]:45833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tigTC-00021L-Ke for submit@debbugs.gnu.org; Thu, 13 Feb 2025 16:10:03 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.216]:35325) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tigTA-00020p-0f for 75782@debbugs.gnu.org; Thu, 13 Feb 2025 16:10:00 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1739480991; cv=none; d=strato.com; s=strato-dkim-0002; b=tbAD8p0O2tdY7ohWkdv8g/wcQkanyCp5DIJQIlYZzzrx0m/ISnYN7yqgPcPVNazgcP FWSZfnV6YuS4h9jK+hgGn3WvwkkHMp7BpmTvXDdFKx7nXNCDYPuq4GPSzyYzjmXae7dT 2Cey0z/MNL0AmY6ihxUjSbfOPhRGcK1hSaVm52ZEIPj5V3xBYPBXSVDBmkSoqlAI0EL+ 4d5kMhKaNPThtKZxxUE/d/NcVSM5OkKNxuHHXFPVrUdEP85IuEkJvVBpnw+7hDk3Q/Uy iyqBbAddp9hQpx8ODUS2vYKP+bmgd39W1KuiaNIRD9djD30quE1wAe7+QCC4ZseGdArR bGMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1739480991; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=C7vIQhenqjAHAV6ePXfVIfep12mf2zg/K/0QkpE7L+A=; b=QlW929pmbK4yPbBzpmQILRG3B26zuijXRu7ZR04kmEhoLatCX3kGgsbwIIZIQ3nPlr nokQbo76rlv4rvh7nwZXwaa62DSyxR0dktZUv3XyTUmY7Q9bP97CvaDx3dJBJVfmy+sk wmcd+Q6DngWVgokoKsSqYUZFdqsO1HzlQSTA75JyImiC/2Ct5lrsirzkV/j7lFkbwEOv ikaq+ECmsvw4PSmTNBdl9aKRiRO2KncWgUSaH7qLzKCFYSjiVS06u5OcwFnP8tPkelOW kyC4yNLAP3F6gRDm32bMjVkDOaWHodt3l53I0B/j5PHE3Z/nCvtEkWotMaCek7eOuKRH TC5w== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1739480991; s=strato-dkim-0002; d=ikherbers.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=C7vIQhenqjAHAV6ePXfVIfep12mf2zg/K/0QkpE7L+A=; b=G8hF/sHqZGdskemYOvUs5Hn4MVW7+83SJNtebl7+6CL0auXN02NLBtEGBlvaN4DjZx c8wbug+Zsryu+utskaj8nDbq2EcfyqTMr+rTuiZTLsNiTxAp6DvkDZvdLciAFScvXBaZ bRZiLBHSJjYJXFC3nn5SmcjKU2r2FhObcDuTM9ZeeODwwigvKrehS0WB4N1NRexfnz/8 YRUuYqn3f5SdNftB0fAchBzmHnUB5T4tCl2y1cGYMCBAfPLd8Aroo+Q+ffMAI8shOXWz gttDgXkr+u9IvAOzwl3jITUge2Q85jXy/0q1w0MJMXiTPiahe+5g8qRZ7qhjvvIDAARU q/5A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1739480991; s=strato-dkim-0003; d=ikherbers.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=C7vIQhenqjAHAV6ePXfVIfep12mf2zg/K/0QkpE7L+A=; b=nrjaECIEIwmToVw5DxFzZLwm7xu4jGDoPT26pY24zdZTw6b1MhSN+VhtR30idsLT/i /pdqWhFCunWE1T3DCYAQ== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3Nk6Yq72yyCbYF4SjhBAIA4fnIIH0y94=" Received: from lambda.localdomain by smtp.strato.de (RZmta 51.2.23 DYNA|AUTH) with ESMTPSA id 50a23e11DL9oKQY (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 13 Feb 2025 22:09:50 +0100 (CET) Date: Thu, 13 Feb 2025 22:09:50 +0100 From: vicvbcun Message-ID: Mail-Followup-To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 75782@debbugs.gnu.org References: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> <87frkh2867.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: -0.7 (/) 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: -1.7 (-) Hello, On 2025-02-13T17:25:24+0100, vicvbcun wrote: >Hello, > >On 2025-02-13T16:09:20+0100, Ludovic Courtès wrote: >>[...] >>>+ (parameterize >>>+ ;; XXX: guix publish returns a 404 response when the output is >>>+ ;; large and has not already been baked. By default, this causes >>>+ ;; `url-fetch*' to fall back to the Internet Archive. Disable >>>+ ;; this. >>>+ ((%download-methods '())) >>>+ (url-fetch* narinfo-url tmp-file)))))) >> >>Shouldn’t it be '(upstream) rather than '()? >> >>(I’m looking at guix/build/download.scm.) >Of course …. I guess I was so happy it didn't block that I forgot to >verify it actually still does its job :). > >I have sent a v2 but haven't tested it yet because of missing >aarch64-linux substitutes. I have replaced the cuirass-remote-server shepherd service with a transient service running the v2 patch. It did trigger baking and didn't block when served a 404 respone. vicvbcun From unknown Sun Jun 22 07:59:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: vicvbcun Subject: bug#75782: closed (Re: bug#75782: [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes.) Message-ID: References: <87jz9sxypu.fsf_-_@gnu.org> <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> X-Gnu-PR-Message: they-closed 75782 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75782@debbugs.gnu.org Date: Fri, 14 Feb 2025 16:45:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1739551502-4325-1" This is a multi-part message in MIME format... ------------=_1739551502-4325-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75782: [PATCH cuirass] remote-server: Disable url-fetch* fallback when tri= ggering substitutes. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75782@debbugs.gnu.org. --=20 75782: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75782 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1739551502-4325-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75782-done) by debbugs.gnu.org; 14 Feb 2025 16:45:00 +0000 Received: from localhost ([127.0.0.1]:51409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiyoG-00017P-B9 for submit@debbugs.gnu.org; Fri, 14 Feb 2025 11:45:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56912) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiyoC-000179-Ga for 75782-done@debbugs.gnu.org; Fri, 14 Feb 2025 11:44:58 -0500 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 1tiyo5-0004Ir-NE; Fri, 14 Feb 2025 11:44:50 -0500 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=fxga4uvRXsI1LW50ByxkLXwwss0qYUF2YJTNXyPynRA=; b=K5gOp1OQRE2AK1sZuDvQ +Rxw2otLvVnwhrsF3d6fIVcxDb5fiXqejUDpA5g5D5aejVd2sC5cu0dZ+cDht09Lzg6Q/4TeVSRV1 BCMUn1ZCj85XILUog6jWNoucZhOvj41Wwu87uqXqRM12INBHoZf2OvxdzmKzcg9ZqemC/4p7/1WB8 KkR3WkQaf63BnxSRWQ/LQZHkS2rYCuYeXIDzY6o9LVDlKBFn81JDUV+VgkMCFzSgovtxNeFs30La4 IGvtegu+VfBlWmwQYjtPKJWQ9rzcpGcJUlDMxEBc3IRJakws2fV32c1Z59QTAuMkmbPtfPUGQKE1e n5rTYfnE2n08ww==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: vicvbcun Subject: Re: bug#75782: [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. In-Reply-To: <81f8b841e32ed2687ac9d05a36a79cbeeff38e6c.1739462086.git.guix@ikherbers.com> (vicvbcun's message of "Thu, 13 Feb 2025 17:17:07 +0100") References: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> <81f8b841e32ed2687ac9d05a36a79cbeeff38e6c.1739462086.git.guix@ikherbers.com> Date: Fri, 14 Feb 2025 17:44:45 +0100 Message-ID: <87jz9sxypu.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75782-done Cc: 75782-done@debbugs.gnu.org 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: -3.3 (---) vicvbcun skribis: > If an output is larger than the configured cache bypass threshold and the > substitute hasn't already been baked, guix publish returns a 404 response and > schedules baking. This error code causes `url-fetch*' to instead try fetching > the narinfo from the Internet Archive. Suppress this fallback behaviour as > the sole purpose is triggering the baking of substitutes. > > * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Disable > all download methods except "upstream" before calling `url-fetch*'. Pushed, thanks! Ludo'. ------------=_1739551502-4325-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Jan 2025 11:37:43 +0000 Received: from localhost ([127.0.0.1]:39530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tavWo-0000xM-DF for submit@debbugs.gnu.org; Thu, 23 Jan 2025 06:37:42 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46070) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tavWk-0000x7-UW for submit@debbugs.gnu.org; Thu, 23 Jan 2025 06:37:41 -0500 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 1tavWe-0006Ya-ED for guix-patches@gnu.org; Thu, 23 Jan 2025 06:37:32 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tavWc-0004bx-Dt; Thu, 23 Jan 2025 06:37:32 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1737632244; cv=none; d=strato.com; s=strato-dkim-0002; b=HpblUcAhsicDCalDWKin+SPlvJbK1eW6aNwE1v1k6ZLZMYpPsAtJuV9hU7/076utIs 9RMDrPihqST3qP2xJHhy4H1OvCYvIEk0IISVdVOWOIdJGxPaVRP1s9D6TR0EJDVnjSee mbjK78/gaGgKyQEGzjWL9Z3DKs7Xyi+1w1Ybb2eO4YsIpxjImkicdx0kgu/agMuckN9n MWFEysMCqTpTK8QNG5RSyF0CB+IqdXQysNfSZbDkHbEvPPRId1ySHB9Aht1DagVJvu0d QMGXbKMH183hGtHILQC7sEIQr595Y8tVdE/M5MfkaA1ses+79m1HXD6RJyBQlDyoBBKC XgVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=WSPjrhPrsRki8wUUMB6azNpOpqvOZoIJxzKx+PnChBkfOMenrxWfnf/KdoE/yS2D8i rIUpKrX5skhNbAr/UY3RUK5Zjll4eyxpOJy7TpMgMPR9WVhDbYjb49JwJ8UpQTZH3PZW BOdBkLcc7EeMb0J1Y9MuYAXNSxEwMFzRj7zcwtGcrZSet+opAcgX9WY7ucl8UUN9F/bD 5PcHTlAJar0E5NjB4eliYbcV5jcNsd2+Cjl84O6XTYXHUzOcpke0mGyrvUwc7upc8qzb ws0TmBGhRbWrFQjZGhjKKVj+On41huMHfHHV43QHsE3krvWXEz5jBmw/LhlTKNxLp2w0 2ouA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0002; d=ikherbers.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=kM3FY5qPPdAzs6MeUZmt+5YIa3RsKy561Aysa0Q82+fp8yhTFTqPnrGY1h4u5Fk9yd p2Z5Gtn6APGTV8i9QC2YlyYpTYq4W+geQhyJli4QBRpzrAMFwhJ9CejKyRN4I16rcne3 JWuNTR1x7t54b5iSDP79ru5zSdTsU3h9xH9JPrjH7/pvHsZwksvP1ezAtsdhnuoxH11y 6T8C4X7madrvwoegRX6y/IZWQ3fFm1acNeNy/BMFynlhG0Fnd2YAuIFLLpPm6y5akKLx +jWN8DGdC3DSag1mGFLH+qFec1S1SCnAodKTu/D5AviADiElfUW/pAXls5SPLk8rPTx8 yh9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1737632244; s=strato-dkim-0003; d=ikherbers.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=3s4SqbvG4TIiKCkKZYBH74gQ7hAbA0OmT2GfzMJnxwk=; b=QpNSmLnlLo0QU0eaqUvFpE7tfSIZLygB9gJAsXOV+//DfMr+Oas41YukqDNMv7ys/8 O5HjqlppNUqh/GSNiYCg== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3Nk6Yq72yyCbdHpqjhxwXUzRPTUenFbzqrjHgrCc7mACIQ1wIavITl2k8Cp4hnA==" Received: from lambda.localdomain by smtp.strato.de (RZmta 51.2.17 AUTH) with ESMTPSA id 5193b310NBbOYRx (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 23 Jan 2025 12:37:24 +0100 (CET) From: vicvbcun To: guix-patches@gnu.org Subject: [PATCH cuirass] remote-server: Disable url-fetch* fallback when triggering substitutes. Date: Thu, 23 Jan 2025 12:36:10 +0100 Message-ID: <3e8cd38449b611b143567e405c63d5a34b2c57a3.1737631786.git.guix@ikherbers.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.22; envelope-from=guix@ikherbers.com; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.043, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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: -1.0 (-) If an output is larger than the configured cache bypass threshold and the substitute hasn't already been baked, guix publish returns a 404 response and schedules baking. This error code causes `url-fetch*' to instead try fetching the narinfo from the Internet Archive. Suppress this fallback behaviour as the sole purpose is triggering the baking of substitutes. * src/cuirass/scripts/remote-server.scm (trigger-substitutes-baking): Bind `%download-methods' to the empty list befor calling `url-fetch*'. --- Hello Guix! I've stumbled upon this as somehow (presumably due to the way my server is connected to the IPv4 internet) the remote server would block indefinitely reading a reply from web.archive.org, needing to be restarted. This patch fixes (or at least hides) this behaviour. Anyway, since there is no point to the fallback in the first place, I think this merits a patch regardless of that. src/cuirass/scripts/remote-server.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cuirass/scripts/remote-server.scm b/src/cuirass/scripts/remote-server.scm index caeb8ed..fb99551 100644 --- a/src/cuirass/scripts/remote-server.scm +++ b/src/cuirass/scripts/remote-server.scm @@ -45,7 +45,8 @@ #:use-module ((guix build utils) #:select (mkdir-p strip-store-file-name call-with-temporary-output-file)) - #:autoload (guix build download) (url-fetch) + #:autoload (guix build download) (%download-methods + url-fetch) #:autoload (gcrypt pk-crypto) (read-file-sexp) #:use-module (simple-zmq) #:use-module (srfi srfi-1) @@ -255,7 +256,13 @@ Start a remote build server.\n") (%program-name)) (log-debug "Bake: ~a" narinfo-url) (call-with-temporary-output-file (lambda (tmp-file port) - (url-fetch* narinfo-url tmp-file))))) + (parameterize + ;; XXX: guix publish returns a 404 response when the output is + ;; large and has not already been baked. By default, this causes + ;; `url-fetch*' to fall back to the Internet Archive. Disable + ;; this. + ((%download-methods '())) + (url-fetch* narinfo-url tmp-file)))))) (define (add-to-store drv outputs url) "Add the OUTPUTS that are available from the substitute server at URL to the base-commit: 6b499a74999fc05e19e349e2c8ca8e7f417147f5 -- 2.47.1 ------------=_1739551502-4325-1--