Bug 387029 - Test failure in master
Summary: Test failure in master
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 12:52 UTC by Christophe Marin
Modified: 2018-08-24 19:38 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.47
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Marin 2017-11-17 12:52:38 UTC
Tested with master & Qt 5.10 beta 4 :

12/54 Testing: kiocore-kprotocolinfotest

QDEBUG : KProtocolInfoTest::testCapabilities() 13:27:15 - kprotocolinfotest(31544) - kf5.kio.core: KProtocolInfoFactory::findProtocol: Refilling KProtocolInfoFactory cache in the hope to find "imap"
QDEBUG : KProtocolInfoTest::testCapabilities() 13:27:15 - kprotocolinfotest(31544) -  KProtocolInfoTest::testCapabilities: kio_imap capabilities:  ()
PASS   : KProtocolInfoTest::testCapabilities()
FAIL!  : KProtocolInfoTest::testProtocolForArchiveMimetype() Compared values are not the same
   Actual   (zip)                  : "krarc"
   Expected (QStringLiteral("zip")): "zip"
   Loc: [/kde/src/5/frameworks/kio/autotests/kprotocolinfotest.cpp(142)]


---
29/54 Testing: kiowidgets-kdirlistertest
QDEBUG : KDirListerTest::testRenameItem() 13:27:39 - kdirlistertest(31917) - kf5.kio.core.dirlister: KCoreDirListerCache::slotFileRenamed: QUrl("file:///tmp/kdirlistertest-yyrrYi/toplevelfile_2") -> QUrl("file:///tmp/kdirlistertest-yyrrYi/toplevelfile_2.renamed.html")
QDEBUG : KDirListerTest::testRenameItem() 13:27:39 - kdirlistertest(31917) - kf5.kio.core.dirlister: KCoreDirListerCache::emitRefreshItem: old: "toplevelfile_2" QUrl("file:///tmp/kdirlistertest-yyrrYi/toplevelfile_2") new: "toplevelfile_2.renamed.html" QUrl("file:///tmp/kdirlistertest-yyrrYi/toplevelfile_2.renamed.html")
FAIL!  : KDirListerTest::testRenameItem() Compared values are not the same
   Actual   (entry.second.mimetype()): "application/x-extension-html"
   Expected (QString("text/html"))   : "text/html"
   Loc: [/kde/src/5/frameworks/kio/autotests/kdirlistertest.cpp(507)]
Comment 1 null 2018-05-11 20:47:13 UTC
Thanks for reporting, Elvis fixed the first problem in https://phabricator.kde.org/R241:50b944cd93fe954ba5584e56a07cbbd27edcae1f.

Not sure about the second failure, the corresponding test passes fine for me with KIO master.
Comment 2 Christophe Marin 2018-05-11 21:07:05 UTC
Just tested, I now have 4 failures (kiocore-kprotocolinfotest is fixed)

The following tests FAILED:
         31 - kiowidgets-kdirlistertest (Failed)
         46 - kiofilewidgets-kfilewidgettest (Failed)
         50 - kiofilewidgets-kfileplacesmodeltest (Failed)
         51 - kiofilewidgets-kfileplacesviewtest (Failed)
Comment 3 null 2018-05-11 21:12:11 UTC
Yeah, but those are not really related to your original report, aren't they?

If you want to keep open an umbrella bug for arbitrary test failures in KIO, we'll never have a chance to close the bug, as there will always be some breakage. In general we have https://build.kde.org to track test failures.
Comment 4 Christophe Marin 2018-05-11 21:19:37 UTC
With Qt 5.11:
- kiowidgets-kdirlistertest:
PASS   : KDirListerTest::testDeleteItem()
QDEBUG : KDirListerTest::testRenameItem() 23:05:13 - kdirlistertest(22885) - kf5.kio.core.dirlister: KCoreDirListerCache::slotFileRenamed: QUrl("file:///tmp/kdirlistertest-DxgXon/toplevelfile_2") -> QUrl("file:///tmp/kdirlistertest-DxgXon/toplevelfile_2.renamed.html")
QDEBUG : KDirListerTest::testRenameItem() 23:05:13 - kdirlistertest(22885) - kf5.kio.core.dirlister: KCoreDirListerCache::emitRefreshItem: old: "toplevelfile_2" QUrl("file:///tmp/kdirlistertest-DxgXon/toplevelfile_2") new: "toplevelfile_2.renamed.html" QUrl("file:///tmp/kdirlistertest-DxgXon/toplevelfile_2.renamed.html")
FAIL!  : KDirListerTest::testRenameItem() Compared values are not the same
   Actual   (entry.second.mimetype()): "application/x-extension-html"
   Expected (QString("text/html"))   : "text/html"
   Loc: [/data/kde/src/kio/autotests/kdirlistertest.cpp(507)]

- kiofilewidgets-kfilewidgettest
FAIL!  : KFileWidgetTest::testFocusOnLocationEditChangeDir() 'QTest::qWaitForWindowActive(&fw)' returned FALSE. ()
   Loc: [/data/kde/src/kio/autotests/kfilewidgettest.cpp(79)]

