From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WPNAGcu5hV89ewAA0tVLHw (envelope-from ) for ; Tue, 13 Oct 2020 14:29:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KDMmFcu5hV+GJQAA1q6Kng (envelope-from ) for ; Tue, 13 Oct 2020 14:29:31 +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 13A03940224 for ; Tue, 13 Oct 2020 14:29:31 +0000 (UTC) Received: from localhost ([::1]:42234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSKp5-0003os-EF for larch@yhetil.org; Tue, 13 Oct 2020 09:58:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSKnM-0002W0-TG for guix-devel@gnu.org; Tue, 13 Oct 2020 09:56:53 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:54065) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSKnK-0004mt-FQ; Tue, 13 Oct 2020 09:56:52 -0400 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E514C240005; Tue, 13 Oct 2020 13:56:45 +0000 (UTC) From: Pierre Neidhardt To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: File search progress: database review and question on triggers In-Reply-To: <87blh6jl32.fsf@gnu.org> References: <87sgcuh8rb.fsf@ambrevar.xyz> <86imd4e7cr.fsf@gmail.com> <87eenspcf8.fsf@ambrevar.xyz> <865z94dz83.fsf@gmail.com> <87zh6gns4l.fsf@ambrevar.xyz> <87zh5c7hx6.fsf@ambrevar.xyz> <87k0w4zw8q.fsf@gnu.org> <875z7oijxu.fsf@ambrevar.xyz> <87eem3u4n8.fsf@gnu.org> <875z7f6663.fsf@ambrevar.xyz> <87blh6jl32.fsf@gnu.org> Date: Tue, 13 Oct 2020 15:56:45 +0200 Message-ID: <878scaz0te.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.178.230; envelope-from=mail@ambrevar.xyz; helo=relay10.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/13 09:10:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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, Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Spam-Score: -3.11 X-TUID: ZPAsc/yIfRoq --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo! > =E2=80=9CSomething=E2=80=9D needs to build the file-to-package database (= which is what > you=E2=80=99re working on), and then there needs to be a way for users to= fetch > that database. This is all orthogonal to substitutes, as I see it, > which is why I think we need to think about integrating it maybe with > =E2=80=98guix publish=E2=80=99 on the server side and (guix channels) on = the client > side. If the database is filled on =3Dguix build=3D, then the substitute server would automatically have a filesearch database. Question: How do I hook onto =3Dguix build=3D? The only thing left to do after that is to expose the database in =3Dguix publish=3D so that the client can fetch it with a =3Dguix pull=3D. >>> If we download a fresh database every time, we might as well simply >>> overwrite the one we have? >> >> But then we would miss the database when switching Guix generation. > > Ah got it; having a database known to correspond to a specific commit is > even better. > > However, note that it could take time for the server to provide the > complete database for a commit (the time for as many packages as > possible to be built), so clients may want to refresh it anyway, or even > perhaps to use an older database. Indeed, and that's why I think we need to include a timestamp: if the client's database timestamp is older than that of the substitute server database, then we re-fetch it. Sounds good? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+Fsh0SHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/5T0H/3rpVDiiZs9QRrdWcIaF3fsVDKxHa+7F vU3Vc2JSFNAQa73B9KIrPXgUh/xDYhHMMExJqZn3jNryNkx2W0Cx2bcz9LZVcF1h YO/fsu8Dhz+aXZwwrpwKThy+w7vUJmJpYDAJOkDzpI6xfCD3KAioAh4UGVbWbxkH Smz7B7th7Llh/FE/WvB4sYHszq1ovt9VApCoujSIYTufHgzKA9y3w+hkhMzx/k6u kXtnbYmBqhj1TWdQ3Gk9MVM2gdqIPBSXgSyqqX3eU26cswMHfX2aU+Z+zgYakNGW WvGcrs/h51HF7RF4WugFVIZ/v6wXDZf5u1X9DEmSkBj7yomWrZcNLE4= =o6fz -----END PGP SIGNATURE----- --=-=-=--