Bug 442292 - 21.08.1: test suite is failing
Summary: 21.08.1: test suite is failing
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 06:54 UTC by kloczek
Modified: 2023-04-22 13:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test suite log (1.38 MB, text/plain)
2021-09-11 06:54 UTC, kloczek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kloczek 2021-09-11 06:54:00 UTC
Created attachment 141463 [details]
test suite log

Full log is in attachmen. Here is only summary
52% tests passed, 84 tests failed out of 176

Total Test time (real) = 1442.43 sec

The following tests FAILED:
         21 - AkonadiServer-dbconfigtest (Failed)
         23 - AkonadiServer-itemretrievertest (Subprocess aborted)
         46 - entitytreemodeltest (Failed)
         60 - akonadi-mysql-testenvironmenttest (Failed)
         61 - akonadi-pgsql-testenvironmenttest (Failed)
         63 - akonadi-mysql-autoincrementtest (Failed)
         64 - akonadi-pgsql-autoincrementtest (Failed)
         66 - akonadi-mysql-attributefactorytest (Failed)
         67 - akonadi-pgsql-attributefactorytest (Failed)
         69 - akonadi-mysql-collectionpathresolvertest (Failed)
         70 - akonadi-pgsql-collectionpathresolvertest (Failed)
         72 - akonadi-mysql-collectionattributetest (Failed)
         73 - akonadi-pgsql-collectionattributetest (Failed)
         75 - akonadi-mysql-itemfetchtest (Failed)
         76 - akonadi-pgsql-itemfetchtest (Failed)
         78 - akonadi-mysql-itemappendtest (Failed)
         79 - akonadi-pgsql-itemappendtest (Failed)
         80 - akonadi-sqlite-itemappendtest (Failed)
         81 - akonadi-mysql-itemstoretest (Failed)
         82 - akonadi-pgsql-itemstoretest (Failed)
         83 - akonadi-sqlite-itemstoretest (Failed)
         84 - akonadi-mysql-itemdeletetest (Failed)
         85 - akonadi-pgsql-itemdeletetest (Failed)
         87 - akonadi-mysql-entitycachetest (Failed)
         88 - akonadi-pgsql-entitycachetest (Failed)
         90 - akonadi-mysql-monitortest (Failed)
         91 - akonadi-pgsql-monitortest (Failed)
         93 - akonadi-mysql-changerecordertest (Failed)
         94 - akonadi-pgsql-changerecordertest (Failed)
         96 - akonadi-mysql-resourcetest (Failed)
         97 - akonadi-pgsql-resourcetest (Failed)
         99 - akonadi-mysql-subscriptiontest (Failed)
        100 - akonadi-pgsql-subscriptiontest (Failed)
        102 - akonadi-mysql-transactiontest (Failed)
        103 - akonadi-pgsql-transactiontest (Failed)
        105 - akonadi-mysql-itemcopytest (Failed)
        108 - akonadi-mysql-itemmovetest (Failed)
        109 - akonadi-pgsql-itemmovetest (Failed)
        111 - akonadi-mysql-invalidatecachejobtest (Failed)
        112 - akonadi-pgsql-invalidatecachejobtest (Failed)
        114 - akonadi-mysql-collectioncreatetest (Failed)
        115 - akonadi-pgsql-collectioncreatetest (Failed)
        117 - akonadi-mysql-collectioncopytest (Failed)
        118 - akonadi-pgsql-collectioncopytest (Failed)
        120 - akonadi-mysql-collectionmovetest (Failed)
        121 - akonadi-pgsql-collectionmovetest (Failed)
        123 - akonadi-mysql-collectionsynctest (Failed)
        124 - akonadi-pgsql-collectionsynctest (Failed)
        126 - akonadi-mysql-itemsynctest (Failed)
        127 - akonadi-pgsql-itemsynctest (Failed)
        129 - akonadi-mysql-linktest (Failed)
        130 - akonadi-pgsql-linktest (Failed)
        132 - akonadi-mysql-cachetest (Failed)
        133 - akonadi-pgsql-cachetest (Failed)
        135 - akonadi-mysql-collectionjobtest (Failed)
        136 - akonadi-pgsql-collectionjobtest (Failed)
        138 - akonadi-mysql-collectionmodifytest (Failed)
        139 - akonadi-pgsql-collectionmodifytest (Failed)
        141 - akonadi-mysql-gidtest (Failed)
        142 - akonadi-pgsql-gidtest (Failed)
        144 - akonadi-mysql-lazypopulationtest (Failed)
        145 - akonadi-pgsql-lazypopulationtest (Failed)
        147 - akonadi-mysql-favoriteproxytest (Failed)
        148 - akonadi-pgsql-favoriteproxytest (Failed)
        150 - akonadi-mysql-tagtest (Failed)
        151 - akonadi-pgsql-tagtest (Failed)
        153 - akonadi-mysql-tagsynctest (Failed)
        154 - akonadi-pgsql-tagsynctest (Failed)
        156 - akonadi-mysql-relationtest (Failed)
        157 - akonadi-pgsql-relationtest (Failed)
        159 - akonadi-mysql-etmpopulationtest (Failed)
        160 - akonadi-pgsql-etmpopulationtest (Failed)
        165 - akonadi-mysql-tageditwidgettest (Failed)
        166 - akonadi-pgsql-tageditwidgettest (Failed)
        167 - akonadi-sqlite-tageditwidgettest (Failed)
        168 - akonadi-mysql-tagwidgettest (Failed)
        169 - akonadi-pgsql-tagwidgettest (Failed)
        170 - akonadi-sqlite-tagwidgettest (Failed)
        171 - akonadi-mysql-subscriptiondialogtest (Failed)
        172 - akonadi-pgsql-subscriptiondialogtest (Failed)
        173 - akonadi-sqlite-subscriptiondialogtest (Failed)
        174 - akonadi-mysql-tagselectioncomboboxtest (Failed)
        175 - akonadi-pgsql-tagselectioncomboboxtest (Failed)
        176 - akonadi-sqlite-tagselectioncomboboxtest (Failed)
