Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307725 - [FEATURES=test failure] dev-libs/libgdata-0.6.2 fails tests
Summary: [FEATURES=test failure] dev-libs/libgdata-0.6.2 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: gnome-tests
  Show dependency tree
 
Reported: 2010-03-04 07:19 UTC by Hans de Graaff
Modified: 2010-10-04 21:47 UTC (History)
1 user (show)

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


Attachments
Build log (libgdata-0.6.2:20100322-201128.log,41.96 KB, text/plain)
2010-03-22 21:20 UTC, Diego Elio Pettenò (RETIRED)
Details
emerge --info (emerge-info.txt,13.16 KB, text/plain)
2010-09-27 19:21 UTC, Hans de Graaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2010-03-04 07:19:26 UTC
PASS: general
TEST: youtube... (pid=27240)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.
)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.
)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.
)
  /youtube/authentication:                                             **
ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2)
FAIL
GTester: last random seed: R02Sb35df582a38c3c53a083e9247a16f48c
/bin/sh: line 1: 27224 Terminated              gtester --verbose general youtube calendar contacts picasaweb documents memory perf
make[2]: *** [test] Error 143
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests'
make[1]: *** [check-am] Error 2
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-03-04 22:36:43 UTC
what if you add:
src_test() {
    unset DBUS_SESSION_BUS_ADDRESS
    emake check || die
}

?
Comment 2 Hans de Graaff gentoo-dev Security 2010-03-14 11:57:55 UTC
(In reply to comment #1)
> what if you add:
> src_test() {
>     unset DBUS_SESSION_BUS_ADDRESS
>     emake check || die
> }

This is already in the ebuild, so it doesn't help me.

Comment 3 Pacho Ramos gentoo-dev 2010-03-14 13:14:34 UTC
On the other hand test passes for me with it (and FEATURES="userpriv" and, of course, without gconf running) :-/
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-03-22 13:05:22 UTC
maybe it somehow gets X access, could you try unsetting DISPLAY and XAUTHORITY ? Also please paste the output of emerge -pv dbus.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-22 21:20:15 UTC
Created attachment 224779 [details]
Build log

Different test failure here, but still a test failure.
Comment 6 Pacho Ramos gentoo-dev 2010-03-23 13:34:09 UTC
Extracting failure for reading easier ;-)
>>> Source compiled.
make -j14 check 
Making check in .
make[1]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2'
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2'
Making check in gdata/tests
make[1]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests'
make  check-local
make[2]: Entering directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests'
TEST: general... (pid=9818)
  /entry/get_xml:                                                      OK
  /entry/parse_xml:                                                    libgdata-Message: Unhandled XML in GDataEntry: <foobar>Test!</foobar>
libgdata-Message: Unhandled XML in GDataEntry: <barfoo shizzle="zing"/>
libgdata-Message: Unhandled XML in GDataEntry: <ns:barfoo shizzle="zing" fo="shizzle">How about some characters?</ns:barfoo>
OK
  /entry/error_handling:                                               OK
  /feed/parse_xml:                                                     libgdata-Message: Unhandled XML in GDataFeed: <foobar>Test unhandled elements!</foobar>
OK
  /feed/error_handling:                                                OK
  /query/categories:                                                   OK
  /query/unicode:                                                      OK
  /access-rule/get_xml:                                                OK
  /access-rule/error_handling:                                         OK
  /color/parsing:                                                      OK
  /color/output:                                                       OK
  /atom/author:                                                        OK
  /atom/author/error_handling:                                         OK
  /atom/category:                                                      libgdata-Message: Unhandled XML in GDataCategory: <foobar/>
libgdata-Message: Unhandled XML in GDataCategory: <shizzle/>
OK
  /atom/category/error_handling:                                       OK
  /atom/generator:                                                     OK
  /atom/generator/error_handling:                                      OK
  /atom/link:                                                          libgdata-Message: Unhandled XML in GDataLink: Test Content
libgdata-Message: Unhandled XML in GDataLink: <foobar/>
OK
  /atom/link/error_handling:                                           OK
  /gd/email_address:                                                   OK
  /gd/im_address:                                                      OK
  /gd/name:                                                            OK
  /gd/organization:                                                    OK
  /gd/phone_number:                                                    OK
  /gd/postal_address:                                                  OK
  /gd/reminder:                                                        OK
  /gd/when:                                                            libgdata-Message: Unhandled XML in GDataGDWhen: <foobar/>
