GNU logs - #70551, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70551: channel-with-substitutes-available without network
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 24 Apr 2024 15:26:13 +0000
Resent-Message-ID: <handler.70551.B.17139723412521 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 70551
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 70551 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17139723412521
          (code B ref -1); Wed, 24 Apr 2024 15:26:13 +0000
Received: (at submit) by debbugs.gnu.org; 24 Apr 2024 15:25:41 +0000
Received: from localhost ([127.0.0.1]:58968 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rzeUz-0000ca-Ha
	for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47976)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1rzeUq-0000aB-28
 for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:25 -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 <zimon.toutoune@HIDDEN>)
 id 1rzeUT-0002gK-0B
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:57 -0400
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1rzeUQ-0003M4-75
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:56 -0400
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-346a5dea2f4so1464731f8f.1
 for <bug-guix@HIDDEN>; Wed, 24 Apr 2024 08:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1713972292; x=1714577092; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SbMoozoQxem/uQkSfUk0mMepLm3MS3vG9NEgTskBxXXLpX+fPTQ9wL5OCKo9WoVopN
 U/TeLm5W4DeWwcbcdqGrqApxPrIOJcANs0Ae8I72o4UM4X+mjubvRSwwfuLlwpRmH9eb
 Z88msedllxzjcp/d4M8tuAKpAX7edNYKkg9OWMdP7WDBE2lXGaNtn+DaNMuoWzLoTPvJ
 iXTC1Gj0TyaZNq3v2qUXO0veicH31Dw+BY16agjCk2SVsdz+gmU1L3shKZagaakcYmPe
 EyvF147W6CD/KvrK1t4rxcd312hjbLPGMPPpZ//3Iwg08knrz5WLPM0zK4YRSUz57Q7o
 tCRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1713972292; x=1714577092;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SqnYA531neo/RcCfiuo+Mrp3v8En+PUtD0uHAZ0jPBFuLuQwMcatnX4kyQlt9No6xU
 /x5xt+Vcj12zB8O+flQulJrTjdJVUFIgaCmL2x+Dx7zSdU397LM06zkBnEjQJ2a8Yyeo
 W4zgxqojHVCF2j9fr8CT4bFtoQToVibMatHItE8/w1HB80dSHA+3Zoljw0eRFe5w0zk9
 T0n/qMyGy/G8ku186jh+7pmr43OJwGJchMXMs7fBpt5CzWgzM6RaHTdeeAi0PdFlHcw2
 oESakD440LUAeGxtXG4vAFIWOXSxVz0LTJxR3bTOH5A4Ex7K1Tb/NwgB7tnDuqXIiy03
 B11A==
X-Gm-Message-State: AOJu0Yy/nfLfO4N8tmMHhswM66ppnLblvGSqJ1uw1V3ExpEJSa82D9NO
 ASi8+rxik/LdCMTnVCeKaoouZpSh/0x/OXPu8PdjKJtCzO5o29TBQj2mAQ==
X-Google-Smtp-Source: AGHT+IG0eGZaLwvFyn9durPIJH/P3D5bjsrusDFtLbQuEW9dovzpGrg/2d6d9OQWE5/6ZhpbKvSfuA==
X-Received: by 2002:a05:600c:1394:b0:41a:408c:579c with SMTP id
 u20-20020a05600c139400b0041a408c579cmr2223845wmf.1.1713972291932; 
 Wed, 24 Apr 2024 08:24:51 -0700 (PDT)
Received: from lili ([2a02:8440:3141:57c1:dedd:6b78:47bb:2a74])
 by smtp.gmail.com with ESMTPSA id
 p9-20020a05600c358900b00419f7b73c55sm15829864wmq.0.2024.04.24.08.24.49
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Apr 2024 08:24:50 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Wed, 24 Apr 2024 16:43:14 +0200
Message-ID: <87jzkmbz3x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a00:1450:4864:20::433;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x433.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Out of any network, I get this error:

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=3D1971d11d -- describe
guix time-machine: error: failed to load '/home/simon/.config//guix/channel=
s.scm':
guix/build/download.scm:399:8: In procedure open-socket-for-uri:
In procedure getaddrinfo: Name or service not known
--8<---------------cut here---------------end--------------->8---

And that=E2=80=99s annoying.  It comes from:

        $ cat /home/simon/.config//guix/channels.scm
        (use-modules (guix ci))

        (list (channel-with-substitutes-available
               %default-guix-channel
               "https://ci.guix.gnu.org"))

as documented by section =E2=80=9CChannels with Substitutes=E2=80=9D [1].

Specifically, the error is raised by the procedure =E2=80=99load*=E2=80=99 =
called by
=E2=80=99channel-list=E2=80=99 inside =E2=80=99load-channels=E2=80=99.  Oth=
er said, =E2=80=99load*=E2=80=99 runs the
procedure =E2=80=99channel-with-substitutes-available=E2=80=99 which asks n=
etwork via
the procedure =E2=80=99find-latest-commit-with-substitutes=E2=80=99.

I think this is incorrect; the correct behaviour seems trying to do as
most as possible.  With the attached patch, I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix time-machine --commit=3D1971d11d -- describe
guix time-machine: warning: could not find available substitutes at https:/=
/ci.guix.gnu.org
  guix 1971d11
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1971d11db9ed9683d5036cd4c62deb564842e1f6
--8<---------------cut here---------------end--------------->8---

Obviously, the option =E2=80=99-q=E2=80=99 allows to bypass the problem. :-=
)  However,
it=E2=80=99s annoying because the default file channels.scm can be complex =
and
it still should work without any tweak, IMHO.

Well, the proposed fix is here to catch the error; maybe it could be
finer than #t.

WDYT?

Cheers,
simon


1: https://guix.gnu.org/manual/devel/en/guix.html#Channels-with-Substitutes


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-ci-Catch-error-for-channel-with-substitutes.patch
Content-Description: p.patch

