[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-04-22 Thread kloczek
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #11 from kloczek  ---
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] [Bug 442292] 21.08.1: test suite is failing

2023-03-22 Thread Aaron Williams
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #10 from Aaron Williams  ---
(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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-03-22 Thread kloczek
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #8 from kloczek  ---
(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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-03-22 Thread kloczek
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #8 from kloczek  ---
(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 from kloczek  ---
(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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-03-19 Thread Aaron Williams
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #7 from Aaron Williams  ---
My permission problem was unrelated and due to apparmor.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-03-19 Thread Aaron Williams
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #6 from Aaron Williams  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-03-19 Thread Aaron Williams
https://bugs.kde.org/show_bug.cgi?id=442292

Aaron Williams  changed:

   What|Removed |Added

 CC||aar...@doofus.org

--- Comment #5 from Aaron Williams  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2023-01-15 Thread kloczek
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #4 from kloczek  ---
(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, 
 * KAccounts (required version >= 19.08.0), KDE library for Accounts framework
integration, 
 * Sqlite (required version >= 3.6.23), The Sqlite database library,

   Required by the Sqlite backend
 * LibXml2, Required for XML schema validation 

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2021-09-15 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #3 from Christophe Giboudeaux  ---
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"

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2021-09-15 Thread kloczek
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #2 from kloczek  ---
> 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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Akonadi] [Bug 442292] 21.08.1: test suite is failing

2021-09-15 Thread Christophe Giboudeaux
https://bugs.kde.org/show_bug.cgi?id=442292

--- Comment #1 from Christophe Giboudeaux  ---
Setup issue probably caused by the the value passed to DATABASE_BACKEND.

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

-- 
You are receiving this mail because:
You are watching all bug changes.