GNU bug report logs - #49463
[core-updates] libdatrie occasionally fails test

Previous Next

Package: guix;

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

Date: Thu, 8 Jul 2021 11:04:01 UTC

Severity: normal

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 49463 in the body.
You can then email your comments to 49463 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 bug-guix <at> gnu.org:
bug#49463; Package guix. (Thu, 08 Jul 2021 11:04:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 08 Jul 2021 11:04:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: [core-updates] libdatrie occasionally fails test
Date: Thu, 08 Jul 2021 13:03:06 +0200
On ‘core-updates’ commit 7a9f4822c0c431c25071977b68ab79d152887ec3,
libdatrie occasionally has one test failure (on x86_64-linux):

--8<---------------cut here---------------start------------->8---
make[3]: Entering directory '/tmp/guix-build-libdatrie-0.2.13.drv-0/libdatrie-0.2.13/tests'
PASS: test_walk
PASS: test_iterator
PASS: test_store-retrieve
PASS: test_term_state
PASS: test_nonalpha
PASS: test_file
PASS: test_byte_list
FAIL: test_serialization
PASS: test_byte_alpha
PASS: test_null_trie
============================================================================
Testsuite summary for libdatrie 0.2.13
============================================================================
# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to https://github.com/tlwg/libdatrie/issues
============================================================================
make[3]: *** [Makefile:829: test-suite.log] Error 1
make[3]: Leaving directory '/tmp/guix-build-libdatrie-0.2.13.drv-0/libdatrie-0.2.13/tests'
make[2]: *** [Makefile:937: check-TESTS] Error 2
make[2]: Leaving directory '/tmp/guix-build-libdatrie-0.2.13.drv-0/libdatrie-0.2.13/tests'
make[1]: *** [Makefile:1074: check-am] Error 2
make[1]: Leaving directory '/tmp/guix-build-libdatrie-0.2.13.drv-0/libdatrie-0.2.13/tests'
make: *** [Makefile:471: check-recursive] Error 1

Test suite failed, dumping logs.

--- ./tests/test-suite.log --------------------------------------------------

============================================
   libdatrie 0.2.13: tests/test-suite.log
============================================

# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test_serialization
========================

=> Preparing trie...
=> Saving trie to file...
=> Getting serialized trie size...
serialized trie size 1376
=> Allocating...
allocated 0x40ba70
=> Serializing...
=> Serialized...
Failed to reopen trie file test.tri.
FAIL test_serialization (exit status: 1)
--8<---------------cut here---------------end--------------->8---

It’s problematic because it’s a dependency of Guix on that branch:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix graph --path guix libdatrie
guix <at> 1.3.0-4.4985a42
graphviz <at> 2.47.1
pango <at> 1.48.4
libthai <at> 0.1.28
libdatrie <at> 0.2.13
--8<---------------cut here---------------end--------------->8---

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 08 Jul 2021 12:17:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Thu, 08 Jul 2021 12:17:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: 49463-done <at> debbugs.gnu.org
Subject: Re: bug#49463: [core-updates] libdatrie occasionally fails test
Date: Thu, 08 Jul 2021 14:16:27 +0200
Ludovic Courtès <ludo <at> gnu.org> skribis:

> FAIL: test_serialization
> ========================
>
> => Preparing trie...
> => Saving trie to file...
> => Getting serialized trie size...
> serialized trie size 1376
> => Allocating...
> allocated 0x40ba70
> => Serializing...
> => Serialized...
> Failed to reopen trie file test.tri.
> FAIL test_serialization (exit status: 1)

This is a classical problem of having several tests fiddling with the
same file:

--8<---------------cut here---------------start------------->8---
$ grep --color -nH --null -e 'test\.tri' *.c
test_file.c32:#define TRIE_FILENAME "test.tri"
test_serialization.c34:#define TRIE_FILENAME "test.tri"
--8<---------------cut here---------------end--------------->8---

Fixed by running tests sequentially in commit
5f919605e94b12d7f56656a30f66f205c24cde98.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 Aug 2021 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 256 days ago.

Previous Next


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