From 5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6 Mon Sep 17 00:00:00 2001
Message-ID: <5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6.1713969693.git.zimon.toutoune@HIDDEN>
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Wed, 24 Apr 2024 16:39:10 +0200
Subject: [PATCH] ci: Catch error for channel with substitutes.

* guix/ci.scm (channel-with-substitutes-available): Catch all error when
running 'find-latest-commit-with-substitutes'.  Move the warning when failing.

Change-Id: I352e07f14417f77c7ebf0f40a01c6a2e58b15d78
---
 guix/ci.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/guix/ci.scm b/guix/ci.scm
index 5d16ee69d0..b2077448b0 100644
--- a/guix/ci.scm
+++ b/guix/ci.scm
@@ -336,10 +336,13 @@ (define (channel-with-substitutes-available chan url)
 
 If no commit with available substitutes were found, the commit field is set to
 false and a warning message is printed."
-  (let ((commit (find-latest-commit-with-substitutes url)))
-    (unless commit
-      (warning (G_ "could not find available substitutes at ~a~%")
-               url))
+  (let ((commit (catch #t
+                  (lambda ()
+                    (find-latest-commit-with-substitutes url))
+                  (lambda _
+                    (warning (G_ "could not find available substitutes at ~a~%")
+                             url)
+                    #false))))
     (channel
      (inherit chan)
      (commit commit))))

base-commit: 10d0e2d3110e4be2bc6cfecb9a3abb83d8e1ddd6
-- 
2.41.0


--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: bug#70551: Acknowledgement (channel-with-substitutes-available
 without network)
Message-ID: <handler.70551.B.17139723412521.ack <at> debbugs.gnu.org>
References: <87jzkmbz3x.fsf@HIDDEN>
X-Gnu-PR-Message: ack 70551
X-Gnu-PR-Package: guix
Reply-To: 70551 <at> debbugs.gnu.org
Date: Wed, 24 Apr 2024 15:26:17 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 70551 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
70551: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70551
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#70551: channel-with-substitutes-available without network
Resent-From: Simon Tournier <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 05 Jun 2024 16:35:02 +0000
Resent-Message-ID: <handler.70551.B70551.171760527026027 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 70551
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 70551 <at> debbugs.gnu.org
Cc: Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>, Christopher Baines <guix@HIDDEN>
Received: via spool by 70551-submit <at> debbugs.gnu.org id=B70551.171760527026027
          (code B ref 70551); Wed, 05 Jun 2024 16:35:02 +0000
Received: (at 70551) by debbugs.gnu.org; 5 Jun 2024 16:34:30 +0000
Received: from localhost ([127.0.0.1]:47254 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sEtan-0006lX-9a
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2024 12:34:29 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:39621)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1sEtal-0006kz-Fx
 for 70551 <at> debbugs.gnu.org; Wed, 05 Jun 2024 12:34:28 -0400
Received: by mail-wr1-f49.google.com with SMTP id
 ffacd0b85a97d-35dca51a5b1so326067f8f.2
 for <70551 <at> debbugs.gnu.org>; Wed, 05 Jun 2024 09:34:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717605187; x=1718209987; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=3iLraZ35tAfqhTQYWKkOquNgk5JOU/9zmJoBAPna7kc=;
 b=hEey/ri0iYDnYcsbWJKJejWxbVZYHKsH3EbAxBvP8Plbq5eWwATzyI9QTtXOwleRGH
 Mk5/44V8+5cToeUqATb8mkixEZbyc3qQmO+4jjC9wbZI94EF3pmzg/2NIMXXZnytyARI
 chPzZXMjNl6A5PqC/RH7eEZz50CSd1yjh8xERM91EN13fjRQAMtDN/Yc1Ld/3LbTKMhr
 TENXH/F9oye07GwF5Kzi4xEbTDZwr1R9Cfl3EPtuDbg2Gz2AFPtBDVM/l5Hh4t5Lr03J
 cw/b7rlRAjbiRowGpF+rSymtD5dUiRvs6OkbNkTsXAQnD0yS6ty9D5pYZ0zz2lx/6hbe
 Xw2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717605187; x=1718209987;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=3iLraZ35tAfqhTQYWKkOquNgk5JOU/9zmJoBAPna7kc=;
 b=hpXpxMjuXRdKoxypmSv6WQ4VSb4wGsvNsCDnR5OB2yeynhTD7yAi0Mwinb4hee6AdK
 LpJmHl2KH35s1Qo0TVrWxgy91B4sZQCIwBALyLNy6PJj5Rodl8jjSNhYUWFuq8f7jBHb
 va1n2scKRlvZPo0R7NDEyqk9zz5p8KkAzHgw06xgJ137Ni5D5J9ypr5wVFyuXSx0WtQD
 9xkyXYeuoLKwaOcmAu5kY5EFe92FURxQfFTfxExc2DEyVjFflcRQQsWRMHc/0sPUYADU
 gTMMEytPABdQKTpOT+ktI1Dy4k6Qg1MUlEmvhYNmXLYyjQxidJ9zHn7GAue1L66LS9hW
 E4Nw==
X-Gm-Message-State: AOJu0YzU8Qi3Gp0BbWrk9opST0TJo0PghpmFITva+xjFTOvstuXk8ecu
 QglPA4XtbhntETBshrZvVUNZKyeLCwahwrN4XMhjcTvC9Zl89LII
X-Google-Smtp-Source: AGHT+IHRjplxM3gSHN4GRoInlA2IXwKl3vXTOp3cfJ4ZoJ+Gc1bh6dMhsKLrg16qw+ll9h06E/ShPQ==
X-Received: by 2002:a5d:456d:0:b0:35d:cf2b:9105 with SMTP id
 ffacd0b85a97d-35e8ef90f08mr1924387f8f.6.1717605187584; 
 Wed, 05 Jun 2024 09:33:07 -0700 (PDT)
Received: from lili (roam-nat-fw-prg-194-254-61-40.net.univ-paris-diderot.fr.
 [194.254.61.40]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-35dd04ca9b0sm15018723f8f.26.2024.06.05.09.33.07
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 05 Jun 2024 09:33:07 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
In-Reply-To: <87jzkmbz3x.fsf@HIDDEN>
References: <87jzkmbz3x.fsf@HIDDEN>
Date: Wed, 05 Jun 2024 10:14:14 +0200
Message-ID: <87jzj3rell.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, CC: core team On Wed, 24 Apr 2024 at 16:43,
 Simon Tournier wrote: 
 Content analysis details:   (1.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (zimon.toutoune[at]gmail.com)
 1.1 DATE_IN_PAST_06_12     Date: is 6 to 12 hours before Received: date
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.221.49 listed in wl.mailspike.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.221.49 listed in list.dnswl.org]
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.1 (/)

Hi,

CC: core team

On Wed, 24 Apr 2024 at 16:43, Simon Tournier <zimon.toutoune@HIDDEN> wro=
te:

> Out of any network, I get this error:
>
> --8<---------------cut here---------------start------------->8---
> $ guix time-machine --commit=3D1971d11d -- describe
> guix time-machine: error: failed to load '/home/simon/.config//guix/chann=
els.scm':
> guix/build/download.scm:399:8: In procedure open-socket-for-uri:
> In procedure getaddrinfo: Name or service not known
> --8<---------------cut here---------------end--------------->8---
>
> And that=E2=80=99s annoying.  It comes from:
>
>         $ cat /home/simon/.config//guix/channels.scm
>         (use-modules (guix ci))
>
>         (list (channel-with-substitutes-available
>                %default-guix-channel
>                "https://ci.guix.gnu.org"))
>
> as documented by section =E2=80=9CChannels with Substitutes=E2=80=9D [1].
>
> Specifically, the error is raised by the procedure =E2=80=99load*=E2=80=
=99 called by
> =E2=80=99channel-list=E2=80=99 inside =E2=80=99load-channels=E2=80=99.  O=
ther said, =E2=80=99load*=E2=80=99 runs the
> procedure =E2=80=99channel-with-substitutes-available=E2=80=99 which asks=
 network via
> the procedure =E2=80=99find-latest-commit-with-substitutes=E2=80=99.
>
> I think this is incorrect; the correct behaviour seems trying to do as
> most as possible.  With the attached patch, I get:
>
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix time-machine --commit=3D1971d11d -- describe
> guix time-machine: warning: could not find available substitutes at https=
://ci.guix.gnu.org
>   guix 1971d11
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 1971d11db9ed9683d5036cd4c62deb564842e1f6
> --8<---------------cut here---------------end--------------->8---
>
> Obviously, the option =E2=80=99-q=E2=80=99 allows to bypass the problem. =
:-)  However,
> it=E2=80=99s annoying because the default file channels.scm can be comple=
x and
> it still should work without any tweak, IMHO.
>
> Well, the proposed fix is here to catch the error; maybe it could be
> finer than #t.
>
> WDYT?
>
> Cheers,
> simon
>
>
> 1: https://guix.gnu.org/manual/devel/en/guix.html#Channels-with-Substitut=
es
>
> From 5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6 Mon Sep 17 00:00:00 2001
> Message-ID: <5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6.1713969693.git.zimo=
n.toutoune@HIDDEN>
> From: Simon Tournier <zimon.toutoune@HIDDEN>
> Date: Wed, 24 Apr 2024 16:39:10 +0200
> Subject: [PATCH] ci: Catch error for channel with substitutes.
>
> * guix/ci.scm (channel-with-substitutes-available): Catch all error when
> running 'find-latest-commit-with-substitutes'.  Move the warning when fai=
ling.
>
> Change-Id: I352e07f14417f77c7ebf0f40a01c6a2e58b15d78
> ---
>  guix/ci.scm | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/guix/ci.scm b/guix/ci.scm
> index 5d16ee69d0..b2077448b0 100644
> --- a/guix/ci.scm
> +++ b/guix/ci.scm
> @@ -336,10 +336,13 @@ (define (channel-with-substitutes-available chan ur=
l)
>=20=20
>  If no commit with available substitutes were found, the commit field is =
set to
>  false and a warning message is printed."
> -  (let ((commit (find-latest-commit-with-substitutes url)))
> -    (unless commit
> -      (warning (G_ "could not find available substitutes at ~a~%")
> -               url))
> +  (let ((commit (catch #t
> +                  (lambda ()
> +                    (find-latest-commit-with-substitutes url))
> +                  (lambda _
> +                    (warning (G_ "could not find available substitutes a=
t ~a~%")
> +                             url)
> +                    #false))))
>      (channel
>       (inherit chan)
>       (commit commit))))
>
> base-commit: 10d0e2d3110e4be2bc6cfecb9a3abb83d8e1ddd6
> --=20
> 2.41.0

Friendly ping for this patch?


Cheers,
simon




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 5 Jun 2024 16:34:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 05 12:34:29 2024
Received: from localhost ([127.0.0.1]:47251 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sEtam-0006lR-FP
	for submit <at> debbugs.gnu.org; Wed, 05 Jun 2024 12:34:29 -0400
Received: from mail-lj1-f172.google.com ([209.85.208.172]:38209)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1sEtak-0006kv-Gi
 for control <at> debbugs.gnu.org; Wed, 05 Jun 2024 12:34:27 -0400
Received: by mail-lj1-f172.google.com with SMTP id
 38308e7fff4ca-2ea9814d3caso8491fa.1
 for <control <at> debbugs.gnu.org>; Wed, 05 Jun 2024 09:34:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717605186; x=1718209986; darn=debbugs.gnu.org;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=8Xr6m9aJdFcUhgBOZmdarer5uO1c9r+3EN59tRtRiXQ=;
 b=b05iE7B3AFCC8rJPFZ6FIyLRG9J1V/ddT5veaHNN138BrWB8d+k/sfDFHS1XYXJJku
 jrvNyFXk+Li5qhP7O1jVF4qEsjYOjndGgzRhDP1g7Jj55Yw1Nf08R27xw/ShjfVViEpo
 KWWQzPRci6RWVqkRDPBLH37DRBbWkW4jC/VFY0BYXTgCsm5LWGMJZZjIM/vABigvFlQi
 M/YPr8QRHcl571sGuPuL4zYfZnRkZn0J6p66e9a8geAeq2ReFGN8bvJ42ZaPeE3zbSrv
 JX1nBEKS53cKMCqJZv7OAQ33idwfl0f6aynkJ+AJ7oiQ1wIHTA7hQnlQyGSZvVJ2UwMp
 wQdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717605186; x=1718209986;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=8Xr6m9aJdFcUhgBOZmdarer5uO1c9r+3EN59tRtRiXQ=;
 b=a792Ze5oAWoj6uLIwTCFM/DxSnxlq7guasiTr8YLjrs90a7uPrLmzv1XLeoXxer2C3
 Wqf5Hgx6i/h8HgExquZpqX2pykIe31qt9iInQd9Ncd3fsJPTRFlqevpBtR5M+jYnbZkB
 Ue1J9Mu+XKdUCiiVSAop7E/R6FEizQM0BqWrzzulMy4dMAdJO5P3QGyuj448a/MPqmu2
 FfO9JLZmJ7EBt3H0p5M0dvysjEoHktrgGZ5iJ+OtVer7jCSHVef/3FI3xkK6f50AGd+L
 erKygqnFGTjUkdrV++OHv/DnZCkyHVN1kuWvscQbfxmwEXc8Oyj//3vtxFXLiMH1Bu8X
 Y3zQ==
X-Gm-Message-State: AOJu0YyB+cOy3GP+FERhFT7tmCypArn1cqTXozIFlmhvsGWvQoV1fNyt
 HTV1v3pyGRzd63ziQbNIA4EN7eWLmzPU6PCvJ69/P+MIRJF9Odbey9qXqw==
X-Google-Smtp-Source: AGHT+IExNqeDq4sJ1McelaAwpRqtaf+QDJAbgLVtSZwl2fLTnMRHl5Th51QDq0TboEQa3pIYdTPlCw==
X-Received: by 2002:a2e:9e8a:0:b0:2ea:7e4a:d85b with SMTP id
 38308e7fff4ca-2eac7b07d7emr15465771fa.5.1717605186242; 
 Wed, 05 Jun 2024 09:33:06 -0700 (PDT)
Received: from lili (roam-nat-fw-prg-194-254-61-44.net.univ-paris-diderot.fr.
 [194.254.61.44]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-42158135ea8sm26718875e9.37.2024.06.05.09.33.05
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 05 Jun 2024 09:33:05 -0700 (PDT)
Date: Wed, 05 Jun 2024 10:09:39 +0200
Message-Id: <87plsvret8.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: control message for bug #70551
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  tags 70551 + patch quit 
 Content analysis details:   (1.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (zimon.toutoune[at]gmail.com)
 1.1 DATE_IN_PAST_06_12     Date: is 6 to 12 hours before Received: date
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.208.172 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.208.172 listed in wl.mailspike.net]
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.1 (/)

tags 70551 + patch
quit





Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: bug#70551: closed (channel-with-substitutes-available without
 network)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.70551.D70551.172174544613240.ackdone <at> debbugs.gnu.org>
References: <87h6cgfa6f.fsf@HIDDEN> <87jzkmbz3x.fsf@HIDDEN>
X-Gnu-PR-Message: closed 70551
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Date: Tue, 23 Jul 2024 14:38:03 +0000
Content-Type: multipart/mixed; boundary="----------=_1721745483-13321-0"

This is a multi-part message in MIME format...

------------=_1721745483-13321-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Tue, 23 Jul 2024 16:35:36 +0200
with message-id <87h6cgfa6f.fsf@HIDDEN>
and subject line Re: bug#70551: channel-with-substitutes-available without =
network
has caused the debbugs.gnu.org bug report #70551,
regarding channel-with-substitutes-available without network
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
70551: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70551
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1721745483-13321-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 24 Apr 2024 15:25:41 +0000
Received: from localhost ([127.0.0.1]:58968 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rzeUz-0000ca-Ha
	for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47976)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1rzeUq-0000aB-28
 for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:25 -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 <zimon.toutoune@HIDDEN>)
 id 1rzeUT-0002gK-0B
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:57 -0400
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1rzeUQ-0003M4-75
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:56 -0400
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-346a5dea2f4so1464731f8f.1
 for <bug-guix@HIDDEN>; Wed, 24 Apr 2024 08:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1713972292; x=1714577092; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SbMoozoQxem/uQkSfUk0mMepLm3MS3vG9NEgTskBxXXLpX+fPTQ9wL5OCKo9WoVopN
 U/TeLm5W4DeWwcbcdqGrqApxPrIOJcANs0Ae8I72o4UM4X+mjubvRSwwfuLlwpRmH9eb
 Z88msedllxzjcp/d4M8tuAKpAX7edNYKkg9OWMdP7WDBE2lXGaNtn+DaNMuoWzLoTPvJ
 iXTC1Gj0TyaZNq3v2qUXO0veicH31Dw+BY16agjCk2SVsdz+gmU1L3shKZagaakcYmPe
 EyvF147W6CD/KvrK1t4rxcd312hjbLPGMPPpZ//3Iwg08knrz5WLPM0zK4YRSUz57Q7o
 tCRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1713972292; x=1714577092;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SqnYA531neo/RcCfiuo+Mrp3v8En+PUtD0uHAZ0jPBFuLuQwMcatnX4kyQlt9No6xU
 /x5xt+Vcj12zB8O+flQulJrTjdJVUFIgaCmL2x+Dx7zSdU397LM06zkBnEjQJ2a8Yyeo
 W4zgxqojHVCF2j9fr8CT4bFtoQToVibMatHItE8/w1HB80dSHA+3Zoljw0eRFe5w0zk9
 T0n/qMyGy/G8ku186jh+7pmr43OJwGJchMXMs7fBpt5CzWgzM6RaHTdeeAi0PdFlHcw2
 oESakD440LUAeGxtXG4vAFIWOXSxVz0LTJxR3bTOH5A4Ex7K1Tb/NwgB7tnDuqXIiy03
 B11A==
X-Gm-Message-State: AOJu0Yy/nfLfO4N8tmMHhswM66ppnLblvGSqJ1uw1V3ExpEJSa82D9NO
 ASi8+rxik/LdCMTnVCeKaoouZpSh/0x/OXPu8PdjKJtCzO5o29TBQj2mAQ==
X-Google-Smtp-Source: AGHT+IG0eGZaLwvFyn9durPIJH/P3D5bjsrusDFtLbQuEW9dovzpGrg/2d6d9OQWE5/6ZhpbKvSfuA==
X-Received: by 2002:a05:600c:1394:b0:41a:408c:579c with SMTP id
 u20-20020a05600c139400b0041a408c579cmr2223845wmf.1.1713972291932; 
 Wed, 24 Apr 2024 08:24:51 -0700 (PDT)
Received: from lili ([2a02:8440:3141:57c1:dedd:6b78:47bb:2a74])
 by smtp.gmail.com with ESMTPSA id
 p9-20020a05600c358900b00419f7b73c55sm15829864wmq.0.2024.04.24.08.24.49
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Apr 2024 08:24:50 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Subject: channel-with-substitutes-available without network
Date: Wed, 24 Apr 2024 16:43:14 +0200
Message-ID: <87jzkmbz3x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a00:1450:4864:20::433;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x433.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Out of any network, I get this error:

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=3D1971d11d -- describe
guix time-machine: error: failed to load '/home/simon/.config//guix/channel=
s.scm':
guix/build/download.scm:399:8: In procedure open-socket-for-uri:
In procedure getaddrinfo: Name or service not known
--8<---------------cut here---------------end--------------->8---

And that=E2=80=99s annoying.  It comes from:

        $ cat /home/simon/.config//guix/channels.scm
        (use-modules (guix ci))

        (list (channel-with-substitutes-available
               %default-guix-channel
               "https://ci.guix.gnu.org"))

as documented by section =E2=80=9CChannels with Substitutes=E2=80=9D [1].

Specifically, the error is raised by the procedure =E2=80=99load*=E2=80=99 =
called by
=E2=80=99channel-list=E2=80=99 inside =E2=80=99load-channels=E2=80=99.  Oth=
er said, =E2=80=99load*=E2=80=99 runs the
procedure =E2=80=99channel-with-substitutes-available=E2=80=99 which asks n=
etwork via
the procedure =E2=80=99find-latest-commit-with-substitutes=E2=80=99.

I think this is incorrect; the correct behaviour seems trying to do as
most as possible.  With the attached patch, I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix time-machine --commit=3D1971d11d -- describe
guix time-machine: warning: could not find available substitutes at https:/=
/ci.guix.gnu.org
  guix 1971d11
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1971d11db9ed9683d5036cd4c62deb564842e1f6
--8<---------------cut here---------------end--------------->8---

Obviously, the option =E2=80=99-q=E2=80=99 allows to bypass the problem. :-=
)  However,
it=E2=80=99s annoying because the default file channels.scm can be complex =
and
it still should work without any tweak, IMHO.

Well, the proposed fix is here to catch the error; maybe it could be
finer than #t.

WDYT?

Cheers,
simon


1: https://guix.gnu.org/manual/devel/en/guix.html#Channels-with-Substitutes


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-ci-Catch-error-for-channel-with-substitutes.patch
Content-Description: p.patch

From 5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6 Mon Sep 17 00:00:00 2001
Message-ID: <5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6.1713969693.git.zimon.toutoune@HIDDEN>
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Wed, 24 Apr 2024 16:39:10 +0200
Subject: [PATCH] ci: Catch error for channel with substitutes.

* guix/ci.scm (channel-with-substitutes-available): Catch all error when
running 'find-latest-commit-with-substitutes'.  Move the warning when failing.

Change-Id: I352e07f14417f77c7ebf0f40a01c6a2e58b15d78
---
 guix/ci.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/guix/ci.scm b/guix/ci.scm
index 5d16ee69d0..b2077448b0 100644
--- a/guix/ci.scm
+++ b/guix/ci.scm
@@ -336,10 +336,13 @@ (define (channel-with-substitutes-available chan url)
 
 If no commit with available substitutes were found, the commit field is set to
 false and a warning message is printed."
-  (let ((commit (find-latest-commit-with-substitutes url)))
-    (unless commit
-      (warning (G_ "could not find available substitutes at ~a~%")
-               url))
+  (let ((commit (catch #t
+                  (lambda ()
+                    (find-latest-commit-with-substitutes url))
+                  (lambda _
+                    (warning (G_ "could not find available substitutes at ~a~%")
+                             url)
+                    #false))))
     (channel
      (inherit chan)
      (commit commit))))

base-commit: 10d0e2d3110e4be2bc6cfecb9a3abb83d8e1ddd6
-- 
2.41.0


--=-=-=--



------------=_1721745483-13321-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 70551-done) by debbugs.gnu.org; 23 Jul 2024 14:37:26 +0000
Received: from localhost ([127.0.0.1]:60471 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWGdp-0003RU-UA
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:37:26 -0400
Received: from mail-wr1-f54.google.com ([209.85.221.54]:37990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1sWGdn-0003R4-Sq
 for 70551-done <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:37:24 -0400
Received: by mail-wr1-f54.google.com with SMTP id
 ffacd0b85a97d-368633ca4ffso636312f8f.0
 for <70551-done <at> debbugs.gnu.org>; Tue, 23 Jul 2024 07:37:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721745373; x=1722350173; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=zQzj+2w4ff01QuzYEHTaXvROKFB1FLqibQbmjjrSrFI=;
 b=K4czE8OcS37FSDFbB2lD/dLIuWTvLadOXTzARcw8bFPOBFmQW1QAg1yGz15B38V/Qz
 rsMLNZRnSbdB11kCjpkAvB2TPWR3gI4iWk1QiX39ZjUAq4tVXeXETB8TZfg998Uo++V3
 k3he5AyerueHxlF+FeX5UXVdLLWTI7aFgJ/21FfeJNJoj4/Dea77SiMC87DlUhch4nFS
 l2PqIEzMvxEBXqWNNn3tHaOS1+k3OJlF4bHZyJb/kiztuo49/2tVg3sDJPEnzdboNF0G
 TdnnRMztaHIKiSduog28rKSTEHBZVjaOtb2sMCithTJe+88Jj5efaZ+QeKoab+IomGbz
 TBNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721745373; x=1722350173;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zQzj+2w4ff01QuzYEHTaXvROKFB1FLqibQbmjjrSrFI=;
 b=qPEEw7HRIx7u2wS70wAHjci5IRI11TwvjeQrs6Dk51b9I/utuMp8kkRkQpSl5oNAKT
 u9rVAoBjGEq2n5vc+dM1nkMgxrK+OtNESJw+CtZ5jGHVOmttQhm0yXLy/ItIpns6znUU
 3096eTJtsYrE9Lvf/6exVe6WVMZBR23a1KNhE08LTW+3561ettmuNbrIcy1FIaoQinDR
 0REJP04H02Aj8VUWdTaC7E21WqbN1Vxv0VXT1kqRNASMGpOcubnvb1AZ4Oo3kBhJyhJt
 KpBXWBH3TA2+ufIcb8po3gtApY12YUg+3hOlDGuJm7uD9ouyziaJh4V9lTQ2lcdE+vVf
 XgBA==
X-Gm-Message-State: AOJu0Yzt9n7H1nUKyqZU2YYaTCeyWyHMQK55DPYFME29Pgl55Xx4E/ue
 pEmPhv+QJRA7vKvGM9g0HHBm5C7ZKD46Vb+qOKDpH3aTBh3BuUhy
X-Google-Smtp-Source: AGHT+IFQHqVU+XdYIX5+gA+77D5wXldpYblyxpr12SMS2agatkBkTvfVfu7i0SQR+vWnqD/BjJdZsw==
X-Received: by 2002:a05:600c:3c99:b0:427:f1a9:cb06 with SMTP id
 5b1f17b1804b1-427f1a9ce7amr9254465e9.0.1721745373588; 
 Tue, 23 Jul 2024 07:36:13 -0700 (PDT)
Received: from lili (2a02-8429-6820-f501-e58e-8032-398d-7493.rev.sfr.net.
 [2a02:8429:6820:f501:e58e:8032:398d:7493])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427d8fbacc8sm162303555e9.28.2024.07.23.07.36.11
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 07:36:13 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: 70551-done <at> debbugs.gnu.org
Subject: Re: bug#70551: channel-with-substitutes-available without network
In-Reply-To: <87jzj3rell.fsf@HIDDEN> (Simon Tournier's message of "Wed, 05
 Jun 2024 10:14:14 +0200")
References: <87jzkmbz3x.fsf@HIDDEN> <87jzj3rell.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 16:35:36 +0200
Message-ID: <87h6cgfa6f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70551-done
Cc: Josselin Poiret <dev@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>,
 Christopher Baines <guix@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Wed, 05 Jun 2024 at 10:14, Simon Tournier <zimon.toutoune@HIDDEN> wrote:
> On Wed, 24 Apr 2024 at 16:43, Simon Tournier <zimon.toutoune@HIDDEN> wrote:
>
>> Out of any network, I get this error:

[...]

>> Well, the proposed fix is here to catch the error; maybe it could be
>> finer than #t.

[...]

> Friendly ping for this patch?

Pushed as ffdcef5f36196f5e004ca6cb96f5accc0c73fc92.

Cheers,
simon


------------=_1721745483-13321-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Simon Tournier <zimon.toutoune@HIDDEN>
Subject: bug#70551: closed (Re: bug#70551: channel-with-substitutes-available
 without network)
Message-ID: <handler.70551.D70551.172174544613240.notifdone <at> debbugs.gnu.org>
References: <87h6cgfa6f.fsf@HIDDEN> <87jzkmbz3x.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 70551
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Reply-To: 70551 <at> debbugs.gnu.org
Date: Tue, 23 Jul 2024 14:38:04 +0000
Content-Type: multipart/mixed; boundary="----------=_1721745484-13321-1"

This is a multi-part message in MIME format...

------------=_1721745484-13321-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#70551: channel-with-substitutes-available without network

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70551 <at> debbugs.gnu.org.

--=20
70551: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70551
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1721745484-13321-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 70551-done) by debbugs.gnu.org; 23 Jul 2024 14:37:26 +0000
Received: from localhost ([127.0.0.1]:60471 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWGdp-0003RU-UA
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:37:26 -0400
Received: from mail-wr1-f54.google.com ([209.85.221.54]:37990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1sWGdn-0003R4-Sq
 for 70551-done <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:37:24 -0400
Received: by mail-wr1-f54.google.com with SMTP id
 ffacd0b85a97d-368633ca4ffso636312f8f.0
 for <70551-done <at> debbugs.gnu.org>; Tue, 23 Jul 2024 07:37:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721745373; x=1722350173; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=zQzj+2w4ff01QuzYEHTaXvROKFB1FLqibQbmjjrSrFI=;
 b=K4czE8OcS37FSDFbB2lD/dLIuWTvLadOXTzARcw8bFPOBFmQW1QAg1yGz15B38V/Qz
 rsMLNZRnSbdB11kCjpkAvB2TPWR3gI4iWk1QiX39ZjUAq4tVXeXETB8TZfg998Uo++V3
 k3he5AyerueHxlF+FeX5UXVdLLWTI7aFgJ/21FfeJNJoj4/Dea77SiMC87DlUhch4nFS
 l2PqIEzMvxEBXqWNNn3tHaOS1+k3OJlF4bHZyJb/kiztuo49/2tVg3sDJPEnzdboNF0G
 TdnnRMztaHIKiSduog28rKSTEHBZVjaOtb2sMCithTJe+88Jj5efaZ+QeKoab+IomGbz
 TBNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721745373; x=1722350173;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zQzj+2w4ff01QuzYEHTaXvROKFB1FLqibQbmjjrSrFI=;
 b=qPEEw7HRIx7u2wS70wAHjci5IRI11TwvjeQrs6Dk51b9I/utuMp8kkRkQpSl5oNAKT
 u9rVAoBjGEq2n5vc+dM1nkMgxrK+OtNESJw+CtZ5jGHVOmttQhm0yXLy/ItIpns6znUU
 3096eTJtsYrE9Lvf/6exVe6WVMZBR23a1KNhE08LTW+3561ettmuNbrIcy1FIaoQinDR
 0REJP04H02Aj8VUWdTaC7E21WqbN1Vxv0VXT1kqRNASMGpOcubnvb1AZ4Oo3kBhJyhJt
 KpBXWBH3TA2+ufIcb8po3gtApY12YUg+3hOlDGuJm7uD9ouyziaJh4V9lTQ2lcdE+vVf
 XgBA==
X-Gm-Message-State: AOJu0Yzt9n7H1nUKyqZU2YYaTCeyWyHMQK55DPYFME29Pgl55Xx4E/ue
 pEmPhv+QJRA7vKvGM9g0HHBm5C7ZKD46Vb+qOKDpH3aTBh3BuUhy
X-Google-Smtp-Source: AGHT+IFQHqVU+XdYIX5+gA+77D5wXldpYblyxpr12SMS2agatkBkTvfVfu7i0SQR+vWnqD/BjJdZsw==
X-Received: by 2002:a05:600c:3c99:b0:427:f1a9:cb06 with SMTP id
 5b1f17b1804b1-427f1a9ce7amr9254465e9.0.1721745373588; 
 Tue, 23 Jul 2024 07:36:13 -0700 (PDT)
Received: from lili (2a02-8429-6820-f501-e58e-8032-398d-7493.rev.sfr.net.
 [2a02:8429:6820:f501:e58e:8032:398d:7493])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427d8fbacc8sm162303555e9.28.2024.07.23.07.36.11
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 07:36:13 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: 70551-done <at> debbugs.gnu.org
Subject: Re: bug#70551: channel-with-substitutes-available without network
In-Reply-To: <87jzj3rell.fsf@HIDDEN> (Simon Tournier's message of "Wed, 05
 Jun 2024 10:14:14 +0200")
References: <87jzkmbz3x.fsf@HIDDEN> <87jzj3rell.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 16:35:36 +0200
Message-ID: <87h6cgfa6f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70551-done
Cc: Josselin Poiret <dev@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>,
 Christopher Baines <guix@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

On Wed, 05 Jun 2024 at 10:14, Simon Tournier <zimon.toutoune@HIDDEN> wrote:
> On Wed, 24 Apr 2024 at 16:43, Simon Tournier <zimon.toutoune@HIDDEN> wrote:
>
>> Out of any network, I get this error:

[...]

>> Well, the proposed fix is here to catch the error; maybe it could be
>> finer than #t.

[...]

> Friendly ping for this patch?

Pushed as ffdcef5f36196f5e004ca6cb96f5accc0c73fc92.

Cheers,
simon


------------=_1721745484-13321-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 24 Apr 2024 15:25:41 +0000
Received: from localhost ([127.0.0.1]:58968 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rzeUz-0000ca-Ha
	for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47976)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1rzeUq-0000aB-28
 for submit <at> debbugs.gnu.org; Wed, 24 Apr 2024 11:25:25 -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 <zimon.toutoune@HIDDEN>)
 id 1rzeUT-0002gK-0B
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:57 -0400
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1rzeUQ-0003M4-75
 for bug-guix@HIDDEN; Wed, 24 Apr 2024 11:24:56 -0400
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-346a5dea2f4so1464731f8f.1
 for <bug-guix@HIDDEN>; Wed, 24 Apr 2024 08:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1713972292; x=1714577092; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SbMoozoQxem/uQkSfUk0mMepLm3MS3vG9NEgTskBxXXLpX+fPTQ9wL5OCKo9WoVopN
 U/TeLm5W4DeWwcbcdqGrqApxPrIOJcANs0Ae8I72o4UM4X+mjubvRSwwfuLlwpRmH9eb
 Z88msedllxzjcp/d4M8tuAKpAX7edNYKkg9OWMdP7WDBE2lXGaNtn+DaNMuoWzLoTPvJ
 iXTC1Gj0TyaZNq3v2qUXO0veicH31Dw+BY16agjCk2SVsdz+gmU1L3shKZagaakcYmPe
 EyvF147W6CD/KvrK1t4rxcd312hjbLPGMPPpZ//3Iwg08knrz5WLPM0zK4YRSUz57Q7o
 tCRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1713972292; x=1714577092;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=etbDxdfsQYzt0ywv4n94B4HYxCL+1156RXHq3l5H2XU=;
 b=SqnYA531neo/RcCfiuo+Mrp3v8En+PUtD0uHAZ0jPBFuLuQwMcatnX4kyQlt9No6xU
 /x5xt+Vcj12zB8O+flQulJrTjdJVUFIgaCmL2x+Dx7zSdU397LM06zkBnEjQJ2a8Yyeo
 W4zgxqojHVCF2j9fr8CT4bFtoQToVibMatHItE8/w1HB80dSHA+3Zoljw0eRFe5w0zk9
 T0n/qMyGy/G8ku186jh+7pmr43OJwGJchMXMs7fBpt5CzWgzM6RaHTdeeAi0PdFlHcw2
 oESakD440LUAeGxtXG4vAFIWOXSxVz0LTJxR3bTOH5A4Ex7K1Tb/NwgB7tnDuqXIiy03
 B11A==
X-Gm-Message-State: AOJu0Yy/nfLfO4N8tmMHhswM66ppnLblvGSqJ1uw1V3ExpEJSa82D9NO
 ASi8+rxik/LdCMTnVCeKaoouZpSh/0x/OXPu8PdjKJtCzO5o29TBQj2mAQ==
X-Google-Smtp-Source: AGHT+IG0eGZaLwvFyn9durPIJH/P3D5bjsrusDFtLbQuEW9dovzpGrg/2d6d9OQWE5/6ZhpbKvSfuA==
X-Received: by 2002:a05:600c:1394:b0:41a:408c:579c with SMTP id
 u20-20020a05600c139400b0041a408c579cmr2223845wmf.1.1713972291932; 
 Wed, 24 Apr 2024 08:24:51 -0700 (PDT)
Received: from lili ([2a02:8440:3141:57c1:dedd:6b78:47bb:2a74])
 by smtp.gmail.com with ESMTPSA id
 p9-20020a05600c358900b00419f7b73c55sm15829864wmq.0.2024.04.24.08.24.49
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Apr 2024 08:24:50 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Subject: channel-with-substitutes-available without network
Date: Wed, 24 Apr 2024 16:43:14 +0200
Message-ID: <87jzkmbz3x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a00:1450:4864:20::433;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x433.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Out of any network, I get this error:

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=3D1971d11d -- describe
guix time-machine: error: failed to load '/home/simon/.config//guix/channel=
s.scm':
guix/build/download.scm:399:8: In procedure open-socket-for-uri:
In procedure getaddrinfo: Name or service not known
--8<---------------cut here---------------end--------------->8---

And that=E2=80=99s annoying.  It comes from:

        $ cat /home/simon/.config//guix/channels.scm
        (use-modules (guix ci))

        (list (channel-with-substitutes-available
               %default-guix-channel
               "https://ci.guix.gnu.org"))

as documented by section =E2=80=9CChannels with Substitutes=E2=80=9D [1].

Specifically, the error is raised by the procedure =E2=80=99load*=E2=80=99 =
called by
=E2=80=99channel-list=E2=80=99 inside =E2=80=99load-channels=E2=80=99.  Oth=
er said, =E2=80=99load*=E2=80=99 runs the
procedure =E2=80=99channel-with-substitutes-available=E2=80=99 which asks n=
etwork via
the procedure =E2=80=99find-latest-commit-with-substitutes=E2=80=99.

I think this is incorrect; the correct behaviour seems trying to do as
most as possible.  With the attached patch, I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix time-machine --commit=3D1971d11d -- describe
guix time-machine: warning: could not find available substitutes at https:/=
/ci.guix.gnu.org
  guix 1971d11
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1971d11db9ed9683d5036cd4c62deb564842e1f6
--8<---------------cut here---------------end--------------->8---

Obviously, the option =E2=80=99-q=E2=80=99 allows to bypass the problem. :-=
)  However,
it=E2=80=99s annoying because the default file channels.scm can be complex =
and
it still should work without any tweak, IMHO.

Well, the proposed fix is here to catch the error; maybe it could be
finer than #t.

WDYT?

Cheers,
simon


1: https://guix.gnu.org/manual/devel/en/guix.html#Channels-with-Substitutes


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-ci-Catch-error-for-channel-with-substitutes.patch
Content-Description: p.patch

From 5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6 Mon Sep 17 00:00:00 2001
Message-ID: <5955a4c3f913d1aa77ec3a27d6430f3dcf22aab6.1713969693.git.zimon.toutoune@HIDDEN>
From: Simon Tournier <zimon.toutoune@HIDDEN>
Date: Wed, 24 Apr 2024 16:39:10 +0200
Subject: [PATCH] ci: Catch error for channel with substitutes.

* guix/ci.scm (channel-with-substitutes-available): Catch all error when
running 'find-latest-commit-with-substitutes'.  Move the warning when failing.

Change-Id: I352e07f14417f77c7ebf0f40a01c6a2e58b15d78
---
 guix/ci.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/guix/ci.scm b/guix/ci.scm
index 5d16ee69d0..b2077448b0 100644
--- a/guix/ci.scm
+++ b/guix/ci.scm
@@ -336,10 +336,13 @@ (define (channel-with-substitutes-available chan url)
 
 If no commit with available substitutes were found, the commit field is set to
 false and a warning message is printed."
-  (let ((commit (find-latest-commit-with-substitutes url)))
-    (unless commit
-      (warning (G_ "could not find available substitutes at ~a~%")
-               url))
+  (let ((commit (catch #t
+                  (lambda ()
+                    (find-latest-commit-with-substitutes url))
+                  (lambda _
+                    (warning (G_ "could not find available substitutes at ~a~%")
+                             url)
+                    #false))))
     (channel
      (inherit chan)
      (commit commit))))

base-commit: 10d0e2d3110e4be2bc6cfecb9a3abb83d8e1ddd6
-- 
2.41.0


--=-=-=--



------------=_1721745484-13321-1--



Last modified: Tue, 23 Jul 2024 14:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.