Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555494 - dev-libs/libgdata tests fail on Alpha
Summary: dev-libs/libgdata tests fail on Alpha
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2015-07-20 16:38 UTC by Tobias Klausmann (RETIRED)
Modified: 2019-10-17 02:14 UTC (History)
1 user (show)

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


Attachments
build log (dev-libs:libgdata-0.16.1:20150720-161129.log,327.93 KB, text/plain)
2015-07-20 16:38 UTC, Tobias Klausmann (RETIRED)
Details
libgdata test suite log. (gdata-test-suite.log,602.63 KB, text/plain)
2016-07-04 09:25 UTC, Tobias Klausmann (RETIRED)
Details
build/test log, v0.17.7 (dev-libs:libgdata-0.17.7:20170315-084454.log,574.82 KB, text/plain)
2017-03-15 11:31 UTC, Tobias Klausmann (RETIRED)
Details
build/test log, v0.17.7, with =net-libs/libsoup-2.56.0 (dev-libs:libgdata-0.17.7:20170315-124131.log,578.13 KB, text/x-log)
2017-03-15 12:56 UTC, Tobias Klausmann (RETIRED)
Details
test-suite.log, v0.17.7, with =net-libs/libsoup-2.56.0 (test-suite.log,590.33 KB, text/x-log)
2017-03-15 12:59 UTC, Tobias Klausmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2015-07-20 16:38:19 UTC
Created attachment 407274 [details]
build log

make[3]: Entering directory '/var/tmp/portage/dev-libs/libgdata-0.16.1/work/libgdata-0.16.1/gdata/tests'
  /comparable:                                                         OK
  /tests/xml_comparison:                                               OK
  /service/network_error:                                              < HTTP/1.1 2 Error resolving 'thisshouldnotexist.localhost': Name or service not known
< Soup-Debug-Timestamp: 1437408938
< Soup-Debug: SoupMessage 0 (0x1200a91a0)
  
OK
  /service/locale:                                                     OK
  /entry/get_xml:                                                      OK
  /entry/get_json:                                                     OK
  /entry/parse_xml:                                                    Unhandled XML in GDataEntry: <foobar>Test!</foobar>
Unhandled XML in GDataEntry: <barfoo shizzle="zing"/>
Unhandled XML in GDataEntry: <ns:barfoo shizzle="zing" fo="shizzle">How about some characters‽</ns:barfoo>
libgdata-Message: 

Parsable: <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' xmlns:ns='http://example.com/'><title type='text'>Testing unhandled XML</title><updated>2009-01-25T14:07:37Z</updated><published>2009-01-23T14:06:37Z</published><content type='text'>Here we test unhandled XML elements.</content><foobar>Test!</foobar><barfoo shizzle="zing"/><ns:barfoo shizzle="zing" fo="shizzle">How about some characters?</ns:barfoo></entry>

Expected: <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' xmlns:ns='http://example.com/'><title type='text'>Testing unhandled XML</title><updated>2009-01-25T14:07:37.000001+00:00</updated><published>2009-01-23T14:06:37.000001+00:00</published><content type='text'>Here we test unhandled XML elements.</content><foobar>Test!</foobar><barfoo shizzle="zing"/><ns:barfoo shizzle="zing" fo="shizzle">How about some characters?</ns:barfoo></entry>


**
libgdata:ERROR:general.c:537:test_entry_parse_xml: assertion failed: (_test_success == TRUE)
FAIL
GTester: last random seed: R02Sc454a005cb356e88b01d2e0dc8969ec4
/bin/sh: line 1: 23486 Terminated              gtester --verbose general perf calendar client-login-authorizer contacts documents oauth1-authorizer picasaweb youtube
Makefile:1620: recipe for target 'test' failed
make[2]: *** [test] Error 143
make[2]: *** Waiting for unfinished jobs....
../../build-aux/test-driver: line 95: 23570 Aborted                 "$@" > $log_file 2>&1
FAIL: general
../../build-aux/test-driver: line 95: 23569 Aborted                 "$@" > $log_file 2>&1
FAIL: calendar
../../build-aux/test-driver: line 95: 24188 Aborted                 "$@" > $log_file 2>&1
FAIL: tasks
PASS: contacts
../../build-aux/test-driver: line 95: 23568 Aborted                 "$@" > $log_file 2>&1
FAIL: youtube
PASS: authorization
PASS: picasaweb
PASS: documents
PASS: perf
PASS: oauth1-authorizer
PASS: client-login-authorizer
PASS: streams
make[4]: Entering directory '/var/tmp/portage/dev-libs/libgdata-0.16.1/work/libgdata-0.16.1/gdata/tests'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/var/tmp/portage/dev-libs/libgdata-0.16.1/work/libgdata-0.16.1/gdata/tests'
============================================================================
Testsuite summary for libgdata 0.16.1
============================================================================
# TOTAL: 12
# PASS:  8
# SKIP:  0
# XFAIL: 0
# FAIL:  4
# XPASS: 0
# ERROR: 0
============================================================================
See gdata/tests/test-suite.log
Please report to https://bugzilla.gnome.org/enter_bug.cgi?product=libgdata
============================================================================
Makefile:1234: recipe for target 'test-suite.log' failed





ERROR: youtube - missing test plan
ERROR: youtube - exited with status 134 (terminated by signal 6?)
PASS: streams 14 /upload-stream/resumable/content-only/subsequent-error/1048576
PASS: streams 15 /upload-stream/resumable/content-only/subsequent-error/1049600
ERROR: perf - missing test plan
ERROR: perf - exited with status 134 (terminated by signal 6?)

How do youw ant to proceed
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-07-22 20:28:25 UTC
Reading the XML output, it looks like there is a problem the date serialization. The actual output does not have fractions of milliseconds.

I don't know whether this is the responsability of libgdata to serialize this or if the problem comes from elsewhere. Could you also check libgdata-0.17.1 ?
Comment 2 Tobias Klausmann (RETIRED) gentoo-dev 2015-07-30 15:43:52 UTC
0.17.1 fails, too:

make  check-TESTS check-local
make[2]: Entering directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
make[3]: Entering directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
PASS: general
../../build-aux/test-driver: line 107: 25659 Trace/breakpoint trap   "$@" > $log_file 2>&1
FAIL: calendar
PASS: authorization
../../build-aux/test-driver: line 107: 25653 Trace/breakpoint trap   "$@" > $log_file 2>&1
FAIL: contacts
../../build-aux/test-driver: line 107: 25654 Trace/breakpoint trap   "$@" > $log_file 2>&1
FAIL: picasaweb
PASS: tasks
../../build-aux/test-driver: line 107: 25862 Trace/breakpoint trap   "$@" > $log_file 2>&1
FAIL: oauth1-authorizer
PASS: oauth2-authorizer
../../build-aux/test-driver: line 107: 25843 Trace/breakpoint trap   "$@" > $log_file 2>&1
FAIL: client-login-authorizer
PASS: perf
make[4]: Entering directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
============================================================================
Testsuite summary for libgdata 0.17.1
============================================================================
# TOTAL: 10
# PASS:  5
# SKIP:  0
# XFAIL: 0
# FAIL:  5
# XPASS: 0
# ERROR: 0
============================================================================
See gdata/tests/test-suite.log
Please report to https://bugzilla.gnome.org/enter_bug.cgi?product=libgdata
============================================================================
Makefile:1286: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
Makefile:1392: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
Makefile:1528: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libgdata-0.17.1/work/libgdata-0.17.1/gdata/tests'
Makefile:3225: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1


The logfiles didn't look useful to me. Still, I tarred up the workdir and put it here:

http://skade.schwarzvogel.de/~klausman/libgdata-workdir.tar.bz2
Comment 3 Pacho Ramos gentoo-dev 2016-07-02 10:22:12 UTC
If still valid with 0.17.5 it would be interesting to report it to upstream, otherwise I wonder if it will be fixed ever :/ -> bugzilla.gnome.org
Comment 4 Tobias Klausmann (RETIRED) gentoo-dev 2016-07-04 09:24:26 UTC
Preliminary note, from profiles/arch/alpha/package.use.mask:

