Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67254

tst_Gestures::customGesture is flaky

    XMLWordPrintable

Details

    Description

      All tst_Gestures tests are blacklisted in RHEL 7.4 already. But this one in particular is flaky on Ubuntu and openSUSE in CI. I wasn't able to reproduce the failure on my local Ubuntu 17.10.

      Example failure with manually added debug output:

      ********* Start testing of tst_Gestures *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.3.1 20180307 [gcc-7-branch revision 258314])
      PASS   : tst_Gestures::initTestCase()
      QINFO  : tst_Gestures::customGesture() widget pre-show pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: false
      QINFO  : tst_Gestures::customGesture() widget.isExposed: false
      QINFO  : tst_Gestures::customGesture() widget post-wait pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: true
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 1
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 2
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 3
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QWARN  : tst_Gestures::customGesture() QGestureManager::deliverEvent: could not find the target for gesture
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 4
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QWARN  : tst_Gestures::customGesture() QGestureManager::deliverEvent: could not find the target for gesture
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 5
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QWARN  : tst_Gestures::customGesture() QGestureManager::deliverEvent: could not find the target for gesture
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffe8faa1b40) 6
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(0,0) size: QSize(640, 480)
      QWARN  : tst_Gestures::customGesture() QGestureManager::deliverEvent: could not find the target for gesture
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(5,5)
      QINFO  : tst_Gestures::customGesture() toplevel: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffe8faa1b40) pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget pre-compare pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: true
      FAIL!  : tst_Gestures::customGesture() Compared values are not the same
         Actual   (widget.gestureEventsReceived): 0
         Expected (TotalGestureEventsCount)     : 4
         Loc: [tst_gestures.cpp(414)]
      PASS   : tst_Gestures::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 86ms
      ********* Finished testing of tst_Gestures *********
      

      Successful run with the same debut output:

      ********* Start testing of tst_Gestures *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.3.1 20180307 [gcc-7-branch revision 258314])
      PASS   : tst_Gestures::initTestCase()
      QINFO  : tst_Gestures::customGesture() widget pre-show pos: QPoint(0,0) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: false
      QINFO  : tst_Gestures::customGesture() widget.isExposed: false
      QINFO  : tst_Gestures::customGesture() widget post-wait pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: true
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 1
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 2
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 3
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 4
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 5
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() QApplication::sendEvent: GestureWidget(0x7ffc7593bc70) 6
      QINFO  : tst_Gestures::customGesture() widget pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() hotspot point: QPoint(645,259)
      QINFO  : tst_Gestures::customGesture() toplevel: GestureWidget(0x7ffc7593bc70)
      QINFO  : tst_Gestures::customGesture() child under hotspot: QWidget(0x0)
      QINFO  : tst_Gestures::customGesture() possible top levels:
      QINFO  : tst_Gestures::customGesture()   GestureWidget(0x7ffc7593bc70) pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget pre-compare pos: QPoint(636,225) size: QSize(640, 480)
      QINFO  : tst_Gestures::customGesture() widget.isExposed: true
      PASS   : tst_Gestures::customGesture()
      PASS   : tst_Gestures::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 77ms
      ********* Finished testing of tst_Gestures *********
      

      Grafana statistics: https://testresults.qt.io/grafana/d/000000009/coin-single-test-details?orgId=1&var-project=qt%2Fqtbase&var-testcase=tests%2Fauto%2Fother%2Fgestures&var-testfunction=customGesture&var-branch=5.11&var-branch=dev&var-inter=24h

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jimis Dimitrios Apostolou
              kari.oikarinen Kari Oikarinen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes