Bug 399563

Summary: plasma-plasmoidpackagetest fails since 5.51.0
Product: [Frameworks and Libraries] frameworks-kpackage Reporter: Heiko Becker <heiko.becker>
Component: defaultAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Heiko Becker 2018-10-09 14:39:43 UTC
Starting with 5.51.0 (the tarballs available for packagers) plasma-plasmoidpackagetest fails. I bisected it and it appears b42973d964df159119467030689f36cc005715b5 "Emit signals when a package is installed/uninstalled" is the commit which broke the test.

It also fails on build.kde.org with a different message due to ASAN: https://build.kde.org/job/Frameworks/job/kpackage/job/kf5-qt5%20SUSEQt5.10/78/consoleFull

STEPS TO REPRODUCE
1. cmake && ninja && ninja test

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.0
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

Output of the failing test:
3: Test command: /var/tmp/paludis/build/kde-frameworks-kpackage-5.50.0/work/build/bin/plasmoidpackagetest                           
3: Test timeout computed to be: 10000000                                                                                            
3: ********* Start testing of PlasmoidPackageTest *********                                                                         
3: Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.0)          
3: PASS   : PlasmoidPackageTest::initTestCase()                                                                                     
3: PASS   : PlasmoidPackageTest::createAndInstallPackage()                                                                          
3: PASS   : PlasmoidPackageTest::createAndUpdatePackage()                                                                           
3: QWARN  : PlasmoidPackageTest::uncompressPackageWithSubFolder() kf5.kcoreaddons.desktopparser: Unable to find service type for serv
ice "SimpleContent" listed in "/var/tmp/paludis/build/kde-frameworks-kpackage-5.50.0/temp/plasmoidpackagetest-DUHvvC/customcontent//m
etadata.desktop"                                                                                                                    
3: QWARN  : PlasmoidPackageTest::uncompressPackageWithSubFolder() kf5.kcoreaddons.desktopparser: Unable to find service type for serv
ice "CustomContent" listed in "/var/tmp/paludis/build/kde-frameworks-kpackage-5.50.0/temp/plasmoidpackagetest-DUHvvC/customcontent//m
etadata.desktop"                                                                                                                    
3: QWARN  : PlasmoidPackageTest::uncompressPackageWithSubFolder() kf5.kcoreaddons.desktopparser: Unable to find service type for serv
ice "SimpleContent" listed in "/var/tmp/paludis/build/kde-frameworks-kpackage-5.50.0/temp/plasmoidpackagetest-DUHvvC/customcontent/me
tadata.desktop"
3: QWARN  : PlasmoidPackageTest::uncompressPackageWithSubFolder() kf5.kcoreaddons.desktopparser: Unable to find service type for serv
ice "CustomContent" listed in "/var/tmp/paludis/build/kde-frameworks-kpackage-5.50.0/temp/plasmoidpackagetest-DUHvvC/customcontent/me
tadata.desktop"                                                                                                                     
3: PASS   : PlasmoidPackageTest::uncompressPackageWithSubFolder()                                                                   
3: QWARN  : PlasmoidPackageTest::isValid() Empty filename passed to function                                                        
3: QWARN  : PlasmoidPackageTest::isValid() kf5.kpackage: No metadata file in the package, expected it at: "/var/tmp/paludis/build/kde
-frameworks-kpackage-5.50.0/temp/.qttest/share/packageRoot/Package/"                                                                
3: PASS   : PlasmoidPackageTest::isValid()                                                                                          
3: PASS   : PlasmoidPackageTest::filePath()                                                                                         
3: PASS   : PlasmoidPackageTest::entryList()                                                                                        
3: QFATAL : PlasmoidPackageTest::noCrashOnAsyncInstall() Received signal 11                                                         
3:          Function time: 42ms Total time: 321ms                                                                                   
3: FAIL!  : PlasmoidPackageTest::noCrashOnAsyncInstall() Received a fatal error.                                                    
3:    Loc: [Unknown file(0)]                                                                                                        
3: Totals: 7 passed, 1 failed, 0 skipped, 0 blacklisted, 321ms                                                                      
3: ********* Finished testing of PlasmoidPackageTest *********                                                                      
 3/11 Test  #3: plasma-plasmoidpackagetest ..........***Exception: Child aborted  0.72 sec