From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: [PATCH] Support returning build information by output. Date: Thu, 16 Jan 2020 08:36:23 +0000 Message-ID: <875zhbdchk.fsf@cbaines.net> References: <20200104095148.3522-1-mail@cbaines.net> <87blrdej9s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is0dl-00044a-4C for guix-devel@gnu.org; Thu, 16 Jan 2020 03:36:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1is0dh-000541-BB for guix-devel@gnu.org; Thu, 16 Jan 2020 03:36:33 -0500 In-reply-to: <87blrdej9s.fsf@gnu.org> 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Christopher Baines skribis: > >> Being able to take a derivation and query the build information is usefu= l, but >> in cases where there are multiple derivations that produce the same outp= uts, >> the probability of getting the data back from Cuirass is reduced. >> >> This is because Cuirass might not have build the exact derivation you ha= ve, >> but a different derivation that produces the same outputs (this can comm= only >> happen when a related fixed output derivation changes). >> >> Cuirass doesn't store derivations if they produce the same outputs as a >> derivation it already knows about, so it can't determine if this is the >> case. Therefore, provide a way of querying build results by output, rath= er >> than derivation. >> >> The motivation behind this is to make it easier to import build informat= ion in >> to the Guix Data Service. >> >> * src/cuirass/database.scm (db-get-output): New procedure. >> * src/cuirass/http.scm (respond-output-not-found): New procedure. >> (request-path-components): Handle /output/=E2=80=A6 requests. >> * doc/cuirass.texi (Build information): Mention that you can get build >> information by output. > > LGTM, thanks! Great, I've pushed this now :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl4gIIdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XcQNA//c8eLQwSPURy4alZWSxRaQ8pWesR7fs5noutRvWTrjUeVYIjuN+vULbAv haLcriJ59cqBIJYC5Cy9wmEdKkn4Q4IuorDX6IhTSCGaryrzm6rxDz6kmHxm6vIn 3Su2yFzaEf5hquBgCUmvzMqOm+oJwG9yG5W6gZGavDgp8MrYGd7YLiBmm1NazW+2 BV0H9lOxm4MiVE+5ak5tJ6UsiTQrUEBFmjy7F10F5F/x2wZTUDcU1rugIPbdV9/m dIhExc58TCRWSuNLpgQd/RFpU5ki6iTUW26msvSLGjo5YP8r4X9ouNv7zSf0I8Hk zWi/lEneTdX97PuWLR5eQEtHMdlZczdw2BCInM5aUHVy7yktlu9+3YLvrOQAGYVo lh35W6VfHgAq3i8TfpCTRbTy2FGGKyLsPtxgOS2k2FKTcTXaPt4896U/ASE1ha3Y zr/ba6v2Ttbnc+o/EFEJ/OC9mua8a2by+k0k12sD1wiCWl4yLpxfpeKVDQ5KhSQg JYuP2sf8RnAKwYkF51Z3auQ5T9Msgt87dI2zVZS1HO2WAk8pjL2zwL8ftBr7cB/h U7jC9cb/nbQx7f5W320dEI7M6MktI0bthHzQRb/aULjnwvqkTwVQEQKVWYhnFeKe OhdvSP+1V2/sAvBZydcwPg9aEic79VGlXmMkTmZ/SovJLic4x+Q= =pYsE -----END PGP SIGNATURE----- --=-=-=--