Errors while running CTest
make: *** [Makefile:118: test] Error 8
Comment 1 Christophe Marin 2021-09-15 10:54:38 UTC
Setup issue probably caused by the the value passed to DATABASE_BACKEND.

Don't change the defaults if you plan to run tests.
Comment 2 kloczek 2021-09-15 11:54:02 UTC
> Setup issue probably caused by the the value passed to DATABASE_BACKEND.

> Don't change the defaults if you plan to run tests.

Please have a look one more time into attached log.
I did not changed anything.
Comment 3 Christophe Marin 2021-09-15 12:30:39 UTC
Then it means you're not building all backends.


FAIL!  : DbConfigTest::testDbConfig() Compared values are not the same
   Actual   (cfg->driverName()): "QSQLITE3"
   Expected (driverName)       : "QMYSQL"
Comment 4 kloczek 2023-01-16 03:30:52 UTC
(In reply to Christophe Marin from comment #3)
> Then it means you're not building all backends.
> 
> 
> FAIL!  : DbConfigTest::testDbConfig() Compared values are not the same
>    Actual   (cfg->driverName()): "QSQLITE3"
>    Expected (driverName)       : "QMYSQL"

Yes I'm buiding.
Here is output from cmake (22.12.1)

-- Installing in the same prefix as Qt, adopting their path scheme.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found Gettext: /usr/bin/msgmerge (found version "0.21.1")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
-- Found LibLZMA: /usr/lib64/liblzma.so (found suitable version "5.4.1", minimum required is "5.0.0")
-- Looking for malloc_trim
-- Looking for malloc_trim - found
-- Found SharedMimeInfo: /usr/bin/update-mime-database (found suitable version "2.2", minimum required is "1.3")
-- MySQL Server found: /usr/sbin/mysqld                          <<< === HERE
-- MySQL scripts location: /usr/bin                                       <<< === HERE
-- PostgreSQL Server found.                                                  <<< === HERE
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.3")
-- Checking for module 'sqlite3'                                             <<< === HERE
--   Found sqlite3, version 3.40.1                                            <<< === HERE
-- Found Sqlite: /usr/include (Required is at least version "3.6.23")
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Using default db backend QMYSQL
-- Performing Test NO_DEPRECATED_COPY
-- Performing Test NO_DEPRECATED_COPY - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Building QSQLITE3 driver
-- No such target KF5AkonadiCore_QCH when calling ecm_install_qch_export().
-- No target exported for KF5AkonadiCore_QCH.
-- Found Doxygen: /usr/bin/doxygen (found suitable version "1.9.6", minimum required is "1.8.13") found components: doxygen dot
-- Found QHelpGenerator executable: /usr/bin/qhelpgenerator
-- No such target Qt5Core_QCH defined when calling ecm_add_qch(), ignored.
-- No such target Qt5Gui_QCH defined when calling ecm_add_qch(), ignored.
-- No such target Qt5Widgets_QCH defined when calling ecm_add_qch(), ignored.


Configuration file '/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu/src/core/KF5AkonadiCore_ECMQchDoxygen.config' updated.

-- No such target KF5AkonadiWidgets_QCH when calling ecm_install_qch_export().
-- No target exported for KF5AkonadiWidgets_QCH.
-- Found QHelpGenerator executable: /usr/bin/qhelpgenerator
-- No such target Qt5Core_QCH defined when calling ecm_add_qch(), ignored.
-- No such target Qt5Gui_QCH defined when calling ecm_add_qch(), ignored.
-- No such target Qt5Widgets_QCH defined when calling ecm_add_qch(), ignored.


Configuration file '/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu/src/widgets/KF5AkonadiWidgets_ECMQchDoxygen.config' updated.

-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.10.3")
-- The following features have been enabled:

 * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)
 * DESIGNERPLUGIN, Build plugin for Qt Designer

-- The following OPTIONAL packages have been found:

 * Qt5UiPlugin (required version >= 5.15.7)
 * Qt5Designer
   Required to build the Qt Designer plugins
 * AccountsQt5 (required version >= 1.13), Qt bindings for the Accounts framework, <https://gitlab.com/accounts-sso/libaccounts-qt>
 * KAccounts (required version >= 19.08.0), KDE library for Accounts framework integration, <https://cgit.kde.org/kaccounts-integration.git>
 * Sqlite (required version >= 3.6.23), The Sqlite database library, <https://www.sqlite.org>
   Required by the Sqlite backend
 * LibXml2, Required for XML schema validation in akonadixml, <http://xmlsoft.org>

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.99.0)
 * Qt5Sql (required version >= 5.15.2)
 * Gettext
 * KF5I18n (required version >= 5.99.0)
 * KF5IconThemes (required version >= 5.99.0)
 * KF5ItemModels (required version >= 5.99.0)
 * KF5Service (required version >= 5.102.0)
 * KF5Bookmarks (required version >= 5.102.0)
 * KF5Completion (required version >= 5.102.0)
 * KF5ItemViews (required version >= 5.102.0)
 * KF5JobWidgets (required version >= 5.102.0)
 * KF5Solid (required version >= 5.102.0)
 * Qt5Network (required version >= 5.15.2)
 * KF5KIO (required version >= 5.99.0)
 * Qt5Gui (required version >= 5.15.2)
 * KF5WindowSystem (required version >= 5.99.0)
 * KF5Auth (required version >= 5.102.0)
 * KF5Codecs (required version >= 5.102.0)
 * Qt5Xml (required version >= 5.15.2)
 * KF5Config (required version >= 5.102.0)
 * KF5WidgetsAddons (required version >= 5.102.0)
 * KF5ConfigWidgets (required version >= 5.102.0)
 * KF5XmlGui (required version >= 5.99.0)
 * KF5Crash (required version >= 5.99.0)
 * Qt5Widgets (required version >= 5.15.0)
 * KF5CoreAddons (required version >= 5.97.0)
 * LibLZMA (required version >= 5.0.0), LZMA compression library, <https://tukaani.org/xz/>
 * SharedMimeInfo (required version >= 1.3), A database of common MIME types, <https://freedesktop.org/wiki/Software/shared-mime-info/>
 * Doxygen (required version >= 1.8.13)
   Needed for API dox QCH file generation
   Needed for API dox QCH file generation
 * QHelpGenerator, Part of Qt5 tools
   Needed for API dox QCH file generation
   Needed for API dox QCH file generation
 * Qt5Core
 * Qt5DBus
 * Qt5 (required version >= 5.15.2)
 * Qt5Test (required version >= 5.15.2)

-- Configuring done


Other thing is that are failing other units not related to testing db backend.
Here is updated output from building 22.12.1


+ xvfb-run -a /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 ' ' -E '^(.*-mysql-.*|.*-pgsql-.*|.*-sqlite-.*)'
Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu
Test project /home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu
      Start  1: appstreamtest
      Start  2: AkonadiPrivate-protocol-xmllint
      Start  3: akonadidb-xmllint
      Start  4: akonadidbupdate-xmllint
      Start  5: akonadixml-collectiontest
      Start  6: akonadixml-xmldocumenttest
      Start  7: AkonadiPrivate-akstandarddirstest
      Start  8: AkonadiPrivate-akdbustest
      Start  9: AkonadiPrivate-notificationmessagetest
      Start 10: AkonadiPrivate-externalpartstoragetest
      Start 11: AkonadiPrivate-protocoltest
      Start 12: AkonadiPrivate-imapparsertest
      Start 13: AkonadiPrivate-imapsettest
      Start 14: AkonadiPrivate-compressionstreamtest
      Start 15: AkonadiServer-dbdeadlockcatchertest
      Start 16: AkonadiServer-dbtypetest
      Start 17: AkonadiServer-dbintrospectortest
      Start 18: AkonadiServer-querybuildertest
      Start 19: AkonadiServer-dbinitializertest
      Start 20: AkonadiServer-dbupdatertest
      Start 21: AkonadiServer-handlertest
      Start 22: AkonadiServer-dbconfigtest
      Start 23: AkonadiServer-parthelpertest
      Start 24: AkonadiServer-itemretrievertest
      Start 25: AkonadiServer-notificationsubscribertest
      Start 26: AkonadiServer-notificationmanagertest
      Start 27: AkonadiServer-parttypehelpertest
      Start 28: AkonadiServer-collectionstatisticstest
      Start 29: AkonadiServer-aggregatedfetchscopetest
      Start 30: AkonadiServer-collectionschedulertest
      Start 31: AkonadiServer-partstreamertest
      Start 32: AkonadiServer-itemcreatehandlertest
      Start 33: AkonadiServer-itemlinkhandlertest
      Start 34: AkonadiServer-itemmovehandlertest
      Start 35: AkonadiServer-collectioncreatehandlertest
      Start 36: AkonadiServer-collectionfetchhandlertest
      Start 37: AkonadiServer-collectionmodifyhandlertest
      Start 38: AkonadiServer-searchtest
      Start 39: AkonadiServer-relationhandlertest
      Start 40: AkonadiServer-taghandlertest
      Start 41: AkonadiServer-fetchhandlertest
      Start 42: itemhydratest
      Start 43: itemtest
      Start 44: itemserializertest
      Start 45: mimetypecheckertest
      Start 46: protocolhelpertest
      Start 47: entitytreemodeltest
      Start 48: monitornotificationtest
 1/63 Test  #1: appstreamtest ...............................   Passed    0.09 sec
      Start 49: collectionutilstest
 2/63 Test  #2: AkonadiPrivate-protocol-xmllint .............   Passed    0.09 sec
      Start 50: collectioncolorattributetest
 3/63 Test  #3: akonadidb-xmllint ...........................   Passed    0.09 sec
      Start 51: entitydisplayattributetest
 4/63 Test  #4: akonadidbupdate-xmllint .....................   Passed    0.09 sec
      Start 52: proxymodelstest
 5/63 Test  #8: AkonadiPrivate-akdbustest ...................   Passed    0.09 sec
      Start 53: actionstatemanagertest
 6/63 Test  #9: AkonadiPrivate-notificationmessagetest ......   Passed    0.09 sec
      Start 54: conflictresolvedialogtest
 7/63 Test #11: AkonadiPrivate-protocoltest .................   Passed    0.09 sec
      Start 55: tagmodeltest
 8/63 Test #14: AkonadiPrivate-compressionstreamtest ........   Passed    0.08 sec
      Start 56: statisticsproxymodeltest
 9/63 Test #15: AkonadiServer-dbdeadlockcatchertest .........   Passed    0.09 sec
      Start 57: sharedvaluepooltest
