Bug 353365

Summary: runtime test storecompacttest flaky
Product: [Applications] kdepim Reporter: Harald Sitter <sitter>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: dvratil
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 15.12.0

Description Harald Sitter 2015-09-30 10:14:26 UTC
https://build.kde.org/job/kdepim-runtime%20master%20kf5-qt5/PLATFORM=Linux,compiler=gcc/169/console

https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-wily/wily/amd64/k/kdepim-runtime/20150929_230443@/log.gz

>     entryList3.pop_front();
>     for (int i = 0; i < entryList3.count(); ++i) {
>         entryList3[ i ] = MBoxEntry(changedOffset(items.first()));
>         items.pop_front();
>     }
>     QCOMPARE(entryList, entryList3);

There is a disagreement between KMBox (entryList) and Akonadi (entryList3) about validity of the MBoxEntries.

QDEBUG : StoreCompactTest::testCompact() --- list kmbox
QDEBUG : StoreCompactTest::testCompact()  IsValid: false 
QDEBUG : StoreCompactTest::testCompact()  IsValid: true 
QDEBUG : StoreCompactTest::testCompact()  IsValid: true 
QDEBUG : StoreCompactTest::testCompact() --- list3 akonadi
QDEBUG : StoreCompactTest::testCompact()  IsValid: false 
QDEBUG : StoreCompactTest::testCompact()  IsValid: false 
QDEBUG : StoreCompactTest::testCompact()  IsValid: false 


Reproducible: Always
Comment 1 Daniel Vrátil 2015-09-30 15:15:06 UTC
commit a424dace373afd5740fe4de3529493050a72fdb0
Author: Dan Vrátil <dvratil@redhat.com>
Date:   Wed Sep 30 17:13:03 2015 +0200

    Fix unstable storecompacttest
    
    The test depends on QHash iteration order, which can be arbitrary. To compensate
    for that, we always ensure that the list is order the way the test expects it
    (does not affect test scope)