From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CPHiCsKDaGEkNAAAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 21:23:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4FWRBsKDaGGUMAAAB5/wlQ (envelope-from ) for ; Thu, 14 Oct 2021 19:23:46 +0000 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 E1DA32C8C2 for ; Thu, 14 Oct 2021 21:23:45 +0200 (CEST) Received: from localhost ([::1]:34754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb6KP-0007jx-3e for larch@yhetil.org; Thu, 14 Oct 2021 15:23:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb6K6-0007ja-Tk for guix-devel@gnu.org; Thu, 14 Oct 2021 15:23:26 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:46682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb6K5-0007Cw-7G; Thu, 14 Oct 2021 15:23:26 -0400 Received: by mail-wr1-x431.google.com with SMTP id k7so22045150wrd.13; Thu, 14 Oct 2021 12:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=+VV0fI4/ChfXAWowHrp25lkgNyigts26DWe3/XsJnpw=; b=buOe72ZtO/70JKVo4+T+i2SO7H6VLNwBjcm7vUwQzsjvNloXImpK2bTkDkg0A/qPYC 1v/vF6uhgdrR5rQEbLJx7tUXWc9ULAESaKf8mUHxY62dEFDAJtpMK/2GSq2WRzlsyIxe vSPOAKVf+iG9mKTHb+W95EoHXoC0ncM2+br4n1tPkvzWj9wQtXcjymWUq+N2J800cAlD o8P2/JYZ/fG9Na4xE4FGU/OesQCqgXQh1lqEZFkqx/KnZ+b7uEiPXz6p+1jmUzA4JZqj LSPLGJG624w1AddM1/mDC9d9Hd1FmivoNYyiWZqW75sYc5vooOF4v9ZgBTx+Nz3FlMb7 b7rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=+VV0fI4/ChfXAWowHrp25lkgNyigts26DWe3/XsJnpw=; b=U5jHRwH1AjFFbSQdR4dP1yJUrzOXwr1JAFATtw/RYe/BEuHT1dsog6omtb/ieZ7OqG IBBH0fXHB3Mhda53pBF0HZ3SkFdxTFWx8foaB6qPuftphKnrOUzDPfK9l+4K/Vz2i0CQ a9/lI+gJmZgwVixnTK2NWYHb4BALLm21RXew3+rkxkZLk+X5oEHGDxBLcl4crRJlTMcI tXaAzzOwO/frGThVQZmO+ljocPEaVW6HAFw/mSUI8vgXo4ILAmKAlaqEqoEKuKHYRcdC 1l00dG9afqc7Xz7tSYRXUTYhCJboBjftG/MEWiIiGTmnG3V7/qNohwPuIUMu0fMy42eX jzEA== X-Gm-Message-State: AOAM531GSZZXsi6cfaOFIuy2To0x0LVRiYYeXyFACEw51mmi9x8F1Z3h UhfbiCzfJEJsP/Q1hjozwzLCVThS8rQ= X-Google-Smtp-Source: ABdhPJyau+jKa6h/MVRgXtNvSS9jORp+3RV4LMMUCUkmUT7Sdzhq9aXs/XQMWvoEwAMNfSorEZdaWg== X-Received: by 2002:adf:8b06:: with SMTP id n6mr8956609wra.5.1634239403161; Thu, 14 Oct 2021 12:23:23 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l5sm3141951wrq.77.2021.10.14.12.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 12:23:22 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Disarchive update In-Reply-To: <87ilxzpuuq.fsf@gnu.org> References: <87r1cu1pj5.fsf@inria.fr> <86r1cqmwh5.fsf@gmail.com> <87ilxzpuuq.fsf@gnu.org> Date: Thu, 14 Oct 2021 21:17:25 +0200 Message-ID: <86ilxzpgai.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634239425; 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:dkim-signature; bh=+VV0fI4/ChfXAWowHrp25lkgNyigts26DWe3/XsJnpw=; b=TA7S/ZXPqA93eDUpJd/9OLzW67nwTjoCRf14f55D8APJQXvuShMcjCeZBbOtpsHcOaBT+2 vgU/PMT5+q4dXsw0XuxbGQZCzZwxB//oFNseCy7+GUT0u2lPA7W7cDtKcIg7Rr+u1cYeLz r+GBeNN2E4N+uSZh9y6BWKqEGedQXZgLrsMUvQGno0I8eKx7n4tsfxmYWTPPDJUssD0MWL vQ5BexbNUjXGR9ozbHD4uwxFdzEar4GG/DdA9ltAHMSD/cMXFwOPQ62u+kkueoM2aJZtts iacQvckfOsxWWxbApSTvI7tw/6kk3FgtktDCuYAyq1lUuTIoHaeD4pmX4IizFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634239425; a=rsa-sha256; cv=none; b=mdmPRv/e9U2PKV+w+Ke7P7qpk00GOaz75J641DzK2Y7eEMQ2c3lKx1YzHthwdAekV9e8z3 CV3e9518FmfPXF+Ic+Jct5zBRti1+8NSQ7mOtK+d523IJ6OonZBdxDJwokzQy2LJIiRag2 UHu7aynY5tEr9mdym+FFOkOTNO7p6qnQUfA7fElmAkSaPkVUlkLYnbeDPQ4vIM5ukowGX0 MwijUvBUQHVzDLd9Zl8p7pGBFIE99hmyylW4l/JFUUjJeFvvvPN+uIGsXFHMJXVMTvBsO1 iKKrkh1uwraCgBT/CYkL2T31F7vM914o3raP2m919rUsEf1If3NN+e9pG0b8kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=buOe72Zt; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=buOe72Zt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: E1DA32C8C2 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: XHJ5sUvpLBVw --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Thu, 14 Oct 2021 at 16:02, Ludovic Court=C3=A8s wrote: >> Going this road (use Cuirass), why not generating the sources.json >> similarly? Instead of the hack using the website builder. > > I guess that would also work, indeed. Then we could make /source.json > redirect to ci.guix.gnu.org/whatever/latest. I gave a look but it is not clear yet how to do it. Pointers or tips welcome. :-) >> On my side, I will try to resume what I started months ago: knowing the >> SWH coverage. For instance, on this ~92% of tarballs, how many are >> currently stored into SWH? Well, do not take your breath and I would be >> happy if someone beats me. ;-) > > Yup, we definitely need that kind of info now! Using, the Authentication mode from SWH [1] and this trivial patch, the rate limit is at 1200 which allows to check and archive some packages. For instance, now, --8<---------------cut here---------------start------------->8--- for p in $(guix package -A | cut -f1 | grep "julia-"); do ./pre-inst-env guix lint -c archival $p ;done --8<---------------cut here---------------end--------------->8--- passes. The remaining work is to check with SWH folks for an higher value than this 1200 limit and have a token associated to an account to the Software Heritage Authentication service. And set a cron task =E2=80=9Csomewhere=E2=80=9D running: ./pre-inst-env guix lint -c archival WDYT? Cheers, simon 1: 2: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=swh-auth.patch Content-Description: swh-auth.patch diff --git a/guix/swh.scm b/guix/swh.scm index 5c41685a24..1aaf733b5d 100644 --- a/guix/swh.scm +++ b/guix/swh.scm @@ -153,12 +153,20 @@ (define url url (string-append url "/"))) +(define token + 'xxXxxXxxXxXXXxXxXxXxXxXxxXXxXxXxXxxXXxxxxxxxXxXxXXXxXXXxXXXxXxxxXxXxXXXxXXXxXXXxXxxxXxXxXxxxXXXxXXXxxX.xxXxXXXxXxXxXxXxXxxxXxXxXxxxxXXxXxXxXxxxXXXxXXxxXxxxXXXxXxxxXXxxXXXxXXXxXXxxXxXxXXXxXxxxxxXxXxxxxXXxXxxxXXXxxXxxxxXxxxXxXXxxxxxxXXxxXxxxXxxxxXXxXxXxXXxxxxxXxxXxxxXxXXxxxxxxXXxxXxxxXXXxXxxxxXXxxXXxXxxxxXXxXxXxXxXxXXXxxXXxxXXxXxXxxxXxXxXxxXxxxxXxxXxxXxXxXxXxXXXxXXXxxXXxXxXxXXXxxXXxXxXxXXXxXXxxXxxxXXXxXXXxXXxxXXXxXxxxXXxxXXXxXxXxXxXxXXXxxXXxXxXXXxXxxXxxXxxxXXxxXxxxxxxxXXxxXxXxXxXxxxXxxxxxxxXxxXXxXxXxXXXxXxxxXxxxXxxxXXXxXxXxXxXxXxxxXxxxXXXxXxXxXxXxXXXxXxxxXXXxXxxxXXxxXXXxXxXxxXxxXxXxXxXxxxXxxxxxxXxxXXXxXXxxXxx.xxXxxxxXxxxxXxxxxXXxXXxxxXXXX-xxx_xxxXXxxxx + ) + ;; XXX: Work around a bug in Guile 3.0.2 where #:verify-certificate? would ;; be ignored (). (define* (http-get* uri #:rest rest) - (apply http-request uri #:method 'GET rest)) + (apply http-request uri #:method 'GET + #:headers `((authorization . (Bearer ,token))) + rest)) (define* (http-post* uri #:rest rest) - (apply http-request uri #:method 'POST rest)) + (apply http-request uri #:method 'POST + #:headers `((authorization . (Bearer ,token))) + rest)) (define %date-regexp ;; Match strings like "2014-11-17T22:09:38+01:00" or --=-=-=--