10/63 Test #16: AkonadiServer-dbtypetest ....................   Passed    0.09 sec
      Start 58: jobtest
11/63 Test #17: AkonadiServer-dbintrospectortest ............   Passed    0.09 sec
      Start 59: tagtest_simple
12/63 Test #19: AkonadiServer-dbinitializertest .............   Passed    0.09 sec
      Start 60: cachepolicytest
13/63 Test #20: AkonadiServer-dbupdatertest .................   Passed    0.09 sec
      Start 61: AkonadiControl-agenttypetest
14/63 Test #22: AkonadiServer-dbconfigtest ..................   Passed    0.09 sec
      Start 62: AkonadiShared-akrangestest
15/63 Test #23: AkonadiServer-parthelpertest ................   Passed    0.09 sec
      Start 63: AkonadiShared-akscopeguardtest
16/63 Test #25: AkonadiServer-notificationsubscribertest ....   Passed    0.09 sec
17/63 Test #26: AkonadiServer-notificationmanagertest .......   Passed    0.09 sec
18/63 Test #29: AkonadiServer-aggregatedfetchscopetest ......   Passed    0.08 sec
19/63 Test  #5: akonadixml-collectiontest ...................   Passed    0.13 sec
20/63 Test  #6: akonadixml-xmldocumenttest ..................   Passed    0.13 sec
21/63 Test #13: AkonadiPrivate-imapsettest ..................   Passed    0.11 sec
22/63 Test #62: AkonadiShared-akrangestest ..................   Passed    0.01 sec
23/63 Test #63: AkonadiShared-akscopeguardtest ..............   Passed    0.01 sec
24/63 Test #61: AkonadiControl-agenttypetest ................   Passed    0.03 sec
25/63 Test #44: itemserializertest ..........................   Passed    0.10 sec
26/63 Test #28: AkonadiServer-collectionstatisticstest ......   Passed    0.13 sec
27/63 Test #42: itemhydratest ...............................   Passed    0.11 sec
28/63 Test #46: protocolhelpertest ..........................   Passed    0.10 sec
29/63 Test #52: proxymodelstest .............................   Passed    0.08 sec
30/63 Test #43: itemtest ....................................   Passed    0.12 sec
31/63 Test #38: AkonadiServer-searchtest ....................   Passed    0.12 sec
32/63 Test #45: mimetypecheckertest .........................   Passed    0.11 sec
33/63 Test #49: collectionutilstest .........................   Passed    0.10 sec
34/63 Test #51: entitydisplayattributetest ..................   Passed    0.10 sec
35/63 Test #53: actionstatemanagertest ......................   Passed    0.10 sec
36/63 Test #50: collectioncolorattributetest ................   Passed    0.11 sec
37/63 Test #35: AkonadiServer-collectioncreatehandlertest ...   Passed    0.14 sec
38/63 Test #39: AkonadiServer-relationhandlertest ...........   Passed    0.15 sec
39/63 Test #59: tagtest_simple ..............................   Passed    0.10 sec
40/63 Test #60: cachepolicytest .............................   Passed    0.09 sec
41/63 Test #40: AkonadiServer-taghandlertest ................   Passed    0.15 sec
42/63 Test #48: monitornotificationtest .....................   Passed    0.14 sec
43/63 Test #56: statisticsproxymodeltest ....................   Passed    0.13 sec
44/63 Test #21: AkonadiServer-handlertest ...................Subprocess aborted***Exception:   0.22 sec
Cannot remove old log file '/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu/autotests/server/.local-unit-test/share/akonadi/Akonadi.error.old': No such file or directory

45/63 Test #36: AkonadiServer-collectionfetchhandlertest ....Subprocess aborted***Exception:   0.21 sec
Cannot rename log file '/home/tkloczko/.local/share/akonadi/Akonadi.error' to '/home/tkloczko/.local/share/akonadi/Akonadi.error.old': Cannot create /home/tkloczko/.local/share/akonadi/Akonadi.error.old for output

46/63 Test #33: AkonadiServer-itemlinkhandlertest ...........Subprocess aborted***Exception:   0.22 sec
Cannot rename log file '/home/tkloczko/.local/share/akonadi/Akonadi.error' to '/home/tkloczko/.local/share/akonadi/Akonadi.error.old': Cannot create /home/tkloczko/.local/share/akonadi/Akonadi.error.old for output

47/63 Test #34: AkonadiServer-itemmovehandlertest ...........Subprocess aborted***Exception:   0.22 sec
Cannot rename log file '/home/tkloczko/.local/share/akonadi/Akonadi.error' to '/home/tkloczko/.local/share/akonadi/Akonadi.error.old': Cannot create /home/tkloczko/.local/share/akonadi/Akonadi.error.old for output

48/63 Test #27: AkonadiServer-parttypehelpertest ............Subprocess aborted***Exception:   0.24 sec
Cannot remove old log file '/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/x86_64-redhat-linux-gnu/autotests/server/.local-unit-test/share/akonadi/Akonadi.error.old': No such file or directory

