From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id cBQVB/U/WGUNTQAAG6o9tA:P1
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 18 Nov 2023 05:39:17 +0100
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id cBQVB/U/WGUNTQAAG6o9tA
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 18 Nov 2023 05:39:17 +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 BF4483BA61
	for <larch@yhetil.org>; Sat, 18 Nov 2023 05:39:16 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=GXaLngHP;
	dmarc=pass (policy=none) header.from=gmail.com;
	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"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700282357; a=rsa-sha256; cv=none;
	b=PNlJORIiyIgPRdRecT/SRt/fWlz8JfWupzC2XucXzSYrdyfuZKLKKPUwfxRrOhS9sPh4PH
	EirfrtCG0iDBFCfLiVfQ1q66wPIyHiq8GN/p1ih9msTPsz9blHSC0PXqrf2KrmkVNZtEXJ
	A4KawDNGSbI72YM6uNgCe5pyr/jyXposkXw1fAX4YcxBt2lpy84bkFlBqM5M0C59FLg5XR
	1eT47qA8C7LzKX/hQoe/jTt8bpqTqBHzU/TNzlZ1PyS2KSvKnpePqhuoQ3XS8/HUMqrGgV
	yBxsuKjNHv1EKwdPdnQQ+QqKaMocnn9WJCaybEs6/GzCHF8S1EYmfLqfnvOYgQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1700282357;
	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:
	 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=mxyei/YUVn2sODNeOzSKYlfQrvrwVLDUbEi7Mj3cPkw=;
	b=btVCb0HbIHrFqj+N8Bbf69tg7XD7JB8aHBm0If1jtwMYSycoh4X0jgSXOGg0/1pFENX8KW
	3ai4uiQpzL8rcvp1A3tDf8raJ+mqPBGqeO5pVfxBF7q16xjX55z3ZNimmttFsqjHY0BVBo
	dGpXd1lFKtORJUXfLS0KrAhZRgFe9jqSgk5lBJ2pivTVfXQ0cRnwIGhAcee/gqqVAaBmpK
	rtlg94tdholquVHNvfYQnBr0Fi21LE5fVjKceVfGxNJl48P/tfzNaXspSDsisinEyLiUu8
	6kO+YaqjW2O6Bs8vWwuzl+LFQyw5HUIsmb7HCA312ivgg2BZv4V1H6NgHvpYdg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=GXaLngHP;
	dmarc=pass (policy=none) header.from=gmail.com;
	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"
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 1r4D6X-0008Tg-1r; Fri, 17 Nov 2023 23:38:49 -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 1r4D6U-0008St-C9; Fri, 17 Nov 2023 23:38:46 -0500
Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29])
 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 1r4D6S-0005XF-5V; Fri, 17 Nov 2023 23:38:45 -0500
Received: by mail-qv1-xf29.google.com with SMTP id
 6a1803df08f44-677a0ac3797so830086d6.1; 
 Fri, 17 Nov 2023 20:38:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1700282322; x=1700887122; darn=gnu.org;
 h=content-transfer-encoding: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=mxyei/YUVn2sODNeOzSKYlfQrvrwVLDUbEi7Mj3cPkw=;
 b=GXaLngHPt9+MT2s7lmoLLke35xFLof2wypBf1LpxbHDHP+0+DHH9jA7txheaAYWKyj
 KiAZhnBlokhIuQibVPZiv2F0xjVz+MFjkUSOZTjJm9fx7kqj8JwD6y6Y6rBlJVrsI4XT
 dJtgVk5fNzQfRuSMgEuVltzPhrqGQrzeo1g8MNJWFX93caLTjJ91xL514idyishuKXMZ
 /QY+s6surz8Zm5tg4dBUaN71FsC4q9mbXzgXyN/uzdbwubz8FDqxs4GHlD18a87pz6F8
 6787foVj+QHhm/2ym1lSTf5BU9xLqzNlccaC6hKVPzBN38yEV2fB/mC0Ka5ZwFxX2JVr
 gDKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1700282322; x=1700887122;
 h=content-transfer-encoding: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=mxyei/YUVn2sODNeOzSKYlfQrvrwVLDUbEi7Mj3cPkw=;
 b=UbN+kl1QKHMv8X8nHMSBVd+cLIT5/2H1pUWlRyvFahQj62AWGf9wgUsyPvJExKD2KB
 vY0ThD1pnQl0UkM9KzFgiKHE6zDNjpt2axEpSaWZp61j9ePfKY3Fsb+Q1t/v5x+jIpDk
 32ibCxkf0DY7KC0NyTXvgL6o5xW6/tAhhSIr90M5lBCUBoHp8jLQF4Ugu0mlQ9D0G8If
 rBHpXZOFYMhYj+wsekRC75iAVzJ5fIL8YAH7BMCIDj3fY6xU3bekABXMWUWB0tC3iKbZ
 AH+7og70J973EHqhu/g0q2eRjsl/3XN5DN+QEALNggB7bB2nfIxh3wYeupRUfGfLOYcH
 1VPg==