OK
  /gd/where:                                                           OK
  /gd/who:                                                             OK
  /media/category:                                                     OK
  /media/content:                                                      OK
  /media/credit:                                                       OK
PASS: general
TEST: youtube... (pid=9833)
  /youtube/authentication:                                             **
ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2)
FAIL
GTester: last random seed: R02S02076ed9d7ca23b0dbc029a65dc9321c
/bin/sh: line 1:  9817 Terminated              gtester --verbose general youtube calendar contacts picasaweb documents memory perf
make[2]: *** [test] Error 143
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgdata-0.6.2/work/libgdata-0.6.2/gdata/tests'
make: *** [check-recursive] Error 1
Comment 7 Hans de Graaff gentoo-dev Security 2010-03-27 07:33:41 UTC
(In reply to comment #4)
> maybe it somehow gets X access, could you try unsetting DISPLAY and XAUTHORITY
> ? Also please paste the output of emerge -pv dbus.

unsetting DISPLAY changes the output:


PASS: general
TEST: youtube... (pid=13672)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Not running within active session)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Not running within active session)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Not running within active session)
  /youtube/authentication:                                             **
ERROR:youtube.c:47:test_authentication: assertion failed (error == NULL): The server returned a malformed response. (gdata-service-error-quark, 2)
FAIL
GTester: last random seed: R02See3fe515eaf58cfb9a904fc427ddf244


unsetting XAUTHORITY doesn't make a difference.

[ebuild   R   ] sys-apps/dbus-1.2.3-r1  USE="X doc* -debug (-selinux)" 1,528 kB
Comment 8 Pacho Ramos gentoo-dev 2010-03-27 09:20:07 UTC
Maybe you could add something line "set > set.out" under src_test phase and, then, when tests fail, look at set.out file to check what variables look "strange" (as they will be a lot, you can attach the file here for letting us to check it)

Good luck!
Comment 9 Hans de Graaff gentoo-dev Security 2010-03-27 10:12:43 UTC
I think this might be related: http://stackoverflow.com/questions/257658/how-can-i-make-a-fake-active-session-for-gconf

With this:

src_test() {
	unset DBUS_SESSION_BUS_ADDRESS
	unset DISPLAY
	eval $(dbus-launch --sh-syntax)
	export DBUS_SESSION_BUS_ADDRESS
	gconftool-2 --spawn
	set > /tmp/set.out
	emake check || die "emake check failed"
}

I seem to get closer, but I'm running into:

TEST: youtube... (pid=9952)

** WARNING **: Owner of /tmp/orbit-graaff is not the current user

aborting...
FAIL: youtube
Comment 10 Pacho Ramos gentoo-dev 2010-09-03 18:26:46 UTC
Could you try adding:
export XDG_CONFIG_HOME="${T}"

to the top of src_test?
Comment 11 Hans de Graaff gentoo-dev Security 2010-09-06 19:09:04 UTC
(In reply to comment #10)
> Could you try adding:
> export XDG_CONFIG_HOME="${T}"
> 
> to the top of src_test?

It doesn't seem to make a difference. I tried with libgdata 0.6.4 and I'm also seeing a lot of parsing errors.
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-27 19:13:30 UTC
I haven't seen an emerge --info yet in this bug. Could you guys provide it so we can compare ?
Comment 13 Hans de Graaff gentoo-dev Security 2010-09-27 19:21:34 UTC
Created attachment 248814 [details]
emerge --info
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-29 14:12:04 UTC
ok I get the same error with FEATURES="userpriv"
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-29 14:38:21 UTC
Ok, I got totally confused, I thought the test suite spawned a fake server, but it uses the real google service. Since we can't rely on network connectivity in the test suite, I'll just disable the tests causing problems. For now, that leaves the general and perf category.

Anyway, for those networked tests, it seems the service changed which means it should be brought to the attention of upstream.
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-10-04 21:47:21 UTC
+*libgdata-0.6.5 (04 Oct 2010)
+
+  04 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org>
+  -libgdata-0.6.2.ebuild, +libgdata-0.6.5.ebuild, metadata.xml:
+  Version bump. Disable tests requiring network access, bug #307725. Enable
+  introspection bits. Fix some leaks.

This is not ideal since we will not catch regular test suite failures for the
disabled tests, but at least it makes it work for us.