From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iHd3GrBaEGQlFgEASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 12:29:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UMpIGrBaEGR6WgEAauVa8A (envelope-from ) for ; Tue, 14 Mar 2023 12:29:52 +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 3F6D938CC3 for ; Tue, 14 Mar 2023 12:29:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc2qS-0005Rt-O3; Tue, 14 Mar 2023 07:29:34 -0400 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 1pc2qL-0005Qz-Gq for guix-devel@gnu.org; Tue, 14 Mar 2023 07:29:25 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pc2qJ-0001QZ-V3 for guix-devel@gnu.org; Tue, 14 Mar 2023 07:29:25 -0400 Received: by mail-wr1-x432.google.com with SMTP id i9so4997655wrp.3 for ; Tue, 14 Mar 2023 04:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678793362; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8Ql0zcgswbmzIUVebCvB1pSRvT42EnSfGhKmwuof7ko=; b=OvkYzFDeMcsiTxwGlsnFjmfMxUCr1yGI13qyhBTi5O0H9gZvAwQZlTYRb+XGxk4Hpp YFqRyx2DzQJCY6YGo+UQyje/FinPZFo8cAZehVbk4CJatryDRoyftzyacZz20i5mhNWu HPlHVr5ONWLIdIVzi25eOWYjxuIZ/RLJp06GSN60jckTYruCmxYbdkNn03yrjU3WPRHU myZRZJSvWZaqumr9NYvR5YBdNqv9Phpj931jV/GBwWpHw8XoacC+56/MqttpjuyocskN EvgxdjprR4KQwBZQv5fdJrizMEU+Ln8XHQ1WVVF0wkYGD1MSOd+Tf8yzt/wkHCrjY96o tJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678793362; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=8Ql0zcgswbmzIUVebCvB1pSRvT42EnSfGhKmwuof7ko=; b=gY9CtWR2Aa+W9UhNksFrtb2kD/apFTuq2Wc1vuUaiz+3y8bV51MrGs+5sU+uNL1WUk hkBZph/qBV2gj1hgV7hxPMlidIj1UeSiOTlKVyjJDpJsTsrWAGlE6Csusspqhl+AgEhc rUat5+bFYdRXyddHtDSpxRqoUvSedvW5o2m8Y+m8bs+CwCAc03ZIVYCwTypoii1KJgki E+KfgdWE4WkP/eFjTP30T+REZQoy2wsg6n/eishlX1V00W3h9otpYofETzntPk1Pxxlh N1PcoXtTxaKB/B6vBkMCVTjYqcxrtbBYeT/RPqbRpaLeQorsgBmBKZeDXkOVmnVkbhOR rRbQ== X-Gm-Message-State: AO0yUKWA/VGpefgzZdDuVH9v9aVnAe66PENg2HQWLFWX6dw9hp+/yf/p x5in38QGT/CcWxosORdraX12iJPfP3o= X-Google-Smtp-Source: AK7set+7IPfCJKAOVJm9npQlA8N0Z8ouQkU3p1bTavdR7g4p9llXFceXoAHpalENUQaztoOlGyqQaw== X-Received: by 2002:adf:f590:0:b0:2cf:df6d:6063 with SMTP id f16-20020adff590000000b002cfdf6d6063mr4461603wro.2.1678793361824; Tue, 14 Mar 2023 04:29:21 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id t4-20020a0560001a4400b002be5bdbe40csm1840360wry.27.2023.03.14.04.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 04:29:21 -0700 (PDT) From: Simon Tournier To: Josselin Poiret , "Dr. Arne Babenhauserheide" , guix-devel@gnu.org Subject: Re: Caching test results separately? In-Reply-To: <871qlsi97h.fsf@jpoiret.xyz> References: <878rg0o5zy.fsf@web.de> <871qlsi97h.fsf@jpoiret.xyz> Date: Tue, 14 Mar 2023 12:03:56 +0100 Message-ID: <86r0tr1tnn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x432.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OvkYzFDe; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678793392; a=rsa-sha256; cv=none; b=FhBCbT+F+60za+p7c/p69O1m/iN/IsdNW2lbsFsYokZTAjreVGJ7+gPzUTFo9KOQWOFsEQ wqnF/O+204sfzfeYQ53nGOBrYRuZKNU2Bk0JF4oVXVvLgPZVxKNJCX0Jf9S8SgjRWMWsOY QrSLL9nM99M9lRtAjI/Y0mB/TUX8zLI6KZUlamgddxasPbQ2+43hQPDkMDlYJ8IebeoYS6 RU6IlvKe2xl7ceohNsVrf3bB4mRE2Fssd+4+juyFwBYwbaG/12Bfv0VFc1ds02tdlTVhO5 5xg0y3hTmLcRSN+aqa/BmNURyT6aaIYmaixFhgfp/OJtIg7SYpiz0fz1bD/VHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678793392; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8Ql0zcgswbmzIUVebCvB1pSRvT42EnSfGhKmwuof7ko=; b=QkJrnH76ZnMiZO6XF4tHbuhMhrKA53oFrSCy+jVZHIb39W1VCLgpG74lldU1a3BjyWAXXL qDlrd1prj9UOF3eO71SxFxFbOW/vJIg38kL6li8lqQAC82g4cQxelcCJ0r7HFcLFoUGDUX 1NEoU3nDwdTgev1ZQoQ2wMG685agToFRbxYuEHNXE/Kv0dgH9ZeztW3TwZZrofVLAbj81t WBk0cj29VIhXfwLcQW8VMFRM8YQpSTdOIvHWKdtBT0nebwxhrB2VezYtKwYpAR3I1TJoNp yI4qBeHBuLnbkRKJiwWSAGKATKEu+RhEUYLShNXTt/rfs+rYP0Rz2wPRe9s/rQ== X-Migadu-Spam-Score: -5.46 X-Spam-Score: -5.46 X-Migadu-Queue-Id: 3F6D938CC3 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OvkYzFDe; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: H3En3B6a+CB0 Hi, On Mon, 13 Mar 2023 at 23:21, Josselin Poiret wrote: >> (=E2=87=92 keep the test result (boolean) longer than the build result) [...] > As it stands it's really not possible, as > > 1) testing is part of the build process itself and > 2) we can't look-up any stateful info like this from the building > process (of course!) Indeed, the builder derivation is not the same and so the item is not the same. --8<---------------cut here---------------start------------->8--- $ guix build hello --no-grafts /gnu/store/s5pd3rnzymliafb4la5sca63j86xs0y0-hello-2.12.1 $ guix build hello --no-grafts --without-tests=3Dhello /gnu/store/0h3d2z53xx2idy6pnqa8k781hlf40zmx-hello-2.12.1 --8<---------------cut here---------------end--------------->8--- Compare, /gnu/store/s5y2w04jiydki5wb0zb9189x88v5288s-hello-2.12.1-builder /gnu/store/d5asvb7mla28mf93hjrk6fffnx14n8b1-hello-2.12.1-builder =20=20=20=20 (quote ()) #:out-of-source? #f #:tests? #t=20 (quote ()) #:out-of-source? #f #:tests? #f=20 Last, note the self reference, --8<---------------cut here---------------start------------->8--- $ diff -r --no-dereference \ $(guix build hello --no-grafts) \ $(guix build hello --no-grafts --without-tests=3Dhello) Binary files /gnu/store/s5pd3rnzymliafb4la5sca63j86xs0y0-hello-2.12.1/bin/hello and /gnu/store/0h3d2z53xx2idy6pnqa8k781hlf40zmx-hello-2.12.1/bin/hello differ $ grep s5pd3rnzymliafb4la5sca63j86xs0y0 $(guix build hello --no-grafts)/bin= /hello grep: /gnu/store/s5pd3rnzymliafb4la5sca63j86xs0y0-hello-2.12.1/bin/hello: b= inary file matches $ grep 0h3d2z53xx2idy6pnqa8k781hlf40zmx $(guix build hello --no-grafts --wi= thout-tests=3Dhello)/bin/hello grep: /gnu/store/0h3d2z53xx2idy6pnqa8k781hlf40zmx-hello-2.12.1/bin/hello: b= inary file matches --8<---------------cut here---------------end--------------->8--- > But I would really like for tests to move out of build phases, the > advantages would be twofold: less build time for a lot of packages, and > better environment management for tests (we could rely on better > interaction with other packages, more complicated mocking, use linux > namespaces to their fullest extent, etc.). That would require a huge > change to Guix though, so it's more of a dream than anything concrete. I agree: + it would simplify many things if we were able to run or re-run specific phases =E2=80=93 Nix does that I guess. + it would be huge complex change. :-) Well, similarly of the =E2=80=99without-tests=E2=80=99 transformation, mayb= e we could imagine another transformation for just run the test suite. I mean, it would not solve Arne=E2=80=99s issue but the converse: sometimes a package requiring many compilation is failing because of one test and debugging that is for some cases painful. Cheers, simon