From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mGg/EDxvQ2Z8ZgAAqHPOHw:P1 (envelope-from ) for ; Tue, 14 May 2024 16:03:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mGg/EDxvQ2Z8ZgAAqHPOHw (envelope-from ) for ; Tue, 14 May 2024 16:03:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=CMMeX0y+; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715695420; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Fixxoqh/cUUOmQ/4OlLtSOk7SK3ZVacPppjkOKiQaTQ=; b=dkj8Mwy/d0C6zR4sD8f3KEdgOAoz68EAVO83aYhjz9phEobIkTZt/bHmWfDfddDj+wky1L xIw3cV2mJ53sdrzUOdVsyfF9kKCvS/5LOswJuwkuufb9Z1ns7JcqoNZyLcxC199bSqUu6k +W7Bw1CkXCT9SEiay3Sr4A2PpvQhSEKtWRWHBGHa5Za8vrEA5gIT+xGhDlxNSkAE6qwmnr KquadgZpFjbeQyKudULmNzU/36XverSNRFKBEoRMMEGopmr4aCbFijfHyJCmq9LUJOSyd5 KxPclDaJKvzTS4V8jwyoGs1b8uEEIMA5GbUhF7tGZgnTspIycfJpm2XStgnxFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715695420; a=rsa-sha256; cv=none; b=mZ1h4h535ESu2QlFeAWlMiErBxplrS9vlH4k1gd+r6wLWkrRy+IMuyxbDaKGhIX7U8/HeP F0VV1GXScZ96S7QTMSoBbumitM27UWXUjqAJS/23J2wdfRx7gJtguTG7lNw5XrsZUAMQ+H fX5M3iwiGwqWMmFDQCZnkI/7YbJHVe5MBvomi/43U1PdfKkMgA2jzFk8CbdIHZMqPM665D HGV5HFQgt1ObzTRhCGfCC8gPaQZ8GD/eu3Z6CG5PQs/IHeW5bZyrEZhJOOpqZw5cZO/Ut7 o0kw1/3D2meYO1IqQBDdfc66ws8NOWuWTlwE6tddsMqzxBs+FMhAngrpxGfavA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=CMMeX0y+; dmarc=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" 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 1E4F6E6E9 for ; Tue, 14 May 2024 16:03:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6sk7-0002AM-Dm; Tue, 14 May 2024 10:02:59 -0400 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 1s6sk5-00029w-NF for guix-devel@gnu.org; Tue, 14 May 2024 10:02:57 -0400 Received: from mail-108-mta70.mxroute.com ([136.175.108.70]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6sk3-0004sK-Ng for guix-devel@gnu.org; Tue, 14 May 2024 10:02:57 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta70.mxroute.com (ZoneMTA) with ESMTPSA id 18f7769c3cb0008ca2.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 14 May 2024 14:02:51 +0000 X-Zone-Loop: 7d27b98a50e0a09976e0a4544ead98193a75886fc892 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:References:In-Reply-To:Subject:To:From:Date:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Fixxoqh/cUUOmQ/4OlLtSOk7SK3ZVacPppjkOKiQaTQ=; b=CMMeX0y+9u9F6C7xwWVng8kTvS vs8Tm4ln8cknLUJu/n/ihvu5gjMb+0o+CpYWIkGfNpOlDkGNaZnfrcb+srvUIkROs4804arbUTIXD liSGWlSHaOXxd1GJJQ4k5wmf0pPOoPT+f+zD4uOBPa9utQ2TBwnoX1hGv2YgwhUSKjhQlzU0RuYvd OMwaAqR6ii/W6mkuWYSngTQ+Ant2BnBXJ3CcceVDVI6Y+j6xaP647FBfJwt1lJ170YGhEd22UgOod U0XVbC1YJPqDQEGChb8yAZm85tr4nJZC1i+N3hoD5IKCseK8f066wzIjuaI0ygTqCvDfm04V4p+A5 CHvcBI6w==; Date: Tue, 14 May 2024 10:02:45 -0400 From: Richard Sent To: guix-devel@gnu.org, =?ISO-8859-1?Q?Ludovic_Court=E8s?= , Edouard Klein Subject: Re: Guix pull: avoiding "Computing Guix derivation" User-Agent: K-9 Mail for Android In-Reply-To: <87r0e43do0.fsf@gnu.org> References: <874jb16993.fsf@rdklein.fr> <87r0e43do0.fsf@gnu.org> Message-ID: <526C4150-7013-4680-B5CA-5EBEDF6E5E02@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.70; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta70.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, 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.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: -1.87 X-Spam-Score: -1.87 X-Migadu-Queue-Id: 1E4F6E6E9 X-Migadu-Scanner: mx11.migadu.com X-TUID: bMr37AYmoqdd >> - Why is this step not substitutable ? The inputs are known, a hash can >> be derived, a substitute server could be queried for an output of that >> hash ? What am I missing ? Does the guix derivation not end up in the >> store ? What makes it so special that it can't be served by a substitut= e >> server ? > >It=E2=80=99s not substitutable because it=E2=80=99s not a derivation=2E = It=E2=80=99s not a >derivation because it needs to access the store to =E2=80=9Ccompute the G= uix >derivation=E2=80=9D=2E I see that build in build-self=2Escm isn't a derivation, but most of the t= ime spent in build is, to my knowledge, while the daemon is building the bu= ild-program derivation=2E build-program in build-self=2Escm returns a gexp-= >script file-like object and I see various /gnu/store/*-compute-guix-deriva= tion=2Edrv files in my store=2E Ergo, if more of the inputs to build-program were locked, the compute-guix= -derivation output should be substitutable=2E To my knowledge the problem l= argely lies in that the modules imported in build-self=2Escm are from the c= urrent Guix, which vary wildly between machines and is rarely, if ever, sub= stitutable=2E In theory if those modules were pinned to particular versions= , the bulk of the time spent in build would be removed=2E Obviously there are challenges with this approach=2E For one, if we were t= o use the "guix" package to run build and generate compute-guix-derivation= =2Edrv, what would we do if a user on Guix A wanted to upgrade/downgrade to= B, but the Guix package was changed in-between? I think the various problems are solvable, perhaps by making the solution = opt-in=2E e=2Eg=2E $ guix pull --quick, which attempts to build channels us= ing an infrequently updated Guix/Guix-subset to more regularly match an exi= sting compute-guix-derivation in a substitute server's store=2E Sorry if the formatting on this is off, sent from my phone=2E