unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Timotej Lazar <timotej.lazar@araneo.si>
To: Mathieu Othacehe <othacehe@gnu.org>, 55206@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#55206: Intermittent ldap test failure
Date: Thu, 23 Jun 2022 18:28:53 +0200	[thread overview]
Message-ID: <87wnd7pcmy.fsf@araneo.si> (raw)
In-Reply-To: <87r15dmrvk.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Hi,

Mathieu Othacehe <othacehe@gnu.org> [2022-05-01 13:09:19+0200]:
> The ldap test in intermittently failing:
> https://ci.guix.gnu.org/build/703858/log/raw.

I just encountered the same failure with a different error:

    komputilo login: Traceback (most recent call last):
      File "/gnu/store/jkfbqqv7dk38xr1a214razjlxip49hip-389-ds-base-1.4.4.17/sbin/.dsctl-real", line 20, in <module>
    …
    OSError: [Errno 12] Cannot allocate memory: '/gnu/store/jkfbqqv7dk38xr1a214razjlxip49hip-389-ds-base-1.4.4.17/lib/python3.9/site-packages/lib389/cli_ctl'

About 50% of test runs fail, either with this error or the one from the
original report.

After increasing the memory limit for the test VM, I was able to run the
test successfully ten times on two different machines. The patch is
attached.


[-- Attachment #2: 0001-tests-ldap-Increase-VM-memory-size.patch --]
[-- Type: text/x-patch, Size: 1032 bytes --]

From 7e187015b49469671d9a25e5c1f3892f5e396ac6 Mon Sep 17 00:00:00 2001
From: Timotej Lazar <timotej.lazar@araneo.si>
Date: Thu, 23 Jun 2022 18:13:29 +0200
Subject: [PATCH] tests: ldap: Increase VM memory size.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

With the default limit of 512 MB the test sometimes fails, in different
ways. Fixes https://issues.guix.gnu.org/55206.

* gnu/tests/ldap.scm (run-ldap-test): Increase memory size to 1024 MiB.
---
 gnu/tests/ldap.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/tests/ldap.scm b/gnu/tests/ldap.scm
index d5403b3539..47e77c0c53 100644
--- a/gnu/tests/ldap.scm
+++ b/gnu/tests/ldap.scm
@@ -58,7 +58,9 @@ (define os
                           (guix combinators))))
 
   (define vm
-    (virtual-machine os))
+    (virtual-machine
+     (operating-system os)
+     (memory-size 1024)))
 
   (define test
     (with-imported-modules '((gnu build marionette))
-- 
2.36.1


  reply	other threads:[~2022-06-23 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 11:09 bug#55206: Intermittent ldap test failure Mathieu Othacehe
2022-06-23 16:28 ` Timotej Lazar [this message]
2022-06-24  8:26   ` Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnd7pcmy.fsf@araneo.si \
    --to=timotej.lazar@araneo.si \
    --cc=55206@debbugs.gnu.org \
    --cc=othacehe@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).