# Pacho Ramos <pacho@gentoo.org> (11 Nov 2014)
# Missing keywords, bug #523686
>=dev-libs/libgdata-0.16.1 test

So we wouldn't even run the tests now, but for the wrong reasons (the deps are all there).

So I removed that USE-mask locally and ran the tests again.

[...]
ERROR: youtube - too few tests run (expected 49, got 38)
ERROR: youtube - exited with status 134 (terminated by signal 6?)
ERROR: perf - too few tests run (expected 1, got 0)
ERROR: perf - exited with status 134 (terminated by signal 6?)
[...]

# TOTAL: 386
# PASS:  382
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 4

Attached is work/libgdata-0.17.5/gdata/tests/test-suite.log.
Comment 5 Tobias Klausmann (RETIRED) gentoo-dev 2016-07-04 09:25:17 UTC
Created attachment 439664 [details]
libgdata test suite log.
Comment 6 Tobias Klausmann (RETIRED) gentoo-dev 2016-07-04 09:27:52 UTC
Filed upstream bug at $URL.
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-03 09:30:57 UTC
I re-ran the tests today (for 0.17.6) and it looks like the whole test suite is just flaky, though sandboxing seems to make failures slightly more likely.

Our best bet is probably to just keep FEATURES=test masked on alpha an move on. Feel free to reopen if you'd like to dig deeper.
Comment 8 Mart Raudsepp gentoo-dev 2017-03-14 21:59:22 UTC
Can you retest with 0.17.7? Albeit pretty sure they now fail on amd64 too that I need to investigate, but maybe the tests that failed before now pass? (streams now fails for me with 0.17.7 and tests passed with 0.17.6, but same day, maybe hit some API key limit inbetween)
Comment 9 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-15 08:50:07 UTC
(In reply to Mart Raudsepp from comment #8)
> Can you retest with 0.17.7? Albeit pretty sure they now fail on amd64 too
> that I need to investigate, but maybe the tests that failed before now pass?
> (streams now fails for me with 0.17.7 and tests passed with 0.17.6, but same
> day, maybe hit some API key limit inbetween)

Still fails the same way ("Too few tests were run...") with 0.17.7 on alpha.
Comment 10 Mart Raudsepp gentoo-dev 2017-03-15 09:07:04 UTC
For youtube, perf and streams, or just streams?
Comment 11 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-15 11:31:00 UTC
Created attachment 467120 [details]
build/test log, v0.17.7

(In reply to Mart Raudsepp from comment #10)
> For youtube, perf and streams, or just streams?

Just streams:

PASS: calendar 10 /calendar/query/own_calendars/async
PASS: contacts 18 /contacts/photo/has_photo
PASS: contacts 19 /contacts/photo/add
PASS: calendar 11 /calendar/query/own_calendars/async/progress_closure
ERROR: streams - too few tests run (expected 46, got 0)
ERROR: streams - exited with status 133 (terminated by signal 5?)
PASS: contacts 20 /contacts/photo/get
PASS: calendar 12 /calendar/query/own_calendars/async/cancellation
PASS: contacts 21 /contacts/photo/delete
Comment 12 Mart Raudsepp gentoo-dev 2017-03-15 12:14:05 UTC
streams test should work if libsoup is upgraded to 2.56.0; upstream will make it skip the TLS part if it's older
Comment 13 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-15 12:54:10 UTC
(In reply to Mart Raudsepp from comment #12)
> streams test should work if libsoup is upgraded to 2.56.0; upstream will
> make it skip the TLS part if it's older

Fails exactly the same way with =net-libs/libsoup-2.56.0
Comment 14 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-15 12:56:48 UTC
Created attachment 467126 [details]
build/test log, v0.17.7, with =net-libs/libsoup-2.56.0
Comment 15 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-15 12:59:24 UTC
Created attachment 467128 [details]
test-suite.log, v0.17.7, with =net-libs/libsoup-2.56.0
Comment 16 Matt Turner gentoo-dev 2019-10-17 02:14:14 UTC
Tests pass now except for 'perf'

> ERROR: perf - Bail out! libgdata:ERROR:perf.c:107:test_perf_parsing: assertion failed (per_iteration_time < 2000): (2477 < 2000)