QDEBUG : KFileWidgetTest::testSetSelection(filename) 23:05:51 - kfilewidgettest(23088) - kf5.kio.core.dirlister: KCoreDirLister::Private::addNewItem: in QUrl("file:///home/krop") item: QUrl("file:///home/krop/Pictures")
QDEBUG : KFileWidgetTest::testSetSelection(filename) 23:05:51 - kfilewidgettest(23088) - kf5.kio.core.dirlister: KCoreDirListerCache::forgetCachedItemsJob: Moving from listing to holding, because no more job KDirLister(0xcb4050) "file:///home/krop"
QDEBUG : KFileWidgetTest::testSetSelection(filename) 23:05:51 - kfilewidgettest(23088) - kf5.kio.core: KProtocolInfoFactory::findProtocol: Refilling KProtocolInfoFactory cache in the hope to find "some"
QDEBUG : KFileWidgetTest::testSetSelection(filename) 23:05:51 - kfilewidgettest(23088) - kf5.kio.core: KProtocolInfoFactory::findProtocol: Refilling KProtocolInfoFactory cache in the hope to find "some"
XFAIL  : KFileWidgetTest::testSetSelection(filename) setSelection cannot work with filenames, bad API
   Loc: [/data/kde/src/kio/autotests/kfilewidgettest.cpp(169)]

- kiofilewidgets-kfileplacesmodeltest
FAIL!  : KFilePlacesModelTest::testInitialState() Compared values are not the same
   Actual   (m_places->rowCount()): 6
   Expected (4)                   : 4
   Loc: [/data/kde/src/kio/autotests/kfileplacesmodeltest.cpp(200)]
QDEBUG : KFilePlacesModelTest::testInitialList() 23:05:54 - kfileplacesmodeltest(23119) -  KFilePlacesModelTest::testInitialList: Expected: ("/home/krop", "/", "trash:/", "remote:/", "/media/nfs", "/foreign", "/media/floppy0", "/media/XO-Y4", "/media/cdrom")
QDEBUG : KFilePlacesModelTest::testInitialList() 23:05:54 - kfileplacesmodeltest(23119) -  KFilePlacesModelTest::testInitialList: Got: ("/home/krop", "/home/krop/Desktop", "/home/krop/Downloads", "/", "trash:/", "remote:/")
FAIL!  : KFilePlacesModelTest::testInitialList() Compared lists have different sizes.
   Actual   (placesUrls()) size: 6
   Expected (urls) size: 9
   Loc: [/data/kde/src/kio/autotests/kfileplacesmodeltest.cpp(236)]
QDEBUG : KFilePlacesModelTest::testReparse() 23:05:54 - kfileplacesmodeltest(23119) -  KFilePlacesModelTest::testReparse: Expected: ("/home/krop", "/", "trash:/", "/foo", "remote:/", "/media/nfs", "/foreign", "/media/floppy0", "/media/XO-Y4", "/media/cdrom")
QDEBUG : KFilePlacesModelTest::testReparse() 23:05:54 - kfileplacesmodeltest(23119) -  KFilePlacesModelTest::testReparse: Got: ("/home/krop", "/home/krop/Desktop", "/home/krop/Downloads", "/", "trash:/", "/foo", "remote:/")
FAIL!  : KFilePlacesModelTest::testReparse() Compared lists have different sizes.
   Actual   (placesUrls()) size: 7
   Expected (urls) size: 10

(etc...)

- kiofilewidgets-kfileplacesviewtest
Config: Using QtTest library 5.11.0, Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.3.1 20180323 [gcc-7-branch revision 258812])
PASS   : KFilePlacesViewTest::initTestCase()
QDEBUG : KFilePlacesViewTest::testUrlChanged(Today) 23:05:55 - kfileplacesviewtest(23123) - kf5.kcoreaddons.kdirwatch: KDirWatch::setCreated: "KDirWatch-1" emitting created "/home/krop/.qttest/share/user-places.xbel"
FAIL!  : KFilePlacesViewTest::testUrlChanged(Today) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "trash:/"
   Expected (expectedUrl)                  : "timeline:/today"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
FAIL!  : KFilePlacesViewTest::testUrlChanged(Yesterday) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "remote:/"
   Expected (expectedUrl)                  : "timeline:/2018-05/2018-05-10"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
FAIL!  : KFilePlacesViewTest::testUrlChanged(Documents) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "timeline:/today"
   Expected (expectedUrl)                  : "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Document%22]%7D"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
FAIL!  : KFilePlacesViewTest::testUrlChanged(Images) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "timeline:/2018-05/2018-05-10"
   Expected (expectedUrl)                  : "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Image%22]%7D"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
FAIL!  : KFilePlacesViewTest::testUrlChanged(Audio Files) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Document%22]%7D"
   Expected (expectedUrl)                  : "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Audio%22]%7D"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
FAIL!  : KFilePlacesViewTest::testUrlChanged(Videos) Compared values are not the same
   Actual   (args.at(0).toUrl().toString()): "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Image%22]%7D"
   Expected (expectedUrl)                  : "baloosearch:?json=%7B%22dayFilter%22: 0, %22monthFilter%22: 0, %22yearFilter%22: 0, %22type%22: [ %22Video%22]%7D"
   Loc: [/data/kde/src/kio/autotests/kfileplacesviewtest.cpp(109)]
PASS   : KFilePlacesViewTest::cleanupTestCase()