Merge lp:~michihenning/thumbnailer/disable-tests into lp:thumbnailer

Proposed by Michi Henning
Status: Merged
Approved by: Michi Henning
Approved revision: 155
Merged at revision: 150
Proposed branch: lp:~michihenning/thumbnailer/disable-tests
Merge into: lp:thumbnailer
Prerequisite: lp:~michihenning/thumbnailer/merge-crossbuild
Diff against target: 218 lines (+87/-36)
9 files modified
CMakeLists.txt (+22/-0)
debian/changelog (+22/-35)
doc/libthumbnailer-qt/examples/qt_example_test.cpp (+7/-0)
tests/dbus/dbus_test.cpp (+7/-0)
tests/image-provider/image-provider_test.cpp (+7/-0)
tests/libthumbnailer-qt/libthumbnailer-qt_test.cpp (+7/-0)
tests/qml/qml_test.cpp (+7/-0)
tests/slow-vs-thumb/slow-vs-thumb_test.cpp (+1/-1)
tests/stress/stress_test.cpp (+7/-0)
To merge this branch: bzr merge lp:~michihenning/thumbnailer/disable-tests
Reviewer Review Type Date Requested Status
Michi Henning (community) Approve
James Henstridge Approve
Timo Jyrinki Needs Information
Review via email: mp+306566@code.launchpad.net

Commit message

Disabled QDBus-related tests on xenial and yakkety for the time being due to problems with Qt 5.6. See
    https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561
    https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930

Description of the change

Disabled QDBus-related tests on xenial and yakkety for the time being due to problems with Qt 5.6. See
    https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561
    https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Looks good otherwise, but why on xenial, as they pass there?

review: Needs Information
Revision history for this message
Michi Henning (michihenning) wrote :

Timo: They don't pass on xenial. Had a failure yesterday on xenial too.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Ok, but just flakiness? Trainguards and core-devs can retry them easily. I mean, they are possible to get to pass on xenial+overlay like https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/1969/+packages (succeeded on first try) but always failing on yakkety so there's a difference.

But as you wish, just commented when noticed.

Revision history for this message
Michi Henning (michihenning) wrote :

This bug has "race condition" written all over it. We've seen this fail on yakkity, and once on xenial on powerpc (where it has never failed in yakkity so far).

I'm not really interested in trying to keep these tests running just in case that they make it through by accident, only to fail again at some other inconvenient point in time.

We'll make it a priority to try and re-enable the tests ASAP. But, for now, and to unblock unity8, I want to be sure that there are no more glitches or surprises.

Revision history for this message
James Henstridge (jamesh) wrote :

Yep. The common factor is Qt 5.6, which is shared by xenial+overlay and yakkety.

review: Approve
Revision history for this message
Michi Henning (michihenning) wrote :

