Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504510 - app-crypt/libsecret-0.16 fails test /collection/delete-async (timeout by message bus)
Summary: app-crypt/libsecret-0.16 fails test /collection/delete-async (timeout by mess...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: IA64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2014-03-13 19:55 UTC by Émeric Maschino
Modified: 2016-10-04 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,98.51 KB, text/plain)
2014-03-13 20:00 UTC, Émeric Maschino
Details
environment (environment,132.51 KB, text/plain)
2014-03-13 20:00 UTC, Émeric Maschino
Details
test-suite.log for =app-crypt/libsecret-0.18.3 (test-suite.log,199.69 KB, text/plain)
2015-11-29 11:21 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2014-03-13 19:55:30 UTC
Emerging libsecret with FEATURES=test fails in test-collection.

From build.log, the relevant part seems to be:

/collection/delete-async:                                            ** Message: Remote error from secret service: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

** (test-collection:24741): WARNING **: couldn't set SecretCollection Label: Message did not receive a reply (timeout by message bus)
FAIL
GTester: last random seed: R02Sad55fd23da8ec245a1b2783256711344

This doesn't seem to be related with bug #486410.

     Émeric
Comment 1 Émeric Maschino 2014-03-13 19:57:07 UTC
emerge --info

Portage 2.2.8-r1 (default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.6.3, glibc-2.17, 3.10.25-gentoo ia64)
=================================================================
System uname: Linux-3.10.25-gentoo-ia64-Madison-with-gentoo-2.2
KiB Mem:    24987056 total,  23618256 free
KiB Swap:     524272 total,    524272 free
Timestamp of tree: Wed, 12 Mar 2014 23:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo my_ebuilds
ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-mtune=itanium2 -O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=itanium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/my_ebuilds"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Émeric Maschino 2014-03-13 19:59:06 UTC
emerge -pqv

[ebuild   R   ] app-crypt/libsecret-0.16  USE="crypt introspection {test*} -debug -vala"
Comment 3 Émeric Maschino 2014-03-13 20:00:05 UTC
Created attachment 372596 [details]
build.log
Comment 4 Émeric Maschino 2014-03-13 20:00:20 UTC
Created attachment 372598 [details]
environment
Comment 5 Pacho Ramos gentoo-dev 2014-03-13 20:53:16 UTC
In my case I see errors like:
TEST: test-lookup-password.py
EE..
======================================================================
ERROR: testAsyncNotFound (__main__.TestLookup)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-lookup-password.py", line 58, in testAsyncNotFound
    loop = GLib.MainLoop(None, False)
TypeError: __new__() takes at most 2 arguments (3 given)

======================================================================
ERROR: testAsynchronous (__main__.TestLookup)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-lookup-password.py", line 45, in testAsynchronous
    loop = GLib.MainLoop(None, False)
TypeError: __new__() takes at most 2 arguments (3 given)

----------------------------------------------------------------------
Ran 4 tests in 0.296s

FAILED (errors=2)
TEST: test-clear-password.py
EE..
======================================================================
ERROR: testAsyncNotFound (__main__.TestRemove)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-clear-password.py", line 68, in testAsyncNotFound
    loop = GLib.MainLoop(None, False)
TypeError: __new__() takes at most 2 arguments (3 given)

======================================================================
ERROR: testAsynchronous (__main__.TestRemove)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-clear-password.py", line 55, in testAsynchronous
    loop = GLib.MainLoop(None, False)
TypeError: __new__() takes at most 2 arguments (3 given)

----------------------------------------------------------------------
Ran 4 tests in 0.321s

FAILED (errors=2)
TEST: test-store-password.py
E.
======================================================================
ERROR: testAsynchronous (__main__.TestStore)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-store-password.py", line 55, in testAsynchronous
    loop = GLib.MainLoop(None, False)
TypeError: __new__() takes at most 2 arguments (3 given)

----------------------------------------------------------------------
Ran 2 tests in 0.185s

FAILED (errors=1)


Surprisingly they don't cause the tests to exit unsuccessfully and, then, they can be easily ignored :S
Comment 6 Pacho Ramos gentoo-dev 2014-03-13 20:57:41 UTC
Looks like test suite has some problems, I have for now opened:
https://bugzilla.gnome.org/show_bug.cgi?id=726286

