From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 gOF1I8StD2TXSAAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 00:12:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WOeDI8StD2R/YgAA9RJhRA (envelope-from ) for ; Tue, 14 Mar 2023 00:12:04 +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 61BE31F8C9 for ; Tue, 14 Mar 2023 00:12:04 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=ptVUBrqP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678749124; h=from:from:sender:sender:reply-to: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=YRW8w8ccJGSmKNpN8oOBoTyIowvwufSPpaAKK2Xct/0=; b=fy7oQKn/vNr0nh4gfsFb2QKUypEMmb/O1HOMt+yZx3eKWMlaJs6rL/QPUVij8jScMLsQY8 8GmGbS++0w18UWmgiUr0JzS8MkZR/N4E/MzUJiHwezUHDIiRZKbPqY/v9IEopFqAGZWj5N gAPMyqgVn2yd7FwuA8Gaex4ioPJ97QWmrFexBF16PvkWf8nPnpFNa6MUDyfuaH1Wqzg68C RfbMnJ42BvCp0buQk55fimspFtX5Qrp23meGjdEzE/x741dDpzuUzAePh7kbFDt+37/GRA t7kcg/l5XBemIgCmvEC2brLpkPvf4/AR12A/NLGkdr0q/bYOdIF0vZnMaqTWYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=ptVUBrqP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678749124; a=rsa-sha256; cv=none; b=Pv4lnm9T6bymvZfCTSHW2ldocNnR2/qsmD1w8WCRKGXzEePlMDWbww1DUn5FZJ9KlY54z8 EEbUUcLDLc+5c0lxW4ck8mOP5Q+tLtV27836O9AvV3XSmh4OHqId3QqsQ7z3UJ1IzVeISE 4rvMNFmqLY9CnXF+8gnHkvSstUSUotvL1geMcFifp4A/ynAh2d0eWCeOP3/xA9IYZnCD/9 xmIx/uhRYLZcUnF0okhpcuS2s+OWsybJibN+TSTIsrhgoXzeqtxuCNrEe5F8WjAtvovAD6 u9VQXQaIhCZN/E4LF7gxkC+TQGvsXfGZR0CSiKnOVI0XX+IJX9drUHi3MMB6/g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbrKG-0003mz-RK; Mon, 13 Mar 2023 19:11:32 -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 1pbrKF-0003mE-1w for guix-devel@gnu.org; Mon, 13 Mar 2023 19:11:31 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pbrKD-00085c-8P for guix-devel@gnu.org; Mon, 13 Mar 2023 19:11:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=YRW8w8ccJGSmKNp N8oOBoTyIowvwufSPpaAKK2Xct/0=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=ptVUBrqP+gua3MZox0GDYAeKx8dGMECiywMpNArc ZQ2KjPj4jkg1D6YAnfld70LUhupzvjupqgQyP7lCcmDTw6TQseB1sY4ldQWVVCju4CPauR JuAOr8Kxw80/sQeK9n0GTcQTOqQgHvSr3L/CxonKxzDAIgVI0g8GPiPXCkw7I= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 2775f431 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Mon, 13 Mar 2023 23:11:23 +0000 (UTC) Received: by mail-lj1-f174.google.com with SMTP id b13so14280702ljf.6 for ; Mon, 13 Mar 2023 16:11:22 -0700 (PDT) X-Gm-Message-State: AO0yUKWOXrI0b+2ZrtyQY36q3vnENC6QjJHeEKR5KaSamqxinwuNcN49 d9Vatq1boPVds3B9XbD2i4YSmPc15limNuzlaq4= X-Google-Smtp-Source: AK7set+g8FLEuUnyoS/ezhzHxiDsqUU7+aUnNJo2HqpmyihJAwCFhqm8VhwSUWRWsFyDpeY9YiF9WWZcuRY4TaUxEbU= X-Received: by 2002:a2e:a612:0:b0:295:d632:ba22 with SMTP id v18-20020a2ea612000000b00295d632ba22mr11271818ljp.8.1678749080766; Mon, 13 Mar 2023 16:11:20 -0700 (PDT) MIME-Version: 1.0 References: <878rg0o5zy.fsf@web.de> <871qlsi97h.fsf@jpoiret.xyz> In-Reply-To: <871qlsi97h.fsf@jpoiret.xyz> Date: Mon, 13 Mar 2023 16:10:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Towards generalized testing (Was: Caching test results separately?) To: Josselin Poiret Cc: "Dr. Arne Babenhauserheide" , Guix Devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.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, 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: , X-Migadu-Queue-Id: 61BE31F8C9 X-Spam-Score: -4.32 X-Migadu-Spam-Score: -4.32 X-Migadu-Scanner: scn0.migadu.com Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." 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 X-TUID: D6He9R0Xvz+K Hi Josselin, On Mon, Mar 13, 2023 at 3:21=E2=80=AFPM Josselin Poiret w= rote: > > I would really like for tests to move out of build phases > > That would require a huge change to Guix though Fortunately, there is a great precedent for that work in Debian. It is called autopkgtest. [1] One package I maintained there, called Lintian, had a comprehensive test suite that mimicked large parts of Debian including building packages. When I moved the tests out of the build process, it shortened the build time from six hours to seven minutes. That was on Gitlab with external runners provided by a donor. The key to understanding Debian's autopkgtest process is that, while the test suites are distributed together with the sources, they actually test the *installed* versions of the software (which are loaded separately). That crucial distinction catches important user-facing errors that were previously undetectable, such as installation in the wrong path. We already have many good starting points in Guix. Some truly great work has been done. [2] There are also two SRFIs [3][4] although I am personally biased toward TAP (the "Test-Anything Protocol") [5] and already used that in one of my Guile modules. [6] Either way, such testing efforts will make our distribution even better, especially as we support additional architectures. I would be eager to cooperate if there is an extra seat at the table. Kind regards, Felix [1] https://people.debian.org/~eriberto/README.package-tests.html [2] https://luis-felipe.gitlab.io/guile-proba/manual/ [3] https://srfi.schemers.org/srfi-64/srfi-64.html [4] https://srfi.schemers.org/srfi-78/srfi-78.html [5] https://codeberg.org/ft/guile-tap [6] https://codeberg.org/lechner/guile-naptcha/src/branch/history/scm/test/= naptcha/pseudo-random.scm