From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aJYPED2vYmcOhQAAe85BDQ:P1 (envelope-from ) for ; Wed, 18 Dec 2024 11:17:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aJYPED2vYmcOhQAAe85BDQ (envelope-from ) for ; Wed, 18 Dec 2024 12:17:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uD84R98F; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734520637; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=1aE3JD6jPQdx5kMtnPvd6YmXjA/ZW/u/29WIbg8NxU0=; b=YrgLYCDOfwDZK0aNRRJuDA6gEgpWCoH2ScEnlUHr/QK0rbAWBvBpeAVO15D2Elj2Gz7o02 capgf4frTB12bk30VxSzb/H2L651wseDVSTqyxyUmITYJ2dvBab45bYU0fKLCswBLln+eU b7MibMo0S4fNyxnDJ23KUepfx16UGPlW8syaH1whzSVihXv03k70yUnWv1JFsSJdY+mYlU GojA2YcibrGEjP9EqLvbLTZphvajNr8+gRck0aX3Vq8+q+kE11jYdlB+AYPY/vVqCijn8m X8TCY2fEO8Qcf9JZgT2p5N0VQxIXlJEl5ugBEebjuCEAAsCsnZsPjfR6o2haEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734520637; a=rsa-sha256; cv=none; b=usv7q4VxaAHl5SVz4Jxy99yIKSPdEiwuqR+qUYNjMBGw6cA57Ac/dLDZzBVNrdrqtp/KfC PvCjnBBslhsmPq2aOIneDLKVqgHJDRelNLdrXd0WMSeIvtgpSudXru4vRybz2Fyj1AjrUy WyLDXpLRkXYg2JnTWFUeGtsGar0jsQHN62y2STLI3uO4DWGAjc/miLpIMr7tqs9miqpAIQ qX4EoEea/AWdY/KJIJXT9FK8T6uAhAmjbTWSt09dcFz2QheGdFs1VefoGxkGYVnLvF5mCH 3dmxbf1KU4x7QbQ8MBuANJ3SIikeBVo07tP/PKhbIYUqlVPj4wtEujzEt4uSXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uD84R98F; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-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 09F3932F43 for ; Wed, 18 Dec 2024 12:17:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNs3A-0002JQ-7n; Wed, 18 Dec 2024 06:17:08 -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 1tNs36-0001x5-Bh for bug-guix@gnu.org; Wed, 18 Dec 2024 06:17:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNs36-00085M-2C for bug-guix@gnu.org; Wed, 18 Dec 2024 06:17:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=1aE3JD6jPQdx5kMtnPvd6YmXjA/ZW/u/29WIbg8NxU0=; b=uD84R98F3+U3U/S6rC7IM4bBD7bc7b0qnEDPRzcXMMIwLXhGjTHg3BpPlfb1em9Tid9erRf4b48rev5SobVj9XW24mISjJWQwK27aFb2SE5KUauOcvOAw04Gl/yGOXyHT+rvsgK0oZ9AZPDa5kHusYF1o3QVepqfLVCpjWdxUJqTEHNrcb3UyMT7ayVKG2SwF0FQ5WNvQB4dPw0Sxtw459u58lxz+l5XS3I10V3kAIPTbuhrZQLy9ZyG9DlrZwfPXAGTxtYQ2a/KdmYSNbXmEskAXFbM2WzXllziaTUIM8lvVdnlfpSoFGoVlYwpmbELsCAW/2o8r3xwhK7alvVMpg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNs34-0005QY-UF for bug-guix@gnu.org; Wed, 18 Dec 2024 06:17:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74942: Computing the guix self derivations can require builds Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Dec 2024 11:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74942 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74942@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173452057820778 (code B ref -1); Wed, 18 Dec 2024 11:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2024 11:16:18 +0000 Received: from localhost ([127.0.0.1]:33689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNs2L-0005P3-MF for submit@debbugs.gnu.org; Wed, 18 Dec 2024 06:16:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:47390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNs2J-0005Ov-Ra for submit@debbugs.gnu.org; Wed, 18 Dec 2024 06:16:16 -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 1tNs29-0008P0-2j for bug-guix@gnu.org; Wed, 18 Dec 2024 06:16:07 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNs1z-0007r1-UV for bug-guix@gnu.org; Wed, 18 Dec 2024 06:16:02 -0500 Received: from localhost (unknown [212.132.255.81]) by mira.cbaines.net (Postfix) with ESMTPSA id 3AE7827BBE2 for ; Wed, 18 Dec 2024 11:15:52 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id e39170fa for ; Wed, 18 Dec 2024 11:15:50 +0000 (UTC) From: Christopher Baines Date: Wed, 18 Dec 2024 11:15:48 +0000 Message-ID: <87seqlp7h7.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -11.96 X-Spam-Score: -11.96 X-Migadu-Queue-Id: 09F3932F43 X-TUID: 65an5hdBdC1y --=-=-= Content-Type: text/plain I wasn't aware of a issue for this, so I'm creating one. I did send some patches in an attempt to fix this to #61363. The derivations used by guix pull, guix time-machine and other operations work differently to package derivations. I might have understood exactly how in the past, but unfortunately I've forgotten the details. I think the rough summary is that in contrast to packages, you can't view the guix self derivations grafting as a transformation on the built outputs, but rather that transformation is somehow muddled up with computing the derivations. As noted in #61363, the data service is affected by this since it relies on computing derivations being inexpensive to do, and having to potentially perform many builds for some arbitrary architecture when attempting to compute derivations can be very expensive. Note that since the bad behaviour here is dependent on grafts, this only happens when packages involved in the guix self derivations have replacements. I think there's probably other implications of this as well, substitute servers don't store grafted outputs generally, although I think the use of grafting here probably means that they are storing and providing substitutes for grafted outputs. However this is fixed, I think you'd need to end up with two properties. Computing the derivations doesn't require performing builds, and grafting is a transformation on the outputs of those computed derivations. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmdiruRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfxXw/9FmuWej+XaXULi9QBIovMM/6FJeH4Wtqo Yr9R3GyLVy/w4hfXKngV1hRyB19a97W//XII8u82MUHBGKwxMtA4ounbH5fj/5pi n5Dv5WJeOjXZVnSTDUzj7fiznnEhTh12wSUaZlRiO2kx4uPU7GwecaiEjCGBbOvd 32PZk19S+UOIKi6P2vyUv+nTDsBglSiSSi4tUTO60YfkqyYHjA9k8ObuIUsKe0hc sxmcfvt6lFtXIRrlVbiQIZT4km+MnYjzwFw3gTZ6tSyGiGYgsdJuCGFFjzxPj6Oc CoEoBx1YL98JDKVKZYDUuakyDC+jyiUy+qmOh+VUVrXrmHSnzaMnc40Uvw5UmiyC S3cg3zCu/dE+IX/2gMWU5mUi8S1Mq+NOga8KArk/6aqXQROUyJQ684JgFbdV0vTy cCFlg96OSZakKWf1StWRzqjcLNT27rtfibbgn/yhxgIr+3ttIBfKzHlsn2t3N5Oq /oBW2lApKYUG6a+TpIk+gCH4KC2yt5g3mNKL4wX0bw/BdriiCU4QSO7xUwsW8aO8 iFlijEjFT7fd97bfV8ekNzXh0EmuuuZRJi7TjMfHqF9DllIWsTiAlZ2bK3vh7sTS 4GsdNVXPyDqe81+4WgCNpbkMjQe3tE3jB1nuqnfIC96/lIkapZFpO5OmYImcEij0 +5lpB4jzljM= =n1h/ -----END PGP SIGNATURE----- --=-=-=--