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 yLgXMDb1pGXimQAA62LTzQ:P1 (envelope-from ) for ; Mon, 15 Jan 2024 10:04:54 +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 yLgXMDb1pGXimQAA62LTzQ (envelope-from ) for ; Mon, 15 Jan 2024 10:04:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705309494; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=zpjyxpXIPHntQ88Fh95wQ/biOfX2qdchh+LQkPveSzc=; b=gouz2jnr0HkBU8WRuze+qEjE1380jiVQBIwOeLOO0ZHnT/4+q+BVekVfV1PeRcRYHW+DFg L2cikp19dj7riet7Aci7GylvlfBO6ode9C+L69jZ63+PZhc83oHsb7g1JpUQCi7h6dHiGl ddh8RQfrvRMtiSHS4Luq5Tds9qCjEDdpXpp2aj1ek5wqaJo2GB5xkMTZSHTWyQ2k5ziu4Z PsQXSpGEDFhDOhKunfJyQqdIPS/iTD1AxjeBxFIAA/z4cTPJFhnj4x6/mJkpSvusLuM+GI 7r/opLRJ11IN1doAxSiXj6kPwjbXxcEVQ41FBNeuHq0OPpxBQG9i2CcChRN2lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705309494; a=rsa-sha256; cv=none; b=kt6ElpLF2+EsiH3SAiRj91BmtRnIDH0jz4yPaNIvsmOU/vCJbZeZZLQLTnkRZ20WRiSFFb +7WlLrzJMhy8b9og395rfvT51tijDvz0KKez47g0LbLM8de4iL1tAyIcBt6+yPNWf7NaGE ulux86buFZ/ObrGVMKzV2paj/TLM0t8Y73B5zJ+r/QEz1t5znVdDeNXhyTF1Ys5WOyQoqI gMsFtTSH2x8oUjyIacvF6XwheYoYg94+9yS3slobT5hmfn5hjtiRoilCJYgpY+inP2qluV 0WbOpz+g22qKTywvHzSKeU7UxvooD67vdo380Ra6fwuRTpkpxt2KnaB92XG3PQ== 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 63659740D5 for ; Mon, 15 Jan 2024 10:04:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPItY-0004sC-6c; Mon, 15 Jan 2024 04:04:36 -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 1rPItX-0004r0-4g for guix-devel@gnu.org; Mon, 15 Jan 2024 04:04:35 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPItV-0001fp-55 for guix-devel@gnu.org; Mon, 15 Jan 2024 04:04:34 -0500 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40e6f652eb8so16186305e9.1 for ; Mon, 15 Jan 2024 01:04:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705309471; x=1705914271; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zpjyxpXIPHntQ88Fh95wQ/biOfX2qdchh+LQkPveSzc=; b=V9sXeQo4WYxxN4oxi26+X/90Cpn/MLzdhwxdage4/3sVpXt+WOLJPo1dw7987PXvNa WPts7OuI0kqKqdHoJYNGEBG3nb0H3QPxE1Y4dpmd4lxXNpuWSOfyqKZHPa68w6BOFOXb dOSqitgb8C+cJwZFHSYPoOnmZGv+9NNbed1xMgqfk7SrXZn7jtgZ1SArk517e3C4qLwG TRCE27343cPVlcYYth/VZfJPNG9MYRDtifBD7M/XXvy2GuTqWfpwQ1scXkBULINe4LVV fySRdTmRRxmSZJAsoiUFccy5xtad5jJmEn7/rzlrTJe/volpdRsCFLQ2JBWeDkgQs/1W MRAA== X-Gm-Message-State: AOJu0YwurQ8oZwPp3elzfjv7MXISim+7R+jkDLkMuBUpNjKwIQ/5bBs2 xO6MSlmRUN4mlq3kGqBjmms= X-Google-Smtp-Source: AGHT+IEw0cojcsaOJdkq+ATQVof5g/xB+p59o+oZfr5V24XWMdom5r/F4zzxIBX8hOXKwKljqc5nzg== X-Received: by 2002:a05:600c:4b16:b0:40e:8020:6d4d with SMTP id i22-20020a05600c4b1600b0040e80206d4dmr30383wmp.11.1705309470886; Mon, 15 Jan 2024 01:04:30 -0800 (PST) Received: from yavin4 ([2a01:e0a:1c8:8a40:a2b0:9eb4:2ca5:b231]) by smtp.gmail.com with ESMTPSA id k13-20020a5d518d000000b0033672971fabsm11211739wrv.115.2024.01.15.01.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:04:30 -0800 (PST) From: "Antoine R. Dumont (@ardumont)" To: Simon TOURNIER , "swh-devel@inria.fr" , "community@nixos.org" , "guix-devel@gnu.org" Cc: "ludovic.courtes" Subject: RE: [swh-devel] Call for public review - SWH Nix/GNU Guix stack In-Reply-To: References: Date: Mon, 15 Jan 2024 10:04:40 +0100 Message-ID: <87o7dnq85z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=209.85.128.49; envelope-from=antoine.romain.dumont@gmail.com; helo=mail-wm1-f49.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.78 X-Migadu-Queue-Id: 63659740D5 X-Spam-Score: -8.78 X-Migadu-Scanner: mx11.migadu.com X-TUID: 67v9lRy7Gjvh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> My understanding is that so far these URLs were ignored by the >> lister/loader because they didn=E2=80=99t end in *.tar.*.=E2=81=B0 FWIW, in the "new" lister [1] implementation, there are a bunch of extra computations done [1] to try and resolve those situations. It's trying to fetch more information from upstream server (e.g. crates urls which ends in /download, ...) now. It's probably not exhaustive though. [1] https://gitlab.softwareheritage.org/swh/devel/swh-lister/-/blob/master/= swh/lister/nixguix/lister.py?ref_type=3Dheads >> I=E2=80=99m sure Simon Tournier (Cc=E2=80=99d) already discussed with ot= hers at SWH >> how crucial it is for us to be able to query content by nar hash. > So yeah, we are looking forward to some ExtID interface. :-) Yes, and there is an ongoing merge request about the new interface [2] [2] https://gitlab.softwareheritage.org/swh/devel/swh-web/-/merge_requests/= 1220 Cheers, tony / Antoine R. Dumont (@ardumont) =2D---------------------------------------------------------------- gpg fingerprint BF00 203D 741A C9D5 46A8 BE07 52E2 E984 0D10 C3B8 Simon TOURNIER writes: > Hi, > >> The initial NixGuix loader (currently in production) lists and loads >> origins from a manifest, ignoring the specific origins mentioned above. = The >> new stack will be able to ingest those origins. It will also optionally >> associate, if present, a NAR hash (specific intrinsic identifier to Nix = and >> Guix) to what=E2=80=99s called an ExtID (SWH side). > > Cool! Thank you. > >> Regarding the SWH API reading side of the ExtID though is a work to be d= one. > > In short, currently Guix relies on SWH API for resolving from > =E2=80=9Csomething=E2=80=9D to SWHID, where =E2=80=9Csomething=E2=80=9D c= an be: > > + Git label tag + url > + Git commit hash > + plain url > > Well, the situation is in good shape IMHO =E2=80=93 I do not have recent > numbers, say all is fine for 75% of all Guix packages and for 90% of > Guix packages coming from some Git repositories =E2=80=93 but still, we h= ave > examples where =E2=80=9CGit label tag + url=E2=80=9D fails. For one inst= ance, see [1] > pointed by [2]. > > The information =E2=80=93 history of history =E2=80=93 is there in SWH bu= t it would > require on Guix side to parse the snapshot information and extract as > best as possible; trying several SWH snapshots until a match. Something > like that. Chance of success until completion? Weak. :-) > > Moreover, what about the missing 25%? They are Guix packages coming > from Mercurial repositories or from Subversion repositories or some > others. > > Back on October 2020, we had discussion [3] for sending a save request > for packages using SVN checkouts but at the time we did not have a clear > path for retrieving. Then on March 2023, maybe an path for retrieving > with this discussion [4]=E2=80=A6 but still many hacks are required [5]. > > Again, the information is there in SWH but it would require on Guix side > to parse the snapshot information and extract as best as possible; > trying several SWH snapshots until a match. Something like that. > Chance of success until completion? Weak. :-) > > If only one source is missing, all the castle potentially falls down. So= mehow, > a dictionary from ExtID as nar hash to SWHID would help to have the > castle more robust. :-) > > The SWH archive coverage of Guix packages would not be 75% because we, on > Guix side, are not able to know or retrieve these missing 25%. Such dict= ionary > could reinforce the bridge between reproducible computational environment= =20 > and archiving, IMHO. > > So yeah, we are looking forward to some ExtID interface. :-) > > Cheers, > simon > > > 1: https://issues.guix.gnu.org/66015#0-lineno53 > 2: https://gitlab.softwareheritage.org/swh/devel/swh-loader-git/-/issues/= 4751#note_148587 > 3: https://issues.guix.gnu.org/43442#9 > 4: https://sympa.inria.fr/sympa/arc/swh-devel/2023-03/msg00009.html > 5: https://issues.guix.gnu.org/43442#13 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJSBAEBCgA8FiEEvwAgPXQaydVGqL4HUuLphA0Qw7gFAmWk9SgeHGFyZHVtb250 QHNvZnR3YXJlaGVyaXRhZ2Uub3JnAAoJEFLi6YQNEMO4c4gQAL4gB6boMaT/+7D3 Unqe45lO7CkSZJoL7p9GxVMDN+cSaNcyLx+MMkzFO+3d/BEYv5f7gWW8JverG2l2 DC3kpl79rx8Nz9+EF+fhvxwvQ0jEaA/dWuTA7wTu4l1bWCCNwVhbCiqtp8qMBmBw zUhQsMxzmVaa2+GQ5CEYNbbH0faNEQlCJF+DNriWO6sKFVI+9Is2JavLPmpx8WoV ld3b1CXOs+Cf3cMz3RV3kwciVLHBbhpfGSxXkwdX2+XxmwBoMy5fBsyLBOUXkpQb 9gMU4l6MOPTPgyqs0fV0f711/5YDW7AKwneqzhmhI2V/mHVqKJrl9eCH53RQ8lmR HUWxW23oqbfwzew/KC1gEuQidramXwHTSP/pb/cpk/9mI/3JKYVXucq29VuiBhfe d9K7Gq9S3JiNIF7Ha1wy35L4upmyri6kxMk4Se7F7ATuz6HAitzSYlmRh545f62p Fv5pkMHspx/6nkwOd1YOrbzO4OryYqGHJIZlk0tFcfKqqk36RIp1UrJLLmDLmT3z kFmbbfZyjbBAbkjEe27bqpsUua4cv29rmALo7PnszSeoYJ9L5csCTJt6y1BFCvdr WFPrrYF/O+2KBIAmwBUA2O/h8s6at5eDHRjjSJ3F43RyepqcN8oe3O5lIbRQbksw 9UUh3WYLtBb+/hILItD4XSBwek2q =DQ4R -----END PGP SIGNATURE----- --=-=-=--