KDE CI: Applications kimap kf5-qt5 FreeBSDQt5.10 - Build # 11 - Still unstable!

Adriaan de Groot groot at kde.org
Thu Jul 5 13:54:11 BST 2018


On Thursday, 5 July 2018 13:57:00 CEST Adriaan de Groot wrote:
> On Thursday, 5 July 2018 12:26:09 CEST CI System wrote:
> > *JUnit Tests *
> > Name: (root) Failed: 1 test(s), Passed: 26 test(s), Skipped: 0 test(s),
> > Total: 27 test(s) *Failed: TestSuite.testsession*
> 
> So test failures are seen as build failures, as well. That's .. kind of
> annoying, I guess, since it hides the fact that things compile now.
> 
> The actual failure in the t4ests is this (from ctest -V -R setestsession):

I have done some digging and added debugging output to that test and KIMap:

3: QDEBUG : SessionTest::shouldFailForInvalidHosts() SessionPrivate@ 
0x80baae240
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() Session@ 0x7fffffffda50 
"0.0.0.0" 1234
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() Session@ 0x7fffffffda50 
state KIMAP::Session::State(Disconnected) true
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() SessionThread @ 
0x80ba4a0f0 reconnect
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() connectToHost "0.0.0.0" 
1234
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() SessionPrivate@ 
0x80baae240 Socket timeout!
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() SessionThread @ 
0x80ba4a0f0 closeSocket
3: QDEBUG : SessionTest::shouldFailForInvalidHosts() SessionThread @ 
0x80ba4a0f0 doCloseSocket

I lengthened the waits to 30 seconds, but it boils down to this:

 - the socket timeout happens
 - the socket is closed
 - when the socket gets closed, it hasn't connected *yet* (to what would it 
have connected?), so no socketDisconnected happens.

In particular, it never ends up in SessionPrivate::socketError() or 
SessionPrivate::socketDisconnected(), and so the connectionFailed() signal is 
never emitted. I think SessionPrivate::onSocketTimeout() should do more.

How does this work on Linux?

[ade]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180705/e6d99999/attachment.sig>


More information about the kde-pim mailing list