X-Gm-Message-State: AOJu0YxI5Nv758M8Op/Z2ZgnVZ+9bLzfyHkC8xuHbiw/w03X0e72Y6BY
 WCR8lHQfoaAO0+G40/Lx/QyLSMLwWTk=
X-Google-Smtp-Source: AGHT+IE3PLOqRlFKOCKUuEg16tDY0rnXh8SaY27i1ZilaSjwT3sP7uuf9iCH43U3DqtPOMG5f8o3fA==
X-Received: by 2002:a05:6214:529c:b0:66d:ab4a:dc4e with SMTP id
 kj28-20020a056214529c00b0066dab4adc4emr1091244qvb.1.1700282321964; 
 Fri, 17 Nov 2023 20:38:41 -0800 (PST)
Received: from hurd (dsl-154-55.b2b2c.ca. [66.158.154.55])
 by smtp.gmail.com with ESMTPSA id
 kh5-20020a056214514500b0064906cfe430sm1143510qvb.135.2023.11.17.20.38.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 17 Nov 2023 20:38:41 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Simon Tournier <zimon.toutoune@gmail.com>
Cc: Saku Laesvuori <saku@laesvuori.fi>,  Vagrant Cascadian
 <vagrant@reproducible-builds.org>,  Felix Lechner
 <felix.lechner@lease-up.com>,  Suhail <suhail@bayesians.ca>,
 help-guix@gnu.org,  Julien Lepiller <julien@lepiller.eu>,
 guix-devel@gnu.org
Subject: Re: Turning off tests leads to a different store item
In-Reply-To: <86y1eyvyc5.fsf@gmail.com> (Simon Tournier's message of "Thu, 16
 Nov 2023 10:31:22 +0100")
References: <65429087.0c0a0220.5908c.4d60SMTPIN_ADDED_BROKEN@mx.google.com>
 <87zfzpie51.fsf@gmail.com> <871qd19cqn.fsf@lease-up.com>
 <878r78gv6m.fsf@gmail.com> <87ttpw897n.fsf@lease-up.com>
 <871qd0p0qn.fsf@contorta>
 <sgcib5spy4wiuzh2qiwv3vbemdsuvwwhdt64k6it4t4utiouwj@uuyf3atk7xas>
 <CAJ3okZ28aG6-POJq-srjAVkB=uYj3+DnrgqTahHB=YT7drWrhg@mail.gmail.com>
 <87y1f7fwdd.fsf@gmail.com> <86a5rnjs2c.fsf@gmail.com>
 <87fs1feznr.fsf@gmail.com> <86y1eyvyc5.fsf@gmail.com>
Date: Fri, 17 Nov 2023 23:38:40 -0500
Message-ID: <87y1evbrqn.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::f29;
 envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf29.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-Scanner: mx11.migadu.com
X-Spam-Score: -7.90
X-Migadu-Queue-Id: BF4483BA61
X-Migadu-Spam-Score: -7.90
X-TUID: nrHZgM2ef6vF

Hi,

Simon Tournier <zimon.toutoune@gmail.com> writes:

> Hi Maxim,
>
> On Thu, 09 Nov 2023 at 10:04, Maxim Cournoyer <maxim.cournoyer@gmail.com>=
 wrote:
>
>>> I agree.  On a side note, one of the issue is the time of some tests.
>>> Sometimes, packaging is frustrating: build takes ages, then you fix some
>>> tests, think it will be good, re-launch =E2=80=9Cguix build=E2=80=9D, a=
nother test
>>> failing, repeat.  It could nice to be able to cache the result of the
>>> build phase.
>>
>> I usually end up working in the /tmp/guix-build-* failed build of a
>> package for these situations; then I don't need to rebuild the whole
>> thing for each test suite run, and can test changes directly without
>> proper patches while working toward a fix.
>
> Do you know all the command lines equivalent for each phase run by all
> the build systems? ;-)

It depends of the build system, but for gnu-build-system, it's typically
just sourcing environment-variables then running 'make check', I think.
Note that 'live' environment variables are captured in the
'environment-variables' file, which is handy.

> Well, this workflow seems appealing but it never works for me on
> concrete situations.  Most of the time, my issue does not come from
> =E2=80=9Cwhat to do from command line=E2=80=9D but =E2=80=9Chow to do it =
inside the Guix
> recipe=E2=80=9D.
>
> For example, this test suite adjustment:
>
>           (add-before 'install 'disable-network-tests
>             (lambda _
>               (substitute* "test/runtests.jl"
>                 (("\"async.jl") "# \"async.jl")
>                 (("\"client.jl") "# \"client.jl"))

[...]
>                 (("@testset.*Set-Cookie casing.*" all)
>                  (string-append all "return\n"))))))))
>
> To have the correct replacement rules, I almost never get it right at
> the very first try, and the feedback loop is poor.  In some case, the
> replacement is done after 'unpack, so I can just kill the build process
> and check inside /tmp/guix-build-* if the output is the expected one.

I've used 'guix repl' in a failed build before, running the same
commands directly in the tree to observe their effects (e.g.,
substitutions) directly.

--=20
Thanks,
Maxim