From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 13:17:29 2022 Received: (at submit) by debbugs.gnu.org; 24 Jan 2022 18:17:29 +0000 Received: from localhost ([127.0.0.1]:45768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC3uD-0003Ym-AC for submit@debbugs.gnu.org; Mon, 24 Jan 2022 13:17:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:41488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC3uB-0003XS-PC for submit@debbugs.gnu.org; Mon, 24 Jan 2022 13:17:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC3uB-0004cL-J7 for guix-patches@gnu.org; Mon, 24 Jan 2022 13:17:27 -0500 Received: from [2a00:1450:4864:20::444] (port=41892 helo=mail-wr1-x444.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC3uA-0000Ja-2H for guix-patches@gnu.org; Mon, 24 Jan 2022 13:17:27 -0500 Received: by mail-wr1-x444.google.com with SMTP id r22so7576848wra.8 for ; Mon, 24 Jan 2022 10:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:content-transfer-encoding:message-id :mime-version; bh=RhZQyjvX95vK9zDm04cIsVRkadxdIZsjlYve6RJ0AHY=; b=Lvbez/sAxq010xwbx6HZhOkTbND4pJBycZ/bxZxcFG/2elpBxFGYPOvRGQLACV3fps EOQfPXb3D/nUNCo9wSqiShSZGApnMho0tHnWMEaJkVpPwUcjbaJ3uq1yVXDLPdsC7RB5 Tp13nzBZeleBqWadU9SRYyr+7keWujw6jcpnWMXihYcB5X3BEpWfhChMk69xgqLjwv3b YJjgWOEyju7Nm7lqbHBqy3hFkYqLwkPmGzJf8kT0CDAqFlX4kV9ET8Bz8kvhAOnfZEpS 3bd2X/HS5+rqsMz1lW5IdE24WDPMEhiIvzwTqoQq9jNC7nRafHVurvMkF74+M3LX4gAk FViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:content-transfer-encoding :message-id:mime-version; bh=RhZQyjvX95vK9zDm04cIsVRkadxdIZsjlYve6RJ0AHY=; b=ehyWpkvWgjefJc32wiwSc2JaHaSqFL+0KMIo/KZ0s9EIyhqcqsbsPsexbgCw+T4JqV +wbS8pBGhCG14GsfxN/AQHDJuYhJ+1ddSKtCjR4opcdLnrI0HIcR9F1Se1NumU2UVBdy ZAhDWaepiFKwko7nBwl1uZG2E5l0hAAFCqxU7rASa3/f0Z/45D8NOBXTJmp3iV6KCu60 9HQkc955EtBkyByw/LLQfmEKLiwFVa1xwnO/xwoj/npEX2iuiShrweOm7dTp07c6+M04 tT5fRv3BPktKV7Dy3TYqapBcEq9jlvqYy7nG3RRCrAZV5MPXEnXx47aINlZPJOWGJziy Oh6Q== X-Gm-Message-State: AOAM533tQUyVuO38E+GVyPPsrJ799p3lsSjddJ1+90SZIy0ikYj/mtKe /duGpUVuo/u9/iBJoc8iUsrFRxRC5Io= X-Google-Smtp-Source: ABdhPJzi5q1OrQ//IkJAWwj6REfXVgpiSUJ4V07qMjUWkvEZxB3YeYi0+lBl0xH3K8MXNtiBYWubnw== X-Received: by 2002:a5d:6486:: with SMTP id o6mr15033467wri.609.1643048244283; Mon, 24 Jan 2022 10:17:24 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id 16sm54031wmj.12.2022.01.24.10.17.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 10:17:23 -0800 (PST) From: Liliana Marie Prikler Date: Mon, 24 Jan 2022 19:15:44 +0100 Subject: [PATCH] tests: Assert that cyclic graphs can be produced. to: guix-patches@gnu.org Content-Transfer-Encoding: 7bit Message-ID: <9649435159ca9f35c55ae66e577f520da50f5f8d.camel@gmail.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::444 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=liliana.prikler@gmail.com; helo=mail-wr1-x444.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * tests/graph.scm ("package DAG, oops it was a cycle"): New test. --- tests/graph.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/graph.scm b/tests/graph.scm index fadac265f9..baa08a6be2 100644 --- a/tests/graph.scm +++ b/tests/graph.scm @@ -36, 6 +36, 7 @@ (define-module (test-graph) #:use-module (gnu packages [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (liliana.prikler[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.3 SPOOFED_FREEMAIL No description available. 1.5 SPOOF_GMAIL_MID From Gmail but it doesn't seem to be... X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * tests/graph.scm ("package DAG, oops it was a cycle"): New test. --- tests/graph.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/graph.scm b/tests/graph.scm index fadac265f9..baa08a6be2 100644 --- a/tests/graph.scm +++ b/tests/graph.scm @@ -36,6 +36,7 @@ (define-module (test-graph) #:use-module (gnu packages libunistring) #:use-module (gnu packages bootstrap) #:use-module (ice-9 match) + #:use-module (ice-9 sandbox) #:use-module (srfi srfi-1) #:use-module (srfi srfi-11) #:use-module (srfi srfi-26) @@ -113,6 +114,33 @@ (define (edge->tuple source target) (list p4 p4) (list p2 p3)))))))) +(test-assert "package DAG, oops it was a cycle" + (let-values (((backend nodes+edges) (make-recording-backend))) + (letrec ((p1 (dummy-package "p1" (inputs `(("p3" ,p3))))) + (p2 (dummy-package "p2" (inputs `(("p1" ,p1))))) + (p3 (dummy-package "p3" (inputs `(("p2" ,p2) ("p1", p1)))))) + (call-with-time-limit + 600 ;; If ever this test should fail, we still want it to terminate + (lambda () + (run-with-store %store + (export-graph (list p3) 'port + #:node-type %package-node-type + #:backend backend))) + (lambda () + (run-with-store %store + (export-graph + (list (dummy-package "timeout-reached")) + 'port + #:node-type %package-node-type + #:backend backend)))) + ;; We should see nothing more than these 3 packages. + (let-values (((nodes edges) (nodes+edges))) + (and (equal? nodes (map package->tuple (list p3 p2 p1))) + (equal? edges + (map edge->tuple + (list p3 p3 p2 p1) + (list p2 p1 p1 p3)))))))) + (test-assert "reverse package DAG" (let-values (((backend nodes+edges) (make-recording-backend))) (run-with-store %store -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 17:12:04 2022 Received: (at 53510) by debbugs.gnu.org; 4 Feb 2022 22:12:04 +0000 Received: from localhost ([127.0.0.1]:33103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG6oG-0006nx-24 for submit@debbugs.gnu.org; Fri, 04 Feb 2022 17:12:04 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:44404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG6oE-0006nO-S7 for 53510@debbugs.gnu.org; Fri, 04 Feb 2022 17:12:03 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7E0723D5; Fri, 4 Feb 2022 23:11:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7AaXvDAEjQCz; Fri, 4 Feb 2022 23:11:57 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 1FA9CCA; Fri, 4 Feb 2022 23:11:57 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Subject: Re: bug#53510: [PATCH] tests: Assert that cyclic graphs can be produced. References: <9649435159ca9f35c55ae66e577f520da50f5f8d.camel@gmail.com> Date: Fri, 04 Feb 2022 23:11:56 +0100 In-Reply-To: <9649435159ca9f35c55ae66e577f520da50f5f8d.camel@gmail.com> (Liliana Marie Prikler's message of "Mon, 24 Jan 2022 19:15:44 +0100") Message-ID: <8735kymgcz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 7E0723D5 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53510 Cc: 53510@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Liliana Marie Prikler skribis: > * tests/graph.scm ("package DAG, oops it was a cycle"): New test. LGTM, thanks! Ludo'. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 10 16:21:14 2022 Received: (at control) by debbugs.gnu.org; 10 Feb 2022 21:21:14 +0000 Received: from localhost ([127.0.0.1]:57350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIGsM-0004J5-BF for submit@debbugs.gnu.org; Thu, 10 Feb 2022 16:21:14 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIGsK-0004Io-Dc for control@debbugs.gnu.org; Thu, 10 Feb 2022 16:21:12 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0D862AD3 for ; Thu, 10 Feb 2022 22:21:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z3sIN1SEydDR for ; Thu, 10 Feb 2022 22:21:06 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8AAE8171 for ; Thu, 10 Feb 2022 22:21:06 +0100 (CET) Date: Thu, 10 Feb 2022 22:21:06 +0100 Message-Id: <87pmnu2zb1.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #53510 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 0D862AD3 X-Spamd-Result: default: False [0.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[control@debbugs.gnu.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.71)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) close 53510 quit From unknown Thu Jun 19 14:10:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Mar 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator