Bug 353365 - runtime test storecompacttest flaky
Summary: runtime test storecompacttest flaky
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: general (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-30 10:14 UTC by Harald Sitter
Modified: 2015-09-30 15:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 15.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)