GNU bug report logs - #76646
[PATCH Cuirass] tests: store: Fix non-reproducible test.

Previous Next

Package: guix-patches;

Reported by: Romain GARBAGE <romain.garbage <at> inria.fr>

Date: Fri, 28 Feb 2025 15:24:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76646 in the body.
You can then email your comments to 76646 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#76646; Package guix-patches. (Fri, 28 Feb 2025 15:24:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Romain GARBAGE <romain.garbage <at> inria.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 28 Feb 2025 15:24:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Romain GARBAGE <romain.garbage <at> inria.fr>
To: guix-patches <at> gnu.org
Cc: ludovic.courtes <at> inria.fr, Romain GARBAGE <romain.garbage <at> inria.fr>
Subject: [PATCH Cuirass] tests: store: Fix non-reproducible test.
Date: Fri, 28 Feb 2025 16:22:29 +0100
* tests/store.scm ("build-derivations&, non-fiber"): Fix non-reproducible test.
---
 tests/store.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/store.scm b/tests/store.scm
index f959338..ea1c242 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -17,6 +17,8 @@
 ;;; along with Cuirass.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (tests store)
+  #:autoload   (guix derivations) (build-derivations
+                                   derivation-path->output-paths)
   #:use-module (guix store)
   #:use-module (guix gexp)
   #:use-module ((gnu packages bootstrap) #:select (%bootstrap-guile))
@@ -74,6 +76,10 @@
   '(build-succeeded build-started)
   (with-store store
     (set-build-options store #:print-build-trace #t)
+    ;; This makes sure that the dependencies needed to build drv below are
+    ;; already present: this test fails when they are missing, thus depending
+    ;; on the state of the underlying store, which is not reproducible.
+    (build-derivations store (list (trivial-derivation store)))
     (let* ((drv (trivial-derivation store))
            (port finish (build-derivations& store (list drv)))
            (events (process-build-log port

base-commit: 520b2fdbd96e953fc2d4b56e78e52a81fc11e2b7
-- 
2.48.1





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 10 Mar 2025 15:53:01 GMT) Full text and rfc822 format available.

Notification sent to Romain GARBAGE <romain.garbage <at> inria.fr>:
bug acknowledged by developer. (Mon, 10 Mar 2025 15:53:01 GMT) Full text and rfc822 format available.

Message #10 received at 76646-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Romain GARBAGE <romain.garbage <at> inria.fr>
Cc: 76646-done <at> debbugs.gnu.org
Subject: Re: bug#76646: [PATCH Cuirass] tests: store: Fix non-reproducible
 test.
Date: Mon, 10 Mar 2025 16:52:27 +0100
Romain GARBAGE <romain.garbage <at> inria.fr> skribis:

> * tests/store.scm ("build-derivations&, non-fiber"): Fix non-reproducible test.

Applied, thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Apr 2025 11:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.