I have also commented there that tests are sometimes exiting without error code even failing
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-11-25 08:54:05 UTC
How is the situation with 0.18.* ? I see it was stabilized and I didn't have issues with testsuite myself.
Comment 8 Émeric Maschino 2015-11-29 11:21:04 UTC
(In reply to Gilles Dartiguelongue from comment #7)
> How is the situation with 0.18.* ? I see it was stabilized and I didn't have
> issues with testsuite myself.

Unfortunately, this won't be the first time that a package is marked stable whereas miserably failing to pass tests. In fact, I'm wondering if people do really enable tests when they declare a package stable. I don't know what Gentoo policy is on this, but IMHO, disabling tests from keywording is OK, but enabling them for stabilization should be mandatory, unless explicitely disabled for known reasons or declared broken by upstream.

Back to the subject. The situation is even worse with 0.18.* than 0.16.*: on 197 tests now, only 46 are passing successfully, 144 are failing and 7 are reporting errors. Causes range from the timeout error originally reported in this BR to assertion error in g-io-error-quark.

Please find the corresponding test-suite.log in attachment.

     Émeric
Comment 9 Émeric Maschino 2015-11-29 11:21:56 UTC
Created attachment 418142 [details]
test-suite.log for =app-crypt/libsecret-0.18.3
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-11-30 22:16:06 UTC
(In reply to Émeric Maschino from comment #8)
> (In reply to Gilles Dartiguelongue from comment #7)
> > How is the situation with 0.18.* ? I see it was stabilized and I didn't have
> > issues with testsuite myself.
> 
> Unfortunately, this won't be the first time that a package is marked stable
> whereas miserably failing to pass tests. In fact, I'm wondering if people do
> really enable tests when they declare a package stable. I don't know what
> Gentoo policy is on this, but IMHO, disabling tests from keywording is OK,
> but enabling them for stabilization should be mandatory, unless explicitely
> disabled for known reasons or declared broken by upstream.

FTR, I, just like any Gentoo dev is supposed to do, run unittests of all packages I bump, try to fix or workaround those broken and disable them in the case I have no other solution with upstream reports, etc.

I do believe that other Gnome team members do the same but we do not have access to all architectures in existence so we rely on other devs to do this part.
 
> Back to the subject. The situation is even worse with 0.18.* than 0.16.*: on
> 197 tests now, only 46 are passing successfully, 144 are failing and 7 are
> reporting errors. Causes range from the timeout error originally reported in
> this BR to assertion error in g-io-error-quark.
> 
> Please find the corresponding test-suite.log in attachment.

Looks like the most common problem in this log is that dbus does not respond. Is it installed ? Do you have DBUS_SESSION_BUS_ADDRESS set in the environment while building ?
Comment 11 Émeric Maschino 2015-12-22 16:50:52 UTC
(In reply to Gilles Dartiguelongue from comment #10)
>
> Looks like the most common problem in this log is that dbus does not
> respond. Is it installed ? Do you have DBUS_SESSION_BUS_ADDRESS set in the
> environment while building ?

Sorry, I missed this one :-(

So yes, =sys-apps/dbus-1.8.16 is installed and started:

emeric@longspeak ~ $ systemctl status -l dbus
● dbus.service - D-Bus System Message Bus
   Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: enabled)
   Active: active (running) since mar. 2015-12-22 16:14:31 CET; 1h 35min ago
     Docs: man:dbus-daemon(1)
 Main PID: 1463 (dbus-daemon)
   CGroup: /system.slice/dbus.service
           └─1463 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation

And DBUS_SESSION_BUS_ADDRESS is set while building, e.g.:

emeric@longspeak ~ $ env | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-NrNw5ifAhJ,guid=fccead977acb4c4bfb7f52c65679788b
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-12-23 22:34:32 UTC
Could you try unsetting it prior to running the build ?
If your tree has been updated in the last 20 days, it should have a gnome2.eclass that unsets it while building though so it should not be necessary.
Comment 13 Émeric Maschino 2016-10-04 08:41:18 UTC
(In reply to Gilles Dartiguelongue from comment #12)
> Could you try unsetting it prior to running the build ?
> If your tree has been updated in the last 20 days, it should have a
> gnome2.eclass that unsets it while building though so it should not be
> necessary.

Don't know what has changed recently, but =app-crypt/libsecret-0.18.3 is now emerging successfully with tests enabled, without requiring any tweak/quirk :-)

     Émeric