From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id 8Nb4HEGfS2VUrgAAauVa8A:P1
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 08 Nov 2023 15:46:25 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id 8Nb4HEGfS2VUrgAAauVa8A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 08 Nov 2023 15:46:25 +0100
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 5A23B40230
	for <larch@yhetil.org>; Wed,  8 Nov 2023 15:46:25 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=Jz3dftq8;
	spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gmail.com
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1699454785;
	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=kEazj9/U4+W8GS4xaqEDqtmayhg794fMjtSb6R087cg=;
	b=ffTPjdPE0zr0hSxCI86dhcWFxw7RqC8969BAOL9KFQU4XUD9YbZr1OQ9tnfSFEIEpW6BoV
	cvfTGKPhsZFS8W0t8LM2uHjaj8xQns9zFm1dlKu/FgheDjYUvp4kQYRExnZTpADdyhe9km
	yJqX1Auls1awQi5qwW0d0tsgrGgz28WfFdVcZdH293JS7XAqbuzMvBjIzEyF1MAtxsElH2
	eXkmoPwCVK6yOV1A/AZ+pXY70hOWLdbuRI0oZuuwNm171WOFrWqLjuR94BukKZjwi2+h28
	CWuBBaRSf88mi5EgT5YyyfvlIvIcEtnz1+dGclhIh7QKyl3qVFalXMF5oWSZbg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=Jz3dftq8;
	spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gmail.com
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699454785; a=rsa-sha256; cv=none;
	b=juZDXHlAYPOguAUeD49778TIjjf415jP9LmjhI4qPZXfLo5OOlNxVQUt1M4IuPWs1NM0R0
	bqPP2e7+YUa6G42P1s/+GnUjbcaD6OcKW9P+MsSdV9U5eaK0CRLMjysSAo9F5eP0YHmaqf
	Uid2+ycZA2pFtsJ24DUFKPOeHg6bnLRmXX/AaTx8h+U3Vj2+32C/oSGW7NMwfxBBAv7Ymz
	LNUkNtP5EZFfzDo3+EuJEFAuF7zuvwqzUZyDWOQUzj+OB1a0TOgp7yqHM8nVt/5iMbNb/Q
	kEJhDuWk1o6rNXnQm6/OITZdha0/6zvMrXMs2/v7hG1bMxoXNfqKu8IHThWdJA==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-guix-bounces@gnu.org>)
	id 1r0joe-0000Te-LM; Wed, 08 Nov 2023 09:46:00 -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 <maxim.cournoyer@gmail.com>)
 id 1r0jod-0000TT-GM
 for help-guix@gnu.org; Wed, 08 Nov 2023 09:45:59 -0500
Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>)
 id 1r0joa-0000t6-Nl
 for help-guix@gnu.org; Wed, 08 Nov 2023 09:45:59 -0500
Received: by mail-qk1-x729.google.com with SMTP id
 af79cd13be357-77a453eb01cso452167385a.0
 for <help-guix@gnu.org>; Wed, 08 Nov 2023 06:45:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1699454755; x=1700059555; darn=gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=kEazj9/U4+W8GS4xaqEDqtmayhg794fMjtSb6R087cg=;
 b=Jz3dftq8BqK65wDIIc1oIMMtuBVpVABLACqQcSzTy4s6h9YZcqoVp6NwqbxWppPhc5
 n+zdbOUKT157mfIwd54JTLoFZdnZuSyaC1OAfUF5GkEywYSuJUh0noTN1lfNwAmEbtl7
 7g0Qx+/jfhVaN+ygwFKNRa7lsmvv7H14iiINq+hkKr827ORNx7HsYABiZAAn2JUWJun2
 Ag3yOjfnC8O0BUptzxZSmfuiOpoXlieKTFc7DUSOu+DL3DId8v/Qe4Y7GqQGFkQYuCAR
 +3XpVofawmWPxhxWvmbdewwG3KKn0dkbA0UTYqYwbrN/C3QENUDx4ZEg91jLr/eSrHB8
 5p9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1699454755; x=1700059555;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=kEazj9/U4+W8GS4xaqEDqtmayhg794fMjtSb6R087cg=;
 b=kFXXUfWSmGFoKXahqaTVU4LZGruc8tdOlzf9whiwI1D17/rtzrEBIzP0zXF1+HJkbL
 vFfLAs+30Ff2TR6eJgMkQqjdIw6QBJn5W7YeAOwDcs+qvipJrewgfcEAP6AttuYtlKWr
 Z/F/Uob8GlQY78tMe339ZNpRLL8oNREZH1yxTGjeSqISlu9ZSZGVpB7G4CkRk//br/x9
 HmbUiyk8EWd7yzA2AbNsAb8TuiZXF5KSTM4SzpeDNIQX5PmwhXuJHJz/bIKcvAAcW/BO
 zQeYDI07H5CN+pR+xghIf5Qftm/h0bdNHPrg5kna3oESc+Zntj2XB0F5OZOM6aPM7rO3
 Ek9A==
