From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CCflHdKx2GV80gAA62LTzQ:P1 (envelope-from ) for ; Fri, 23 Feb 2024 15:55:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CCflHdKx2GV80gAA62LTzQ (envelope-from ) for ; Fri, 23 Feb 2024 15:55:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GiwDIiG4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708700114; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RPGOiBrxEfUUfBzRAXv9ylZUKOoCgdm9L8nF7Xr/38c=; b=Puovn/ZgLd2MDlnf3asmZwfnpFC3B7AxF6ajsNk2ry0X0DDFOTnOqD2JmJdh1ugyrQiies n2dLh6WpjIrXZIzKMdtGAD/gPLgVfiTVxHD7AmH8E+HquHLUCGaOZTSsEFuLpngj+u78s4 S1uZCtEHzifRW2lLfmTR+5xXF06aLXriNjpy+T6zoncxaW6uljwiosIS8d4/bod4oKQZ64 I/QPslAYGbzHv1c8Zbvl9ZwvKlNr2e3u98aG/VKfiJZjob2H+ol6GgGlvkeyfpMuU3wx2J Mc/OCqEP5XkJK1sr/+Lniv587pIL/8d7u1q5uOtFDQk6tKek9HIUt8IopRQXaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GiwDIiG4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708700114; a=rsa-sha256; cv=none; b=LR4i68Heg+Pz4L1BCI/RuB+cd4Gu77PeaT2kHTEGrRsbFEobeO12A+FPegSSQ1TvME1reL ca0dmWPKnTwOrLE9JkSdhXykayvBVL/BwXjkaixk37U7BYvgpD9CFLBTBreP15Nwi+BL7V PAUcy8HixLugi84Zk7FVwsZZOPZBadetC1LUhP+mH9ihkq5q8IOUKFvMjmwE1h/jaMI2ZB 32kp+cMqlJp5hUWxkuf+KAM4RUmOMpBlrHX/z4/r5nDNttBpw6ZlUmr8reuGDvF2W0ej8e 9T8egB2P5xWgXE+sevn4wr3jTqGBwivAomsjtz5b5yTnWnlvCcgCQ0V0Zkmm+g== 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 E44A76A686 for ; Fri, 23 Feb 2024 15:55:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdWx6-0000j2-Gg; Fri, 23 Feb 2024 09:55:04 -0500 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 ) id 1rdWo1-0006FH-Nn for guix-patches@gnu.org; Fri, 23 Feb 2024 09:45:41 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdWo1-0004KA-EI; Fri, 23 Feb 2024 09:45:41 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdWoM-0006ki-5u; Fri, 23 Feb 2024 09:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69328] [PATCH 00/12] Better source code recovery from SWH Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Fri, 23 Feb 2024 14:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69328 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69328@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.170869951825777 (code B ref -1); Fri, 23 Feb 2024 14:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Feb 2024 14:45:18 +0000 Received: from localhost ([127.0.0.1]:42770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdWnd-0006hh-SO for submit@debbugs.gnu.org; Fri, 23 Feb 2024 09:45:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:38556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdWna-0006gk-Iv for submit@debbugs.gnu.org; Fri, 23 Feb 2024 09:45:15 -0500 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 ) id 1rdWSC-0004EU-3j for guix-patches@gnu.org; Fri, 23 Feb 2024 09:23:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdWSA-0007Zm-RT; Fri, 23 Feb 2024 09:23:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=RPGOiBrxEfUUfBzRAXv9ylZUKOoCgdm9L8nF7Xr/38c=; b=GiwDIiG4O22zCN Cn+REMys7WfxdstKkaphttTIVak591Omk4OjU2Ez87Xy0NEjRHZxBbsi2X/c2f5FeWkt3x6/WLaB2 yGZV9Hkls6XRCWUhAPGBQQ/hKVQ+juDYzoDo2yF55a1CGagG1u6tgcXRgQ5UCwej12LSD0A9fDKXK hF3QyN5xLCSfszb9wHwW7WSP8XTwJto5j4xOxhLpLlY9IFq0kmJY5DgKwA3pveRr1crdOP3jQieYr 4T1ls1pEhNwX+8w6yLDXustMyOlfo694rieDbGM4CXrgkDlV186fuilLkjpRMDMJQzxxD5u/SoCrz m4Fu/Dqzmap6Ky3mJohg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 23 Feb 2024 15:22:51 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.67 X-Spam-Score: -4.67 X-Migadu-Queue-Id: E44A76A686 X-Migadu-Scanner: mx11.migadu.com X-TUID: XzYNNqMGes0m Hello Guix! This patch series improves source code recovery from SWH, as a followup to . It does several things: • ‘guix lint -c archival’ now emits save requests for VCSes other than Git. • Fix . • Allow content-addressed recovery of Mercurial and Subversion checkouts. • Allow Bazaar recovery using ‘download-nar’ (I didn’t bother with SWH). • Have all these things honor the ‘GUIX_DOWNLOAD_SEQUENCE’ environment variable. You can try the various methods like this: GUIX_DOWNLOAD_SEQUENCE=nar ./pre-inst-env guix build -S apl --check GUIX_DOWNLOAD_SEQUENCE=swh ./pre-inst-env guix build -S guile-wisp --check GUIX_DOWNLOAD_SEQUENCE=swh ./pre-inst-env guix build -S guile-gcrypt --check In the last case, note that you must be running guix-daemon for the checkout since that uses “builtin:git-download”, which is implemented on the server side. There’s a few caveats: • Mercurial SWH fallback almost works, but not quite, due to this SWH bug: . • Right now, no Subversion checkout has the nar-sha256 ExtID at SWH for unclear reasons, so retrieving the source of ‘apl’ (say) from SWH doesn’t work yet. • Multi-directory Subversion downloads (‘svn-multi-fetch’) is not supported yet. For that we’ll need to arrange with our SWH friends so they compute nar-sha256 ExtIDs for combined directories (and we’ll have to include that info in ‘sources.json’). Feedback welcome! Ludo’. Ludovic Courtès (12): lint: Switch to SRFI-71. lint: archival: Fix crash in non-Git case. lint: archival: Trigger “Save Code Now” for VCSes other than Git. swh: Add ‘type’ field to . swh: ‘origin-visits’ takes an optional ‘max’ parameter. swh: ‘lookup-origin-revision’ handles branches pointing to directories. hg-download: Use ‘swh-download-directory-by-nar-hash’. svn-download: Use ‘swh-download-directory-by-nar-hash’. bzr-download: Implement nar fallback. download-nar: Distinguish ‘output’ and ‘item’ parameter. perform-download: Allow use of ‘download-nar’ for ‘--check’ builds. download: Honor ‘GUIX_DOWNLOAD_SEQUENCE’ environment variable. guix/build/bzr.scm | 3 +- guix/build/download-nar.scm | 12 +-- guix/build/download.scm | 50 +++++++--- guix/build/git.scm | 27 ++++-- guix/bzr-download.scm | 57 ++++++++--- guix/cvs-download.scm | 24 +++-- guix/download.scm | 53 ++++------- guix/git-download.scm | 20 ++-- guix/hg-download.scm | 36 ++++--- guix/lint.scm | 151 +++++++++++++++++++----------- guix/scripts/perform-download.scm | 65 +++++++------ guix/svn-download.scm | 84 +++++++++++------ guix/swh.scm | 71 ++++++++------ tests/lint.scm | 20 ++++ tests/swh.scm | 74 +++++++++++++++ 15 files changed, 501 insertions(+), 246 deletions(-) base-commit: ffcce77ec488e3c89401ad77fafa65fcd9e9f5be -- 2.41.0