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 QJzhGReJSmVLHgEAauVa8A:P1
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 07 Nov 2023 19:59:35 +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 QJzhGReJSmVLHgEAauVa8A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 07 Nov 2023 19:59:35 +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 248E35701B
	for <larch@yhetil.org>; Tue,  7 Nov 2023 19:59:35 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=Rb26SFWZ;
	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=1699383575;
	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=Do9KhjR9onfKDezec0H2VaAj/RCrS4f40uVRdBHlkhM=;
	b=Ve+xgMOCRSdAtDuFRb/C5EJgFcwsMgL46ujzm7iILA0rwUd1rNC44TY2d+jPsZ7XUlFXvj
	AjCvC8lClsOdm6fHN+J0RNeMwTozmKP9d7mwnUjSYRDFL61Bezj3GpdsvrOuH43/jSFkxx
	7M6dpS00iD5U42flOZ6bK5iqX727tSG/rSLCb6BcXJyFbr62Lok+EShkVE4/mTqXUneIPt
	FNccLEQzzoqHzAWax0r+One7SZEBTen1X9Wp8DWHEFeCZsrwRwyk4j6AfMY6cOf3VBPTYG
	BRlnbmCT43PJ9W5i/sy7adqzR3X8qcihUnQO6i5YmebG2VwvXkvDO5wSNdkZaA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=Rb26SFWZ;
	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=1699383575; a=rsa-sha256; cv=none;
	b=t9NkV2tiumTkXk2phGnaqMrpohF6jPfn3b29g30JGuJT8lwkr6dGugIg8VdqFgbY/OwSSV
	N4UysmiT+s2YOewZ7Bn2I+/KSnkVmMhVzmluRZGohr7ICzrSeOqfmDhHP7WQl64WnUBgzD
	WTaXV2NpkXHXPnr8SzfpnBXizOHF1DVSziKW84MR2HfawunMdgMBhT0npvgFSy9b5MCOys
	3mQRv9oFg6QUMYasq/BVzxSulOMjr3m49KjqNzUN/2pWY+PQuh7kHSEZj5qXIUHH670ppB
	4kr5mkxWllkTTXoRS/fQWGDV2ufkRVczBFil+U8TUNcDLF8txK9PSzTLUhVe6A==
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 1r0RHs-0005gx-Bw; Tue, 07 Nov 2023 13:58:56 -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 1r0RHq-0005gW-CP
 for help-guix@gnu.org; Tue, 07 Nov 2023 13:58:54 -0500
Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131])
 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 1r0RHo-0003sE-No
 for help-guix@gnu.org; Tue, 07 Nov 2023 13:58:54 -0500
Received: by mail-yw1-x1131.google.com with SMTP id
 00721157ae682-5a7c011e113so73920977b3.1
 for <help-guix@gnu.org>; Tue, 07 Nov 2023 10:58:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1699383531; x=1699988331; 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=Do9KhjR9onfKDezec0H2VaAj/RCrS4f40uVRdBHlkhM=;
 b=Rb26SFWZW84jg8EqBwLnLN8lA6rnoFHmG4spNlwWFKuL5W2fIIwQRpIq5SBhK0s8q6
 zAANr0ej1EVDg4J2Z71OnYn1m55YQ08PkoI3ao0cKlSpb0Ib4pgu1J2I2Wf2FJzQ6q7g
 B1CgHHKpS+ZkXsvy6VQDNA7zWV+Cm+RRH9Ufo+4CnKZvY0eCWCpwXoX/ISCgdjCWo6SN
 gU35oFk2HU720KNbofAKKKgHxEMKCfZ7/mblfPu3H6qKauRz+sT2SvrnIcV+airq1MIV
 KixVrCmJVIIL7XKlPiYpx2P27VlmVit8gBVj8kfkJjHSkBUTdOQ7vRCkh/m/L6bogqjA
 M23w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1699383531; x=1699988331;
 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=Do9KhjR9onfKDezec0H2VaAj/RCrS4f40uVRdBHlkhM=;
 b=FsyRvThbEtiSFY/KpbZJ32pjV++nY51XtaKDzFnJMatoQUQEi9KRMwFA9z3xxVNm1X
 VS0TBWfEqv8EKA6VX3P5hnjtvT0BMYEKXD/gSEqBskLkv48t9yaB4bqW/UXx7on1BTmC
 1G6TVW86Dc/ps+k5k2bBAAWCxtW9P1ZAwRw2tyOtYeIzuMhooTm0h6lIlK2MMY4ATSDJ
 d/v/orMQ+t6pRsr1O5sBcz2PBcQ05UQkYbJt35nAz/dHOfX0X8RK/K+DulX5XJjAUehC
 x/Ml7qSSBmuuYcixYyuWcxYTP66YxQWdVIhlD7ERTf+Of1k6roAejzD+uGQJ1qolyXh4
 VMgw==