X-Gm-Message-State: AOJu0YwHnPtLO8ZoZR6e+iJb8kmCDNk0QntXR3wDx46gjTo8YVTpoo7K
 ayEYg7Ubvntmz2kYEiJ0ehc=
X-Google-Smtp-Source: AGHT+IGim8M8A6Dd6ta5cyEsPLPYQ6TJ8hapaNaQnvnXfAfPyHa31gK+XNWyVoacAi8PEXIXUbENGw==
X-Received: by 2002:a05:620a:b4b:b0:773:be2d:7cd2 with SMTP id
 x11-20020a05620a0b4b00b00773be2d7cd2mr1866022qkg.45.1699454755428; 
 Wed, 08 Nov 2023 06:45:55 -0800 (PST)
Received: from hurd (dsl-10-129-91.b2b2c.ca. [72.10.129.91])
 by smtp.gmail.com with ESMTPSA id
 g20-20020a05620a40d400b0077a029b7bf1sm1110489qko.28.2023.11.08.06.45.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Nov 2023 06:45:55 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: Suhail <suhail@bayesians.ca>,  Felix Lechner via <help-guix@gnu.org>,
 Julien Lepiller <julien@lepiller.eu>,  Simon Tournier
 <zimon.toutoune@gmail.com>
Subject: Re: Turning off tests leads to a different store item
In-Reply-To: <871qd19cqn.fsf@lease-up.com> (Felix Lechner's message of "Tue,
 07 Nov 2023 18:53:52 -0800")
References: <65429087.0c0a0220.5908c.4d60SMTPIN_ADDED_BROKEN@mx.google.com>
 <87zfzpie51.fsf@gmail.com> <871qd19cqn.fsf@lease-up.com>
Date: Wed, 08 Nov 2023 09:45:53 -0500
Message-ID: <878r78gv6m.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::729;
 envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x729.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,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: help-guix@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-guix>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org
Sender: help-guix-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -7.92
X-Spam-Score: -7.92
X-Migadu-Queue-Id: 5A23B40230
X-Migadu-Scanner: mx13.migadu.com
X-TUID: MgetrXCQxaqp

Hi Felix,

Felix Lechner <felix.lechner@lease-up.com> writes:

> Hi,
>
> On Tue, Nov 07 2023, Maxim Cournoyer wrote:
>
>>> Felix Lechner via <help-guix@gnu.org> writes:
>>>
>>>> Those shortfalls are a consequence of our packaging habits. In an ideal
>>>> world, would running a test suite ever build a different derivation?
>>
>> You seem to be confusing 'derivation', which is the build recipe
>> description that a package "compiles" to, with the package output, the
>> result of executing the derivation.

[...]

> A source tree should produce the same derivation regardless of whether
> build-time tests ran or didn't. It should also pull the same substitute.

A source tree doesn't produce a derivation.  A derivation is the
complete build recipe that captures the source and the package
definition, that when built by the daemon produces a store item.

Earlier in the thread, I've mentioned that running a test suite can have
side effects such as happened in the past in Python with timestamps
being written to the loaded .pyc files when running test suites; we
can't ensure the test suite has no side-effects on the rest of the
package, so we can't simply assume building with #:tests? #f produces
the same as when building with #:tests? #t.

And to come back to the original idea: building with the tests run makes
sense for a distribution -- it's one of the rare things we have at our
disposal to ensure things are properly integrated and keep working.

-- 
Thanks,
Maxim