GNU bug report logs - #33432
[PATCH 0/2] Download Git checkouts from Software Heritage as a last resort

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Mon, 19 Nov 2018 16:14:01 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#33432: closed ([PATCH 0/2] Download Git checkouts from
 Software Heritage as a last resort)
Date: Mon, 26 Nov 2018 10:12:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 26 Nov 2018 11:11:21 +0100
with message-id <87tvk49mie.fsf <at> gnu.org>
and subject line Re: [bug#33432] [PATCH 0/2] Download Git checkouts from Software Heritage as a last resort
has caused the debbugs.gnu.org bug report #33432,
regarding [PATCH 0/2] Download Git checkouts from Software Heritage as a last resort
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
33432: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33432
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: [PATCH 0/2] Download Git checkouts from Software Heritage as a last
 resort
Date: Mon, 19 Nov 2018 17:13:25 +0100
Hello Guix!

This patch series adds the Software Heritage (SWH) client library initially
discussed at:

  https://lists.gnu.org/archive/html/guix-devel/2018-11/msg00285.html

Furthermore, it uses it in (guix git-download) to download code from SWH
when it is unavailable upstream and on our servers.  This bit relies on
the “vault” API of SWH, which allows you to fetch a checkout as a tarball.
Not all revisions are readily available as tarballs, understandably, so
the vault API has a mechanism that allows you to request the “cooking”
of a specific checkout.  Cooking is asynchronous and can take some time.

  https://docs.softwareheritage.org/devel/swh-vault/api.html

When downloading over SWH, the ‘swh-download’ procedure first resolves
the tag (if it’s a tag), then tries to download the corresponding tarball
from the vault.  If the vault doesn’t have it yet, it sends a cooking
request and waits for it to complete by periodically checking the cooking
status.

In the future, we should provide a “lister” and “loader” so that SWH can
regularly obtain a list of Guix packages with their source URL and
commit/tag:

  https://forge.softwareheritage.org/T1352

The SWH team is also considering pre-cooking all VCS tags such that
every time we refer to a tag, we can be sure its contents are already
available in the vault:

  https://forge.softwareheritage.org/T1350

Feedback welcome!

Ludo’.

Ludovic Courtès (2):
  Add (guix swh).
  git-download: Download from Software Heritage as a last resort.

 Makefile.am           |   1 +
 guix/git-download.scm |  64 +++--
 guix/swh.scm          | 551 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 596 insertions(+), 20 deletions(-)
 create mode 100644 guix/swh.scm

-- 
2.19.1



[Message part 3 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: 33432-done <at> debbugs.gnu.org
Subject: Re: [bug#33432] [PATCH 0/2] Download Git checkouts from Software
 Heritage as a last resort
Date: Mon, 26 Nov 2018 11:11:21 +0100
Hello,

Ludovic Courtès <ludo <at> gnu.org> skribis:

>   Add (guix swh).
>   git-download: Download from Software Heritage as a last resort.

Pushed!

  608d3dca89 git-download: Download from Software Heritage as a last resort.
  de2bfe9029 Add (guix swh).

Ludo’.


This bug report was last modified 6 years and 180 days ago.

Previous Next


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