From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 17 09:03:49 2021 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= To: bug-guix@gnu.org Subject: =?utf-8?B?4oCYZ3VpeCBsaW504oCZ?= throws an ugly backtrace if the GitHub updater receives =?utf-8?Q?=E2=80=9Crate?= limit =?utf-8?Q?exceeded=E2=80=9D?= error 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-Spam-Score: 1.7 (+) 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: When running ‘guix lint -c refresh’ on a package hosted on GitHub, I get an ugly backtrace when the GitHub rate limit has been reached. --88--- $ guix lint pipewire fetching CVE database for 2021... fetching CVE database for 2018... Backtrace:ipewire@0.3.29 [refresh]... 15 (pri [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.5 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: submit 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: 0.1 (/) --=-=-= 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----- --=-=-=--