X-Gm-Message-State: AOJu0Yw33zsQgVJB1mtpu5gSeimH65elCGmRkhUWZnqBLDsFJ4n77+Y2
 5a5nCwWaX4OfNfPNwQ5aewz0D33edWi9qQ==
X-Google-Smtp-Source: AGHT+IFnB3jfO/A9YyH2vvn4VyMaQCeTTpKXORFzzBV6oFGisa7/IjXCjU5QeKQ6a4Lz68uEue8Tjg==
X-Received: by 2002:a81:8357:0:b0:59f:4f56:59bc with SMTP id
 t84-20020a818357000000b0059f4f5659bcmr15182522ywf.42.1699383531632; 
 Tue, 07 Nov 2023 10:58:51 -0800 (PST)
Received: from hurd (dsl-10-130-87.b2b2c.ca. [72.10.130.87])
 by smtp.gmail.com with ESMTPSA id
 ou6-20020a05620a620600b00763b94432ebsm180166qkn.18.2023.11.07.10.58.50
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Nov 2023 10:58:51 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Suhail <suhail@bayesians.ca>
Cc: Felix Lechner via <help-guix@gnu.org>,  Julien Lepiller
 <julien@lepiller.eu>,  Felix Lechner <felix.lechner@lease-up.com>,  Simon
 Tournier <zimon.toutoune@gmail.com>
Subject: Re: Turning off tests leads to a different store item
In-Reply-To: <65429087.0c0a0220.5908c.4d60SMTPIN_ADDED_BROKEN@mx.google.com>
 (suhail@bayesians.ca's message of "Wed, 01 Nov 2023 17:52:37 +0000")
References: <65429087.0c0a0220.5908c.4d60SMTPIN_ADDED_BROKEN@mx.google.com>
Date: Tue, 07 Nov 2023 13:58:50 -0500
Message-ID: <87zfzpie51.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::1131;
 envelope-from=maxim.cournoyer@gmail.com; helo=mail-yw1-x1131.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.88
X-Spam-Score: -7.88
X-Migadu-Queue-Id: 248E35701B
X-Migadu-Scanner: mx13.migadu.com
X-TUID: 9VsP/yYpMDQU

Hi,

Suhail <suhail@bayesians.ca> writes:

> Felix Lechner via <help-guix@gnu.org> writes:
>
>> On Tue, Oct 31 2023, Julien Lepiller wrote:
>>
>>> You could skip tests, but that would build a different derivation
>>> tree, so it might affect reproducibility
>>
>> 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.

While I wouldn't expect the package output to change unless tests are
installed when disabling the test suite, the derivation changes to
account for the different build arguments used (e.g. that #:tests? #t vs
#:tests? #f).

Running tests *may* cause the output derivation to be different.  I
remember a bug in Python that would cause some time stamps to be
embedded in the .pyc when running the test suite (!).  I think it's
safer to assume that a derivation with test enabled is not the same as a
derivation with tests disabled.

There was the "Intensional Store" RFC in Nix that tried to address that
[0]; it may be worth reading but it looks like it comes with a lot of
caveats and complexity.

[0]  https://github.com/NixOS/rfcs/pull/17

-- 
Thanks,
Maxim