From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2G2zLniavGE1YAEAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 15:11:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uPN+KniavGEGaAAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 14:11:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 66065D849 for ; Fri, 17 Dec 2021 15:11:04 +0100 (CET) Received: from localhost ([::1]:57388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myDwt-0005DA-Hr for larch@yhetil.org; Fri, 17 Dec 2021 09:11:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myDq6-00041L-AJ for bug-guix@gnu.org; Fri, 17 Dec 2021 09:04:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myDq6-0002mN-1Y for bug-guix@gnu.org; Fri, 17 Dec 2021 09:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myDq5-0004gb-NE for bug-guix@gnu.org; Fri, 17 Dec 2021 09:04:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52577: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?lint=E2=80=99?= throws an ugly backtrace if the GitHub updater receives =?UTF-8?Q?=E2=80=9Crate?= limit =?UTF-8?Q?exceeded=E2=80=9D?= error Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 17 Dec 2021 14:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52577 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52577@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163974982917989 (code B ref -1); Fri, 17 Dec 2021 14:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Dec 2021 14:03:49 +0000 Received: from localhost ([127.0.0.1]:38316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myDps-0004g4-LJ for submit@debbugs.gnu.org; Fri, 17 Dec 2021 09:03:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myDpr-0004fx-4D for submit@debbugs.gnu.org; Fri, 17 Dec 2021 09:03:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myDpp-0003Jd-T8 for bug-guix@gnu.org; Fri, 17 Dec 2021 09:03:45 -0500 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:48348 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myDpn-0002j0-9N for bug-guix@gnu.org; Fri, 17 Dec 2021 09:03:45 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1639749818; bh=W0fFGh3qfX1MtL7gbmEc8I8wEeGLZEvDdFtl9714zQE=; h=From:To:Subject:Date; b=dxEzH2jVdwHphCXn5yA8AZQ/p0A5j8KqZSt01xOE6JMyvnrxljyjRwe4BS/d8M3OI JxUhzGyir4WXsD91RSA/ovXZj9gkntHkKgl5xxlFI+9x9Sp5XLAFx+Ug2IzRxHoCUm kLBvJ5e+KZTzG2SFF3g62acPMgdBgQdmYlEK1yXg= Date: Fri, 17 Dec 2021 15:03:36 +0100 Message-ID: <87bl1fjpl3.fsf@disroot.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 53 X-Spam_score: 5.3 X-Spam_bar: +++++ X-Spam_report: (5.3 / 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, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=0.295, PDS_OTHER_BAD_TLD=1.997, PDS_RDNS_DYNAMIC_FP=0.001, RCVD_IN_PBL=3.335, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TO_NO_BRKTS_DYNIP=0.245 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639750264; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=rAGWwu0QvvgwdmnysT6MotQ+Cg8lhjHAEs2layiF9K4=; b=qg3fCttMgDzs75AAHex1QswFAi0ze28NsnCJy9gQ63EZjGBmWWNMmkNHMwWZIgAW0sFF9S sxkFUJvWECl708sKEShHvIEcJ0WzVwRps3GpnEQmaru3zZ2S4J/xvayeFYI7bW//FCM5x5 SXM4n8KkdCAY39UrdQGDMpAc+y65KjatqUJ35NLzUBmJm3AGQA8E1w50nLSyRe8Eu3cUSe ChW3Om6dnBMkG4LajkCpqDUhIAvYEGOWp22pH8A/kraewlD/FMIDW7gwz1qqMTpLSg8e5O bKmLi1dc0bHdtGqasHvSKsuRFE242VbBYm9pkebzekdqB+TpiDwvKoGfXqZDzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639750264; a=rsa-sha256; cv=none; b=QVwSZ7Gacy/r3PAAYkxDERle0dlXB0vdMgmFXJTqc6wSmfs47XedSGqlSGaaJVkS3TZPMY txJjjXjuNvIlO1thEOO7nLOBDDfTou21RDJrEvrCY2CfHhTNkkcC8jVpmzzy4hIKZkgx23 vEzzfmKa8jPl1/WiCu+QJ3CmMDfeUeHJGpKGxY/vNr3z8ZiuXM07cMY+8JMfoTbiYG5owk B0VmebVQ2OSafDY+GW8UX9FiK2u7nwRj28LaqiPRriOi08L2fc8hubUiHd2zSbOjCkWkUF ftHOlu9l0tPVcJQn3KMdXicY3ct8rfrcbBSJYGJdPBeDOruRnp7kNrcyOyIM9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=dxEzH2jV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=dxEzH2jV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 66065D849 X-Spam-Score: -5.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: pnMLTsTpJzTs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable When running =E2=80=98guix lint -c refresh=E2=80=99 on a package hosted on = GitHub, I get an ugly backtrace when the GitHub rate limit has been reached. =2D-8<---------------cut here---------------start------------->8--- $ guix lint pipewire fetching CVE database for 2021... fetching CVE database for 2018... Backtrace:ipewire@0.3.29 [refresh]... 15 (primitive-load "/home/yoctocell/.config/guix/current/b=E2=80= =A6") In guix/ui.scm: 2206:7 14 (run-guix . _) 2169:10 13 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 658:37 10 (thunk) In srfi/srfi-1.scm: 634:9 9 (for-each # =E2=80=A6) In guix/scripts/lint.scm: 65:4 8 (run-checkers _ _ #:store _) In srfi/srfi-1.scm: 634:9 7 (for-each # =E2=80=A6) In guix/scripts/lint.scm: 74:21 6 (_ _) In guix/lint.scm: 1428:5 5 (check-for-updates #) 771:2 4 (call-with-networking-fail-safe _ _ _) In ice-9/boot-9.scm: 1752:10 3 (with-exception-handler _ _ #:unwind? _ # _) 1685:16 2 (raise-exception _ #:continuable? _) 1683:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: ERROR: 1. &http-get-error: uri: #< scheme: https userinfo: #f host: "api.github.com" port: = #f path: "/repos/PipeWire/pipewire/releases" query: #f fragment: #f> code: 403 reason: "rate limit exceeded" 2. &message: "https://api.github.com/repos/PipeWire/pipewire/releases: HT= TP download failed: 403 (\"rate limit exceeded\")" =2D-8<---------------cut here---------------end--------------->8--- When running =E2=80=98guix refresh=E2=80=99, a much friendlier error messag= e is produced. =2D-8<---------------cut here---------------start------------->8--- $ guix refresh -t github guix refresh: error: https://api.github.com/repos/OpenZWave/open-zwave/rele= ases: HTTP download failed: 403 ("rate limit exceeded") =2D-8<---------------cut here---------------end--------------->8--- The problem seems to be that the =E2=80=98check-for-updates=E2=80=99 proced= ure in (guix lint) doesn=E2=80=99t catch the =E2=80=98&http-get-error=E2=80=99. I tried= adding the following form: =2D-8<---------------cut here---------------start------------->8--- (guard (c ((and (http-get-error? c) (string=3D? "rate limit exceeded" (http-get-error-reason c))) (warning (G_ "GitHub rate limit exceeded")) #f)) (with-networking-fail-safe ...)) =2D-8<---------------cut here---------------end--------------->8--- but it doesn=E2=80=99t work. C seems to be something a lot more complicated than just a =E2=80=98&http-get-error=E2=80=99: =2D-8<---------------cut here---------------start------------->8--- #<&compound-exception components: (#<&error> #<&irritants irritants: (#<&co= mpound-exception components: (#<&http-get-error uri: #< scheme: https = userinfo: #f host: "api.github.com" port: #f path: "/repos/PipeWire/pipewir= e/releases" query: #f fragment: #f> code: 403 reason: "rate limit exceeded"= > #<&message message: "https://api.github.com/repos/PipeWire/pipewire/relea= ses: HTTP download failed: 403 (\"rate limit exceeded\")">)>)> #<&exception= -with-kind-and-args kind: %exception args: (#<&compound-exception component= s: (#<&http-get-error uri: #< scheme: https userinfo: #f host: "api.gi= thub.com" port: #f path: "/repos/PipeWire/pipewire/releases" query: #f frag= ment: #f> code: 403 reason: "rate limit exceeded"> #<&message message: "htt= ps://api.github.com/repos/PipeWire/pipewire/releases: HTTP download failed:= 403 (\"rate limit exceeded\")">)>)>)> =2D-8<---------------cut here---------------end--------------->8--- Any ideas on how to extract to the =E2=80=98&http-get-error=E2=80=99? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmG8mLkVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5PDoP/3fUDQQMLHfcP/1+dg3qwwJ8hkO3 7Rv+Fuy2gFF2Gf/bCqY3dPEfMYoddKTzWqxJNf2ImalSoMdPGNx0JJS7nkVTJygg ETsKxGMcyYfBfSRcmxKH1NHkQnrjw4ZB4ih1OvUDpGaV2ZJDOetgELh0lNaDjznr 8s5EtjVn78SBVYJMgi6MFLtyow4d/7wM1lyt5nftO8BdOmW2WkM8KXYYVSpGfbfK aSh+EKIFAVFHBYLwTXnSTmdaP5CydWIMmEiUkzmi88pmmYfQVI2Kzvku0THX9C3E 78oN/PWc/Xjcipz/o5PcXYYoSYwmpuqpUGNjg6blwCG+9S0f7XwYE5E81mlsMaog IIwYhqDSqxaywKtKgFXW2aMDFQSYt0v6naqdxEa4nDfpoL+CoFxkhBInxeoCwqYl mxjN5y1ncC1Fjq4+2Xn9bNyXqN3Q2xu5YYUwvjXMZVSfN/rYZRyKKB6yirOWN0my 5+wl591PKxSp3c05Z2uOHZGgoZ1mJ6KOaFc9q2nTeL3MCPtYz9M72wmFaHks9NRv ZEefS485JqsTPvVpaERGfGV571Yiu+72a6bRMkf/omHiinulqXImcOL6TDmgVWdQ YNXOkzOuNY5/I/U83Eu7M4yHy/BXj7o62Noz0pOztEagMaoe1o3PzMfZWhywjw1R icMMKr78cMgQpBQ5 =hlsS -----END PGP SIGNATURE----- --=-=-=--