49/63 Test #37: AkonadiServer-collectionmodifyhandlertest ...Subprocess aborted***Exception:   0.22 sec
Cannot rename log file '/home/tkloczko/.local/share/akonadi/Akonadi.error' to '/home/tkloczko/.local/share/akonadi/Akonadi.error.old': Cannot create /home/tkloczko/.local/share/akonadi/Akonadi.error.old for output

50/63 Test #58: jobtest .....................................   Passed    0.18 sec
51/63 Test #54: conflictresolvedialogtest ...................   Passed    0.20 sec
52/63 Test #18: AkonadiServer-querybuildertest ..............   Passed    0.28 sec
53/63 Test #32: AkonadiServer-itemcreatehandlertest .........   Passed    0.26 sec
54/63 Test #24: AkonadiServer-itemretrievertest .............Subprocess aborted***Exception:   0.34 sec
==== Fake Akonadi Server starting up ====
org.kde.pim.akonadiserver: Running DB initializer
org.kde.pim.akonadiserver: DB initializer done
org.kde.pim.akonadiserver: Warning: dbupdate.xml not found, skipping updates
/usr/include/c++/12/bits/unique_ptr.h:445: typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp, _Dp>::operator*() const [with _Tp = Akonadi::Server::ItemRetrievalManager; _Dp = std::default_delete<Akonadi::Server::ItemRetrievalManager>; typename std::add_lvalue_reference<_Tp>::type = Akonadi::Server::ItemRetrievalManager&]: Assertion 'get() != pointer()' failed.

55/63 Test #41: AkonadiServer-fetchhandlertest ..............   Passed    0.33 sec
56/63 Test #12: AkonadiPrivate-imapparsertest ...............   Passed    0.65 sec
57/63 Test #57: sharedvaluepooltest .........................   Passed    0.66 sec
58/63 Test #30: AkonadiServer-collectionschedulertest .......   Passed    1.23 sec
59/63 Test #55: tagmodeltest ................................   Passed    2.37 sec
60/63 Test  #7: AkonadiPrivate-akstandarddirstest ...........   Passed    3.04 sec
61/63 Test #10: AkonadiPrivate-externalpartstoragetest ......   Passed    3.04 sec
62/63 Test #47: entitytreemodeltest .........................***Failed    8.04 sec
QT_HASH_SEED: forced seed value is not 0, cannot guarantee that the hashing functions will produce a stable value.********* Start testing of EntityTreeModelTest *********
Config: Using QtTest library 5.15.7, Qt 5.15.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 12.2.1 20221121 (Red Hat 12.2.1-4)), fedora 38
PASS   : EntityTreeModelTest::initTestCase()
FAIL!  : EntityTreeModelTest::testInitialFetch() Compared lists differ at index 0.
   Actual   (extractModelColumn(*m_model, parent, topLeft.row(), bottomRight.row())): QVariant(QString,Col 6)
   Expected (expectedSignal.newData): QVariant(QString,Col 2)
   Loc: [/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/autotests/libs/modelspy.cpp(86)]
FAIL!  : EntityTreeModelTest::testInitialFetch() Compared lists differ at index 0.
   Actual   (extractModelColumn(*m_model, parent, topLeft.row(), bottomRight.row())): QVariant(QString,Col 2)
   Expected (expectedSignal.newData): QVariant(QString,Col 6)
   Loc: [/home/tkloczko/rpmbuild/BUILD/akonadi-22.12.1/autotests/libs/modelspy.cpp(86)]
PASS   : EntityTreeModelTest::testCollectionMove(move-collection01)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection02)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection03)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection04)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection05)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection06)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection07)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection08)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection09)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection10)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection11)
PASS   : EntityTreeModelTest::testCollectionMove(move-collection12)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection01)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection02)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection03)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection04)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection05)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection06)
PASS   : EntityTreeModelTest::testCollectionAdded(add-collection07)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection02)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection03)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection04)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection05)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection06)
PASS   : EntityTreeModelTest::testCollectionRemoved(remove-collection07)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection01) ""
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection01)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection02) "Col 1"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection02)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection03) "Col 1"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection03)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection04) "Col 3"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection04)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection05) "Col 4"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection05)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection06) "Col 1"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection06)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection07) "Col 1"
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection07)
QDEBUG : EntityTreeModelTest::testCollectionChanged(change-collection08) ""
PASS   : EntityTreeModelTest::testCollectionChanged(change-collection08)
PASS   : EntityTreeModelTest::testItemMove(move-item01)
PASS   : EntityTreeModelTest::testItemMove(move-item02)
PASS   : EntityTreeModelTest::testItemMove(move-item03)
PASS   : EntityTreeModelTest::testItemMove(move-item04)
PASS   : EntityTreeModelTest::testItemMove(move-item05)
PASS   : EntityTreeModelTest::testItemMove(move-item02)
PASS   : EntityTreeModelTest::testItemAdded(add-item01)
PASS   : EntityTreeModelTest::testItemAdded(add-item02)
PASS   : EntityTreeModelTest::testItemAdded(add-item03)
PASS   : EntityTreeModelTest::testItemAdded(add-item04)
PASS   : EntityTreeModelTest::testItemAdded(add-item05)
PASS   : EntityTreeModelTest::testItemAdded(add-item06)
PASS   : EntityTreeModelTest::testItemAdded(add-item07)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item01)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item02)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item03)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item04)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item05)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item06)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item07)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item08)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item09)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item10)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item11)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item12)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item13)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item14)
PASS   : EntityTreeModelTest::testItemRemoved(remove-item15)
PASS   : EntityTreeModelTest::testItemChanged(change-item01)
PASS   : EntityTreeModelTest::testItemChanged(change-item02)
PASS   : EntityTreeModelTest::testItemChanged(change-item03)
PASS   : EntityTreeModelTest::testItemChanged(change-item04)
PASS   : EntityTreeModelTest::testItemChanged(change-item05)
PASS   : EntityTreeModelTest::testItemChanged(change-item06)
PASS   : EntityTreeModelTest::testItemChanged(change-item07)
PASS   : EntityTreeModelTest::testItemChanged(change-item08)
PASS   : EntityTreeModelTest::testItemChanged(change-item09)
PASS   : EntityTreeModelTest::testItemChanged(change-item10)
PASS   : EntityTreeModelTest::testItemChanged(change-item11)
PASS   : EntityTreeModelTest::testItemChanged(change-item12)
PASS   : EntityTreeModelTest::testItemChanged(change-item13)
PASS   : EntityTreeModelTest::testItemChanged(change-item14)
PASS   : EntityTreeModelTest::testItemChanged(change-item15)
PASS   : EntityTreeModelTest::testRemoveCollectionOnChanged()
PASS   : EntityTreeModelTest::cleanupTestCase()
Totals: 79 passed, 2 failed, 0 skipped, 0 blacklisted, 7913ms
********* Finished testing of EntityTreeModelTest *********

