From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sMH8Ilbk7GVlQAEAe85BDQ:P1 (envelope-from ) for ; Sat, 09 Mar 2024 23:36:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sMH8Ilbk7GVlQAEAe85BDQ (envelope-from ) for ; Sat, 09 Mar 2024 23:36:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=FJ1uVSRq; 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=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710023759; 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-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vqDLpp08B7rCxG67/YqhOTnAiPSbs51KYnUfqtBkP+0=; b=DhRWpDnib58zK1dZioX2skhEEo/l5n5vBlWqpz0rzbw1V6DaCXQn7kBBO7nxoU4dtpaJCL hdKSKXNG4g/6tdWTaemRFKd3oKp5KXT+ugLsYKShWEIhKGaV14TUc1ChQMsUEYbzfA3kDn 5bSKS4O6+t9aqoE6QCnEnDBE3FjF6+gKlc7fsdT11oz9sV9+ywZUHhXD0Z/ITxbnaMzzFH +nM3gHHv2grFXjfxuPp2mx2G7r3S1qJa90NjCBcGPgosJ7dMGlx5JRbLZbmHFjjiP8fcPa DiKWdijHzEuS9+4fByOOeGJNv1hK2/0/bHDBb4MB1dHdFjfadOOaeb9dvhnEeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=FJ1uVSRq; 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=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710023759; a=rsa-sha256; cv=none; b=ipYGUR/j3slCdxSx34dhnlOSHWxARNkSL7+KfzgFi855C1rknsm74AR+1VicNJSo3RJqhO chTvfrUOJJViKlj3xy4o3mbKFDfliqt9OBiLNW8vNSrcibc+GrtjSIOTK1sZAKPYCxlyRt J95n+0iB1mnfZtE4bAVLLdQQmNebiJlN5Ain1ewCE5LqK2NgB7yri8KQNBNS6Upy5rcBRb T0edeU12YxGShhv+TX2bDKsI8TqSykeeYh8fkZWIM0ytuMpqpGJuiJ8CDeRDO1JA6b1DwN qK94TGEyRktz0Z7eoxbki0PC8Lvb32sPL7/hqQvfKq4JQhEHriMQeH/JgfC0mA== 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 C5E1A52EFF for ; Sat, 9 Mar 2024 23:35:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rj5I5-0002F3-1p; Sat, 09 Mar 2024 17:35:41 -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 1rj5Ht-0002ER-Pa for guix-patches@gnu.org; Sat, 09 Mar 2024 17:35:30 -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 1rj5Ht-0006B5-Cb for guix-patches@gnu.org; Sat, 09 Mar 2024 17:35:29 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rj5IP-0004Ce-Sq for guix-patches@gnu.org; Sat, 09 Mar 2024 17:36:01 -0500 Subject: bug#43442: Code stored with Subversion (SVN) cannot be retrieved from SWH Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 43442 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 43442-done@debbugs.gnu.org Mail-Followup-To: 43442@debbugs.gnu.org, ludovic.courtes@inria.fr, zimon.toutoune@gmail.com Received: via spool by 43442-done@debbugs.gnu.org id=D43442.171002371016088 (code D ref 43442); Sat, 09 Mar 2024 22:36:01 +0000 Received: (at 43442-done) by debbugs.gnu.org; 9 Mar 2024 22:35:10 +0000 Received: from localhost ([127.0.0.1]:34957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj5HZ-0004BN-7q for submit@debbugs.gnu.org; Sat, 09 Mar 2024 17:35:10 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:26085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj5HU-0004Ah-8N for 43442-done@debbugs.gnu.org; Sat, 09 Mar 2024 17:35:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=vqDLpp08B7rCxG67/YqhOTnAiPSbs51KYnUfqtBkP+0=; b=FJ1uVSRql3+Kp4dHil31gD2/gOFX0N8wpZMh3g84X46e4N+nBk0G0XIn Zq+2we6DwCL0iAwaxTwcLKb27qY18VAyR6KPkt2bh232qbQ8XVKUZ3Iwy p+RvoyAvyvqKRzSa88Bp3Y2NGa7lUMoi6aCKaC5UBWl+q9OhIHpFzIUh3 A=; X-IronPort-AV: E=Sophos;i="6.07,113,1708383600"; d="scan'208";a="155840185" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2024 23:34:24 +0100 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87jzzbms54.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 20 Mar 2023 15:09:11 +0100") References: <20200916081411.5801-1-zimon.toutoune@gmail.com> <20200916081642.6716-1-zimon.toutoune@gmail.com> <87o8lyj090.fsf@gnu.org> <86zh5iol1n.fsf@gmail.com> <87h7rocvkt.fsf@gnu.org> <877dsi44lu.fsf@gnu.org> <87y2knhei3.fsf@gnu.org> <87jzzbms54.fsf_-_@gnu.org> Date: Sat, 09 Mar 2024 23:34:24 +0100 Message-ID: <87ttlfyqz3.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.91 X-Spam-Score: -3.91 X-Migadu-Queue-Id: C5E1A52EFF X-Migadu-Scanner: mx13.migadu.com X-TUID: 3+UZ8/nQHr9l Ludovic Court=C3=A8s skribis: > The attached patch does that: > > scheme@(guile-user)> (lookup-subversion-revision "https://scm.gforge.inri= a.fr/anonscm/svn/mpfi" 680) > $12 =3D #< id: "72102de7605a2459ebcb016338ebbf1a997e8c8d" date:= # directory: "5c89c025a4cd9d16befdfec12dfc23f7318d0= d5b" directory-url: "https://archive.softwareheritage.org/api/1/directory/5= c89c025a4cd9d16befdfec12dfc23f7318d0d5b/" parents-ids: ("16da41f1848d77a93a= ec565320b72b460c429b61") extra-headers: (("svn_repo_uuid" . "e2f78e0c-bb60-= 4709-9413-9660a31d4696") ("svn_revision" . "680"))> > scheme@(guile-user)> (lookup-subversion-revision "https://scm.gforge.inri= a.fr/anonscm/svn/mpfi" 666) > $13 =3D #< id: "148eb1e7206b111af4075c73c656e54c9efed6cb" date:= # directory: "ed7b0bd7019fb85cd86d948a97c23b9d43aa87= 28" directory-url: "https://archive.softwareheritage.org/api/1/directory/ed= 7b0bd7019fb85cd86d948a97c23b9d43aa8728/" parents-ids: ("0ba2aa7e0d3fc0a1eb3= ba72b32094515415ae47a") extra-headers: (("svn_repo_uuid" . "e2f78e0c-bb60-4= 709-9413-9660a31d4696") ("svn_revision" . "666"))> > > The implementation is pretty bad though, because it walks the revision > history until it finds the right revision number=E2=80=94so you=E2=80=99r= e likely to > reach the bandwidth rate limit before you=E2=80=99ve found the revision y= ou=E2=80=99re > looking for. > > More importantly, most svn origins cannot be found, or at least not > by passing the URL as-is: > > https://sympa.inria.fr/sympa/arc/swh-devel/2023-03/msg00009.html > > This whole hack looks like a dead end. > > It would be ideal if SWH would compute nar hashes, as you proposed: > > https://gitlab.softwareheritage.org/swh/meta/-/issues/4538 Happy to report that this is solved with nar-sha256 ExtIDs at SWH, which commit 0e73f933b291c7e154c7e019b6de1e2f3a97e4c1 uses to implement the SWH fallback for Subversion checkouts. Wo0t! Ludo=E2=80=99.