Subject: bug#69070: ‘guix lint -c archival python-scikit-learn’ crashes

From: Ludovic Courtès <[email-masked]>
Date: Thu, 12 Sep 2024 10:31:49 +0200

Hi Simon,

Simon Tournier <[email-masked]> skribis:

> On Mon, 12 Feb 2024 at 11:11, Ludovic Courtès <[email-masked]> wrote:
>
>> (Note that this problem may vanish once
>> <https://issues.guix.gnu.org/68741> has been merged.)
>
> This had been merged.  Now, it does not crash.  Is the problem hidden or
> vanished?

I think the initial problem (that ‘snapshot-branches’ returns a
directory) is still there, although I cannot reproduce it right now
because SWH returns 500 currently:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(guix swh)
scheme@(guile-user)> (lookup-origin-revision "https://github.com/scikit-learn/scikit-learn" "1.3.2")
ice-9/boot-9.scm:1676:22: In procedure raise-exception:
Throw to key `swh-error' with args `("https://archive.softwareheritage.org/api/1/origin/https://github.com/scikit-learn/scikit-learn/visits/?per_page=30" #<procedure http-get* (uri . rest)> #<<response> version: (1 . 1) code: 500 reason-phrase: "Internal Server Error" headers: ((date . #<date nanosecond: 0 second: 48 minute: 28 hour: 8 day: 12 month: 9 year: 2024 zone-offset: 0>) (content-type application/json) (content-length . 130) (vary accept origin cookie) (allow HEAD OPTIONS GET OPTIONS) (x-ratelimit-limit . "120") (x-ratelimit-remaining . "118") (x-ratelimit-reset . "1726133328") (x-frame-options . "DENY") (x-content-type-options . "nosniff") (referrer-policy . "same-origin") (cross-origin-opener-policy . "same-origin") (x-varnish . "665128879") (age . 0) (via "1.1 varnish (Varnish/6.5)") (strict-transport-security . "max-age=15768000;") (connection close)) port: #<closed: string 7f0c8c5aea10>>)'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In guix/swh.scm:
   579:11  2 (lookup-origin-revision _ _)
   296:16  1 (call "https://archive.softwareheritage.org/api/1/origin/https://github.com/scikit-learn/scikit-learn/visits/?per_page=30" _ _ #:false-if-404? _)
In ice-9/boot-9.scm:
  1676:22  0 (raise-exception _ #:continuable? _)
--8<---------------cut here---------------end--------------->8---

That said, that code is much less useful now that
<https://issues.guix.gnu.org/68741> has been merged, so perhaps we could
close the issue?

Thanks,
Ludo’.