63/63 Test #31: AkonadiServer-partstreamertest ..............   Passed   10.20 sec

87% tests passed, 8 tests failed out of 63

Total Test time (real) =  10.27 sec

The following tests FAILED:
         21 - AkonadiServer-handlertest (Subprocess aborted)
         24 - AkonadiServer-itemretrievertest (Subprocess aborted)
         27 - AkonadiServer-parttypehelpertest (Subprocess aborted)
         33 - AkonadiServer-itemlinkhandlertest (Subprocess aborted)
         34 - AkonadiServer-itemmovehandlertest (Subprocess aborted)
         36 - AkonadiServer-collectionfetchhandlertest (Subprocess aborted)
         37 - AkonadiServer-collectionmodifyhandlertest (Subprocess aborted)
         47 - entitytreemodeltest (Failed)
Errors while running CTest
error: Bad exit status from /var/tmp/rpm-tmp.qvmcBF (%check)

In above I've deselected Db backedn units to show that there are other issues.
Comment 5 Aaron Williams 2023-03-19 09:11:24 UTC
I am hitting this bug. The last time I debugged this it turned out to be due to multiple threads attempting to do the same thing at the same time. Two threads attempt to move Akonadi.error to Akonadi.error.old at the same time and this fails. The code needs to be fixed to handle this by either adding a lock or not failing.
The problem is in akInit() and it is caused by multiple instances attempting to start at the same time.
I.e. with two processes:
P1 sees old file exists
P2 sees old file exists
P1 deletes old file
P2 attempts to delete old file, fails due to P1.
Comment 6 Aaron Williams 2023-03-19 10:39:54 UTC
Never mind, I'm getting a permission denied error for removing Akonadi.error.old which I cannot explain. The file permissionss are 644 and the file and path are correct. The only odd thing in my configuration is that the .local and .config directories are symlinks from my home directory to a SSD.
Comment 7 Aaron Williams 2023-03-19 11:58:42 UTC
My permission problem was unrelated and due to apparmor.
Comment 8 kloczek 2023-03-23 00:33:10 UTC
(In reply to Aaron Williams from comment #5)
> I am hitting this bug. The last time I debugged this it turned out to be due
> to multiple threads attempting to do the same thing at the same time. Two
> threads attempt to move Akonadi.error to Akonadi.error.old at the same time
> and this fails. The code needs to be fixed to handle this by either adding a
> lock or not failing.
> The problem is in akInit() and it is caused by multiple instances attempting
> to start at the same time.
> I.e. with two processes:
> P1 sees old file exists
> P2 sees old file exists
> P1 deletes old file
> P2 attempts to delete old file, fails due to P1.

IIRC in cmake it is possible to specyfy that some some units must be serialised.
Comment 9 kloczek 2023-03-23 00:33:10 UTC
(In reply to Aaron Williams from comment #5)
> I am hitting this bug. The last time I debugged this it turned out to be due
> to multiple threads attempting to do the same thing at the same time. Two
> threads attempt to move Akonadi.error to Akonadi.error.old at the same time
> and this fails. The code needs to be fixed to handle this by either adding a
> lock or not failing.
> The problem is in akInit() and it is caused by multiple instances attempting
> to start at the same time.
> I.e. with two processes:
> P1 sees old file exists
> P2 sees old file exists
> P1 deletes old file
> P2 attempts to delete old file, fails due to P1.

IIRC in cmake it is possible to specyfy that some some units must be serialised.
Comment 10 Aaron Williams 2023-03-23 03:38:41 UTC
(In reply to kloczek from comment #9)
> (In reply to Aaron Williams from comment #5)
> > I am hitting this bug. The last time I debugged this it turned out to be due
> > to multiple threads attempting to do the same thing at the same time. Two
> > threads attempt to move Akonadi.error to Akonadi.error.old at the same time
> > and this fails. The code needs to be fixed to handle this by either adding a
> > lock or not failing.
> > The problem is in akInit() and it is caused by multiple instances attempting
> > to start at the same time.
> > I.e. with two processes:
> > P1 sees old file exists
> > P2 sees old file exists
> > P1 deletes old file
> > P2 attempts to delete old file, fails due to P1.
> 
> IIRC in cmake it is possible to specyfy that some some units must be
> serialised.

As I stated above, I traced the root cause to app-armor due to the fact that my .home directory was a symlink to a SSD. I was mistaken in thinking it might be due to some parallel issue.
Comment 11 kloczek 2023-04-22 13:07:12 UTC
Just tested 23.04.0 and test suite now is failing in more units

18% tests passed, 145 tests failed out of 176

Total Test time (real) =   8.14 sec

The following tests FAILED:
          5 - akonadixml-xmldocumenttest (Failed)
          6 - AkonadiPrivate-akstandarddirstest (Subprocess aborted)
          7 - AkonadiPrivate-akdbustest (Subprocess aborted)
          9 - AkonadiPrivate-externalpartstoragetest (Subprocess aborted)
         14 - AkonadiServer-dbdeadlockcatchertest (Subprocess aborted)
         15 - AkonadiServer-dbtypetest (Subprocess aborted)
         16 - AkonadiServer-dbintrospectortest (Subprocess aborted)
         18 - AkonadiServer-dbinitializertest (Subprocess aborted)
         20 - AkonadiServer-handlertest (Subprocess aborted)
         21 - AkonadiServer-dbconfigtest (Subprocess aborted)
         22 - AkonadiServer-parthelpertest (Subprocess aborted)
         23 - AkonadiServer-itemretrievertest (Subprocess aborted)
         24 - AkonadiServer-notificationsubscribertest (Subprocess aborted)
         25 - AkonadiServer-notificationmanagertest (Subprocess aborted)
         26 - AkonadiServer-parttypehelpertest (Subprocess aborted)
         27 - AkonadiServer-collectionstatisticstest (Subprocess aborted)
         29 - AkonadiServer-collectionschedulertest (Subprocess aborted)
         30 - AkonadiServer-partstreamertest (Subprocess aborted)
         31 - AkonadiServer-itemcreatehandlertest (Subprocess aborted)
         32 - AkonadiServer-itemlinkhandlertest (Subprocess aborted)
         33 - AkonadiServer-itemmovehandlertest (Subprocess aborted)
         34 - AkonadiServer-collectioncreatehandlertest (Subprocess aborted)
         35 - AkonadiServer-collectionfetchhandlertest (Subprocess aborted)
         36 - AkonadiServer-collectionmodifyhandlertest (Subprocess aborted)
         37 - AkonadiServer-searchtest (Subprocess aborted)
         38 - AkonadiServer-relationhandlertest (Subprocess aborted)
         39 - AkonadiServer-taghandlertest (Subprocess aborted)
         40 - AkonadiServer-fetchhandlertest (Subprocess aborted)
         44 - mimetypecheckertest (Failed)
         46 - entitytreemodeltest (Failed)
         60 - akonadi-mysql-testenvironmenttest (Failed)
         61 - akonadi-pgsql-testenvironmenttest (Failed)
         62 - akonadi-sqlite-testenvironmenttest (Failed)
         63 - akonadi-mysql-autoincrementtest (Failed)
         64 - akonadi-pgsql-autoincrementtest (Failed)
         65 - akonadi-sqlite-autoincrementtest (Failed)
         66 - akonadi-mysql-attributefactorytest (Failed)
         67 - akonadi-pgsql-attributefactorytest (Failed)
         68 - akonadi-sqlite-attributefactorytest (Failed)
         69 - akonadi-mysql-collectionpathresolvertest (Failed)
         70 - akonadi-pgsql-collectionpathresolvertest (Failed)
         71 - akonadi-sqlite-collectionpathresolvertest (Failed)
         72 - akonadi-mysql-collectionattributetest (Failed)
         73 - akonadi-pgsql-collectionattributetest (Failed)
         74 - akonadi-sqlite-collectionattributetest (Failed)
         75 - akonadi-mysql-itemfetchtest (Failed)
         76 - akonadi-pgsql-itemfetchtest (Failed)
         77 - akonadi-sqlite-itemfetchtest (Failed)
         78 - akonadi-mysql-itemappendtest (Failed)
         79 - akonadi-pgsql-itemappendtest (Failed)
         80 - akonadi-sqlite-itemappendtest (Failed)
         81 - akonadi-mysql-itemstoretest (Failed)
         82 - akonadi-pgsql-itemstoretest (Failed)
         83 - akonadi-sqlite-itemstoretest (Failed)
         84 - akonadi-mysql-itemdeletetest (Failed)
         85 - akonadi-pgsql-itemdeletetest (Failed)
         86 - akonadi-sqlite-itemdeletetest (Failed)
         87 - akonadi-mysql-entitycachetest (Failed)
         88 - akonadi-pgsql-entitycachetest (Failed)
         89 - akonadi-sqlite-entitycachetest (Failed)
         90 - akonadi-mysql-monitortest (Failed)
         91 - akonadi-pgsql-monitortest (Failed)
         92 - akonadi-sqlite-monitortest (Failed)
         93 - akonadi-mysql-changerecordertest (Failed)
         94 - akonadi-pgsql-changerecordertest (Failed)
         95 - akonadi-sqlite-changerecordertest (Failed)
         96 - akonadi-mysql-resourcetest (Failed)
         97 - akonadi-pgsql-resourcetest (Failed)
         98 - akonadi-sqlite-resourcetest (Failed)
         99 - akonadi-mysql-subscriptiontest (Failed)
        100 - akonadi-pgsql-subscriptiontest (Failed)
        101 - akonadi-sqlite-subscriptiontest (Failed)
        102 - akonadi-mysql-transactiontest (Failed)
        103 - akonadi-pgsql-transactiontest (Failed)
        104 - akonadi-sqlite-transactiontest (Failed)
        105 - akonadi-mysql-itemcopytest (Failed)
        106 - akonadi-pgsql-itemcopytest (Failed)
        107 - akonadi-sqlite-itemcopytest (Failed)
        108 - akonadi-mysql-itemmovetest (Failed)
        109 - akonadi-pgsql-itemmovetest (Failed)
        110 - akonadi-sqlite-itemmovetest (Failed)
        111 - akonadi-mysql-invalidatecachejobtest (Failed)
        112 - akonadi-pgsql-invalidatecachejobtest (Failed)
        113 - akonadi-sqlite-invalidatecachejobtest (Failed)
        114 - akonadi-mysql-collectioncreatetest (Failed)
        115 - akonadi-pgsql-collectioncreatetest (Failed)
        116 - akonadi-sqlite-collectioncreatetest (Failed)
        117 - akonadi-mysql-collectioncopytest (Failed)
        118 - akonadi-pgsql-collectioncopytest (Failed)
        119 - akonadi-sqlite-collectioncopytest (Failed)
        120 - akonadi-mysql-collectionmovetest (Failed)
        121 - akonadi-pgsql-collectionmovetest (Failed)
        122 - akonadi-sqlite-collectionmovetest (Failed)
        123 - akonadi-mysql-collectionsynctest (Failed)
        124 - akonadi-pgsql-collectionsynctest (Failed)
        125 - akonadi-sqlite-collectionsynctest (Failed)
        126 - akonadi-mysql-itemsynctest (Failed)
        127 - akonadi-pgsql-itemsynctest (Failed)
        128 - akonadi-sqlite-itemsynctest (Failed)
        129 - akonadi-mysql-linktest (Failed)
        130 - akonadi-pgsql-linktest (Failed)
        131 - akonadi-sqlite-linktest (Failed)
        132 - akonadi-mysql-cachetest (Failed)
        133 - akonadi-pgsql-cachetest (Failed)
        134 - akonadi-sqlite-cachetest (Failed)
        135 - akonadi-mysql-collectionjobtest (Failed)
        136 - akonadi-pgsql-collectionjobtest (Failed)
        137 - akonadi-sqlite-collectionjobtest (Failed)
        138 - akonadi-mysql-collectionmodifytest (Failed)
        139 - akonadi-pgsql-collectionmodifytest (Failed)
        140 - akonadi-sqlite-collectionmodifytest (Failed)
        141 - akonadi-mysql-gidtest (Failed)
        142 - akonadi-pgsql-gidtest (Failed)
        143 - akonadi-sqlite-gidtest (Failed)
        144 - akonadi-mysql-lazypopulationtest (Failed)
        145 - akonadi-pgsql-lazypopulationtest (Failed)
        146 - akonadi-sqlite-lazypopulationtest (Failed)
        147 - akonadi-mysql-favoriteproxytest (Failed)
        148 - akonadi-pgsql-favoriteproxytest (Failed)
        149 - akonadi-sqlite-favoriteproxytest (Failed)
        150 - akonadi-mysql-tagtest (Failed)
        151 - akonadi-pgsql-tagtest (Failed)
        152 - akonadi-sqlite-tagtest (Failed)
        153 - akonadi-mysql-tagsynctest (Failed)
        154 - akonadi-pgsql-tagsynctest (Failed)
        155 - akonadi-sqlite-tagsynctest (Failed)
        156 - akonadi-mysql-relationtest (Failed)
        157 - akonadi-pgsql-relationtest (Failed)
        158 - akonadi-sqlite-relationtest (Failed)
        159 - akonadi-mysql-etmpopulationtest (Failed)
        160 - akonadi-pgsql-etmpopulationtest (Failed)
        161 - akonadi-sqlite-etmpopulationtest (Failed)
        162 - AkonadiControl-agenttypetest (Subprocess aborted)
        165 - akonadi-mysql-tageditwidgettest (Failed)
        166 - akonadi-pgsql-tageditwidgettest (Failed)
        167 - akonadi-sqlite-tageditwidgettest (Failed)
        168 - akonadi-mysql-tagwidgettest (Failed)
        169 - akonadi-pgsql-tagwidgettest (Failed)
        170 - akonadi-sqlite-tagwidgettest (Failed)
        171 - akonadi-mysql-subscriptiondialogtest (Failed)
        172 - akonadi-pgsql-subscriptiondialogtest (Failed)
        173 - akonadi-sqlite-subscriptiondialogtest (Failed)
        174 - akonadi-mysql-tagselectioncomboboxtest (Failed)
        175 - akonadi-pgsql-tagselectioncomboboxtest (Failed)
        176 - akonadi-sqlite-tagselectioncomboboxtest (Failed)
Errors while running CTest