GNU bug report logs - #77578
[PATCH] tests: docker-system: Use only guix-daemon service.

Previous Next

Package: guix-patches;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Sun, 6 Apr 2025 15:09:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: 77578 <at> debbugs.gnu.org
Cc: Oleg Pykhalov <go.wigust <at> gmail.com>, Ludovic Courtès <ludo <at> gnu.org>
Subject: [bug#77578] [PATCH 2/2] tests: docker-system: Add network up test.
Date: Fri, 18 Apr 2025 22:52:39 +0300
Addresses intermittent Docker test failures caused by timing issues where
container-related checks ran before the networking service was fully
initialized. A new "network is up" assertion has been added to explicitly
start and verify the 'networking' service using `marionette-eval`.

* gnu/tests/docker.scm (%test-docker-system): Add "network is up" test.

Change-Id: I0c761ae2ce2e7b398c8f35ea1faf50257193ccc5
---
 gnu/tests/docker.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/tests/docker.scm b/gnu/tests/docker.scm
index 3c3995c9b8..540ac76877 100644
--- a/gnu/tests/docker.scm
+++ b/gnu/tests/docker.scm
@@ -252,6 +252,13 @@ (define marionette
           (test-runner-current (system-test-runner #$output))
           (test-begin "docker")
 
+          (test-assert "network is up"
+            (marionette-eval
+             '(begin
+                (use-modules (gnu services herd))
+                (start-service 'networking))
+             marionette))
+
           (test-assert "containerd service running"
             (marionette-eval
              '(begin
-- 
2.47.1





This bug report was last modified 74 days ago.

Previous Next


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