Re-approving because James is on leave.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-07-18 14:55:34 +0000
+++ CMakeLists.txt 2016-09-26 02:39:33 +0000
@@ -82,6 +82,28 @@
82 add_definitions(-DSLOW_TESTS=0)82 add_definitions(-DSLOW_TESTS=0)
83endif()83endif()
8484
85# TODO: Hack to allow disabling tests that need QDBus on xenial and yakkety,
86# due to broken Qt 5.6. Re-enable tests ASAP!
87option(skip-dbus-tests "Skip DBus tests" ON)
88if (${skip-dbus-tests})
89 execute_process(COMMAND lsb_release -s -c OUTPUT_VARIABLE distro OUTPUT_STRIP_TRAILING_WHITESPACE)
90 execute_process(COMMAND uname -m OUTPUT_VARIABLE arch OUTPUT_STRIP_TRAILING_WHITESPACE)
91 message("DISTRO: ${distro}")
92 message("ARCH: ${arch}")
93 if (
94 (${distro} STREQUAL "xenial" OR ${distro} STREQUAL "yakkety")
95 AND
96 (${arch} STREQUAL "aarch64" OR ${arch} STREQUAL "ppc" OR ${arch} STREQUAL "ppc64le")
97 )
98 message(WARNING "WARNING: Disabling DBus-related tests for ${distro}
99 See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561
100 https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930")
101 add_definitions(-DSKIP_DBUS_TESTS=1)
102 add_definitions(-DDISTRO=\"${distro}\")
103 add_definitions(-DARCH=\"${arch}\")
104 endif()
105endif()
106
85# Definitions for testing with valgrind.107# Definitions for testing with valgrind.
86108
87configure_file(CTestCustom.cmake.in CTestCustom.cmake) # Tests in CTestCustom.cmake are skipped for valgrind109configure_file(CTestCustom.cmake.in CTestCustom.cmake) # Tests in CTestCustom.cmake are skipped for valgrind
88110
=== modified file 'debian/changelog'
--- debian/changelog 2016-09-26 02:39:33 +0000
+++ debian/changelog 2016-09-26 02:39:33 +0000
@@ -1,38 +1,25 @@
1<<<<<<< TREE1thumbnailer (2.4+16.10.20160825-0ubuntu2) UNRELEASED; urgency=medium
2thumbnailer (2.4+16.10.20160825-0ubuntu1) yakkety; urgency=medium2
33 * Disabled QDBus-related tests on xenial and yakkety for the time being due
4 * Changed python-tornado dependency to python-tornado <!nocheck> for cross-builds.4 to problems with Qt 5.6. See
5 * Relaxed copyright for trace.cpp and trace.h to LGPL.5 https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561
66 https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930
7 -- Michi Henning <michi@triodia.com> Thu, 25 Aug 2016 06:59:02 +00007
88 -- Michi Henning <michi.henning@canonical.com> Fri, 23 Sep 2016 14:08:49 +1000
9thumbnailer (2.4+16.10.20160719-0ubuntu2) yakkety; urgency=medium9
1010thumbnailer (2.4+16.10.20160825-0ubuntu1) yakkety; urgency=medium
11 * No-change rebuild for boost soname change.11
1212 * Changed python-tornado dependency to python-tornado <!nocheck> for cross-builds.
13 -- Matthias Klose <doko@ubuntu.com> Thu, 04 Aug 2016 08:32:55 +000013 * Relaxed copyright for trace.cpp and trace.h to LGPL.
1414
15=======15 -- Michi Henning <michi@triodia.com> Thu, 25 Aug 2016 06:59:02 +0000
16thumbnailer (2.4+16.10.20160825-0ubuntu1) yakkety; urgency=medium16
1717thumbnailer (2.4+16.10.20160719-0ubuntu2) yakkety; urgency=medium
18 * Changed python-tornado dependency to python-tornado <!nocheck> for cross-builds.18
19 * Relaxed copyright for trace.cpp and trace.h to LGPL.19 * No-change rebuild for boost soname change.
2020
21 -- Michi Henning <michi@triodia.com> Thu, 25 Aug 2016 06:59:02 +000021 -- Matthias Klose <doko@ubuntu.com> Thu, 04 Aug 2016 08:32:55 +0000
2222
23thumbnailer (2.4+16.10.20160719-0ubuntu2) yakkety; urgency=medium
24
25 * No-change rebuild for boost soname change.
26
27 -- Matthias Klose <doko@ubuntu.com> Thu, 04 Aug 2016 08:32:55 +0000
28
29thumbnailer (2.4) UNRELEASED; urgency=medium
30
31 * Changed python-tornado dependency to python-tornado <!nocheck> for cross-builds.
32
33 -- Michi Henning <michi.henning@canonical.com> Mon, 25 Jul 2016 10:56:23 +1000
34
35>>>>>>> MERGE-SOURCE
36thumbnailer (2.4+16.10.20160719-0ubuntu1) yakkety; urgency=medium23thumbnailer (2.4+16.10.20160719-0ubuntu1) yakkety; urgency=medium
3724
38 [ Michi Henning ]25 [ Michi Henning ]
3926
=== modified file 'doc/libthumbnailer-qt/examples/qt_example_test.cpp'
--- doc/libthumbnailer-qt/examples/qt_example_test.cpp 2015-12-12 02:06:41 +0000
+++ doc/libthumbnailer-qt/examples/qt_example_test.cpp 2016-09-26 02:39:33 +0000
@@ -178,6 +178,13 @@
178178
179int main(int argc, char** argv)179int main(int argc, char** argv)
180{180{
181#if defined(SKIP_DBUS_TESTS)
182 // TODO: Re-enable this ASAP!
183 cerr << "WARNING: Skipping tests on " << DISTRO << endl;
184 cerr << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561" << endl;
185 cerr << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930" << endl;
186 return 0;
187#endif
181 QCoreApplication app(argc, argv);188 QCoreApplication app(argc, argv);
182 setenv("GSETTINGS_BACKEND", "memory", true);189 setenv("GSETTINGS_BACKEND", "memory", true);
183 setenv("GSETTINGS_SCHEMA_DIR", GSETTINGS_SCHEMA_DIR, true);190 setenv("GSETTINGS_SCHEMA_DIR", GSETTINGS_SCHEMA_DIR, true);
184191
=== modified file 'tests/dbus/dbus_test.cpp'
--- tests/dbus/dbus_test.cpp 2016-01-04 06:09:41 +0000
+++ tests/dbus/dbus_test.cpp 2016-09-26 02:39:33 +0000
@@ -610,6 +610,13 @@
610610
611int main(int argc, char** argv)611int main(int argc, char** argv)
612{612{
613#if defined(SKIP_DBUS_TESTS)
614 // TODO: Re-enable this ASAP!
615 cerr << "WARNING: Skipping tests on " << DISTRO << " " << ARCH << endl;
616 cerr << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561" << endl;
617 cerr << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930" << endl;
618 return 0;
619#endif
613 QCoreApplication app(argc, argv);620 QCoreApplication app(argc, argv);
614 qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus"); // Avoid noise from signal spy.621 qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus"); // Avoid noise from signal spy.
615 qDBusRegisterMetaType<unity::thumbnailer::service::AllStats>();622 qDBusRegisterMetaType<unity::thumbnailer::service::AllStats>();
616623
=== modified file 'tests/image-provider/image-provider_test.cpp'
--- tests/image-provider/image-provider_test.cpp 2016-01-12 07:21:18 +0000
+++ tests/image-provider/image-provider_test.cpp 2016-09-26 02:39:33 +0000
@@ -204,6 +204,13 @@
204204
205int main(int argc, char **argv)205int main(int argc, char **argv)
206{206{
207#if defined(SKIP_DBUS_TESTS)
208 // TODO: Re-enable this ASAP!
209 cerr << "WARNING: Skipping tests on " << DISTRO << " " << ARCH << endl;
210 cerr << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561" << endl;
211 cerr << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930" << endl;
212 return 0;
213#endif
207 QGuiApplication app(argc, argv);214 QGuiApplication app(argc, argv);
208 setenv("GSETTINGS_BACKEND", "memory", true);215 setenv("GSETTINGS_BACKEND", "memory", true);
209 setenv("GSETTINGS_SCHEMA_DIR", GSETTINGS_SCHEMA_DIR, true);216 setenv("GSETTINGS_SCHEMA_DIR", GSETTINGS_SCHEMA_DIR, true);
210217
=== modified file 'tests/libthumbnailer-qt/libthumbnailer-qt_test.cpp'
--- tests/libthumbnailer-qt/libthumbnailer-qt_test.cpp 2016-02-26 23:13:38 +0000
+++ tests/libthumbnailer-qt/libthumbnailer-qt_test.cpp 2016-09-26 02:39:33 +0000
@@ -779,6 +779,13 @@
779779
780int main(int argc, char** argv)780int main(int argc, char** argv)
781{781{
782#if defined(SKIP_DBUS_TESTS)
783 // TODO: Re-enable this ASAP!
784 cerr << "WARNING: Skipping tests on " << DISTRO << " " << ARCH << endl;
785 cerr << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561" << endl;
786 cerr << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930" << endl;
787 return 0;
788#endif
782 gst_init(&argc, &argv);789 gst_init(&argc, &argv);
783790
784 QCoreApplication app(argc, argv);791 QCoreApplication app(argc, argv);
785792
=== modified file 'tests/qml/qml_test.cpp'
--- tests/qml/qml_test.cpp 2015-12-12 02:06:41 +0000
+++ tests/qml/qml_test.cpp 2016-09-26 02:39:33 +0000
@@ -67,6 +67,13 @@
6767
68int main(int argc, char** argv)68int main(int argc, char** argv)
69{69{
70#if defined(SKIP_DBUS_TESTS)
71 // TODO: Re-enable this ASAP!
72 qDebug() << "WARNING: Skipping tests on" << DISTRO << " " << ARCH << endl;
73 qDebug() << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561";
74 qDebug() << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930";
75 return 0;
76#endif
70 QGuiApplication app(argc, argv);77 QGuiApplication app(argc, argv);
7178
72 setenv("GSETTINGS_BACKEND", "memory", true);79 setenv("GSETTINGS_BACKEND", "memory", true);
7380
=== modified file 'tests/slow-vs-thumb/slow-vs-thumb_test.cpp'
--- tests/slow-vs-thumb/slow-vs-thumb_test.cpp 2016-02-02 06:29:01 +0000
+++ tests/slow-vs-thumb/slow-vs-thumb_test.cpp 2016-09-26 02:39:33 +0000
@@ -72,7 +72,7 @@
7272
73 QSignalSpy spy(request.get(), &ThumbnailRequest::downloadFinished);73 QSignalSpy spy(request.get(), &ThumbnailRequest::downloadFinished);
74 request->download();74 request->download();
75 ASSERT_TRUE(spy.wait(15000)); // Slow vs-thumb will get killed after 10 seconds.75 ASSERT_TRUE(spy.wait(30000)); // Slow vs-thumb will get killed after 10 seconds.
7676
77 EXPECT_EQ("", request->thumbnail());77 EXPECT_EQ("", request->thumbnail());
78}78}
7979
=== modified file 'tests/stress/stress_test.cpp'
--- tests/stress/stress_test.cpp 2016-02-02 03:56:15 +0000
+++ tests/stress/stress_test.cpp 2016-09-26 02:39:33 +0000
@@ -596,6 +596,13 @@
596596
597int main(int argc, char** argv)597int main(int argc, char** argv)
598{598{
599#if defined(SKIP_DBUS_TESTS)
600 // TODO: Re-enable this ASAP!
601 cerr << "WARNING: Skipping tests on " << DISTRO << " " << ARCH << endl;
602 cerr << " See https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1613561" << endl;
603 cerr << " https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1625930" << endl;
604 return 0;
605#endif
599 gst_init(&argc, &argv);606 gst_init(&argc, &argv);
600607
601 QCoreApplication app(argc, argv);608 QCoreApplication app(argc, argv);

Subscribers

People subscribed via source and target branches

to all changes: