From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 QF+EBHVV0mXK7AAAqHPOHw:P1 (envelope-from ) for ; Sun, 18 Feb 2024 20:07:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QF+EBHVV0mXK7AAAqHPOHw (envelope-from ) for ; Sun, 18 Feb 2024 20:07:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=G728jFAv; dmarc=pass (policy=quarantine) header.from=protonmail.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708283253; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MKC+cEQcEAYG7RQ8N1BJ/LuU1nHmICYt6HtBQrfIolc=; b=hLxxQiaDirLRKxPPtLAIJmWOKZtM2U+gmO215TfJeas3ua8NXhPQ5DvrB37Spylp3i+mmM Byc4G2bJm7x/3cBWWQSe5LuPybF7tSgP3F/vSJcCjdg2V/KixLasIoMTVKSE06hwIDUwfh qXainI1zCQgwyb6PevkMsZ+70sct3PEqdZ2i1I/zd4PLdXRXA0z/PgWrTH3EhBloXrnLpT phJrCwTpd2wm+c8PG2H+qCdl6c8utfZEPbyHKlhH72+0iEepvY/EFVjqui6zmzuVsztcs7 PjJmV75+ampDV9m3SAgvbLybTpf1SfYJixGgf3tlbtO9WLqvy07rxzowQdrBtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=G728jFAv; dmarc=pass (policy=quarantine) header.from=protonmail.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=1708283253; a=rsa-sha256; cv=none; b=MbTPVVlfXxvOEGD/8qjV+3T5QFiAY6VOwRJf3SB0TfgHpdeJINcUchREC6z8jxT26cbN9r Har+DVyJmiEwKMRJmhRnP3pvtu8bEm/LwZ1E9a2UxvIwOvanoR1NDJ5TsTu7349bIgTMtW wQo7Uq07eoF9mkjMQ4yJixnVE65j6zNH4Jv+NE/Xv9iQDaRCIpeFbjOxq15Hina1Oh3KGW pL6LPQu3r+3CQGPqDKWIBNI8l6FBIYys+1lLTAISMqGidarEkb2yWtEUdElAOQPlwzSd0Q p2F2xvgG6Y79ZegcxWskZgPPLvkuBvtfZScAEuM4LXBcG0KzheAkVYHWrBuvLQ== 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 DE9941337D for ; Sun, 18 Feb 2024 20:07:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbmV7-00055m-V9; Sun, 18 Feb 2024 14:06:57 -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 1rbmV5-00054T-44 for help-guix@gnu.org; Sun, 18 Feb 2024 14:06:55 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbmV3-0002wh-2C for help-guix@gnu.org; Sun, 18 Feb 2024 14:06:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1708283208; x=1708542408; bh=MKC+cEQcEAYG7RQ8N1BJ/LuU1nHmICYt6HtBQrfIolc=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=G728jFAv7VhDFWviiWxgA+T2HzKk+QLVwKPntFfyPYnZ9gdZRAbI9LynUQR5GKiiQ UHZQV3arR7G5uutf0xG0cX2c0koZspin6nx+o0dO8sBbfdQSJNkdQEdKIPmSN9GEN1 rPjfNkKYTSiVJa+P8s1OsM+uzYCQBWxSGZnnQfqxzBrpccYFWUkkoHjRp3GWwHOBBD hl7j6UpmOkwhtH78pU9Gy/rr/pTnp4bSPMz9MbOkoSzhaGely4UyUXJdhAkt8gG9dJ J3DrfvGAZf+175vF7cBRLaBrtGDaTvXwx95eSgZy25L9C8TuFxkeeNZ91Huyo1v13H CGRPsWCs0+bHw== Date: Sun, 18 Feb 2024 19:06:43 +0000 To: help-guix@gnu.org From: Skyler Ferris Subject: Proper use of `guix build X --rounds=2` Message-ID: <2d797b5b-5bc7-4f68-8287-be148ba6bacd@protonmail.com> Feedback-ID: 40635331:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=skyvine@protonmail.com; helo=mail-4322.protonmail.ch 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_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: -9.86 X-Spam-Score: -9.86 X-Migadu-Queue-Id: DE9941337D X-Migadu-Scanner: mx13.migadu.com X-TUID: 182RB5DmkH4q Hello, Checking a package for reproducibility is one important part of patch=20 review. Based on the documentation for the `--rounds=3DN`, I expect that a= =20 line such as `guix build foo --rounds=3D2` will build the package at least= =20 once and at most twice (assuming that, if the output is already present=20 in the store, it will only build it once and compare it to the=20 previously existing store entry; but if it does not do this optimization=20 then the question in this email remains valid). However, this seems not=20 to be the case. I tested using this simple package definition: test.scm ``` (use-modules (guix build-system trivial) (guix gexp) (guix packages)) (package =C2=A0 (build-system trivial-build-system) =C2=A0 (arguments (list =C2=A0=C2=A0=C2=A0 #:builder =C2=A0=C2=A0=C2=A0 #~(begin =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir #$output) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sleep 60)))) =C2=A0 (name "test") =C2=A0 (version "0.0") =C2=A0 (source #f) =C2=A0 (description #f) =C2=A0 (synopsis #f) =C2=A0 (home-page #f) =C2=A0 (license #f)) ``` If I first build using `time guix build -f test.scm`, then it takes more=20 than a minute to run as expected. If I run the same command again then=20 it takes about a second to run, which is also as expected because guix=20 sees that the output has already been built. But if I then run `time=20 guix build -f test.scm --rounds=3D2`, it still takes about a second to run= =20 which means that it's not building the package a second time. Interestingly, if I change the package (for example, by changing the=20 version number to "0.1") and then run `time guix build -f test.scm=20 --rounds=3D2` (WITHOUT building normally first, so there is no=20 pre-existing store entry) then it takes just over 2 minutes to run,=20 implying that it built the package twice serially. Am I using the `--rounds` flag wrong, do I misunderstand this tool, or=20 is this actually a bug? Regards, Skyler