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

tst_QWindow::testInputEvents is flaky in CI

    XMLWordPrintable

Details

    Description

      tst_QWindow::testInputEvents is failing frequently in CI on Windows 10 machines.

      Example failure:

      ********* Start testing of tst_QWindow *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2017)
      PASS : tst_QWindow::initTestCase()
      PASS : tst_QWindow::create()
      PASS : tst_QWindow::setParent()
      PASS : tst_QWindow::setVisible()
      PASS : tst_QWindow::setVisibleFalseDoesNotCreateWindow()
      PASS : tst_QWindow::eventOrderOnShow()
      PASS : tst_QWindow::resizeEventAfterResize()
      PASS : tst_QWindow::exposeEventOnShrink_QTBUG54040()
      PASS : tst_QWindow::mapGlobal()
      PASS : tst_QWindow::positioning(default)
      PASS : tst_QWindow::positioningDuringMinimized()
      PASS : tst_QWindow::childWindowPositioning(create)
      PASS : tst_QWindow::childWindowPositioning(show)
      PASS : tst_QWindow::childWindowLevel()
      PASS : tst_QWindow::platformSurface()
      PASS : tst_QWindow::isExposed()
      PASS : tst_QWindow::isActive()
      FAIL! : tst_QWindow::testInputEvents() Compared values are not the same
      Actual (window.mousePressButton): 0
      Expected (int(Qt::LeftButton)) : 1
      tst_qwindow.cpp(1058) : failure location
      PASS : tst_QWindow::touchToMouseTranslation()
      PASS : tst_QWindow::touchToMouseTranslationForDevices()
      PASS : tst_QWindow::mouseToTouchTranslation()
      PASS : tst_QWindow::mouseToTouchLoop()
      PASS : tst_QWindow::touchCancel()
      PASS : tst_QWindow::touchCancelWithTouchToMouse()
      PASS : tst_QWindow::touchInterruptedByPopup()
      PASS : tst_QWindow::orientation()
      PASS : tst_QWindow::sizes()
      PASS : tst_QWindow::close()
      PASS : tst_QWindow::activateAndClose()
      PASS : tst_QWindow::mouseEventSequence()
      PASS : tst_QWindow::windowModality()
      PASS : tst_QWindow::inputReentrancy()
      PASS : tst_QWindow::tabletEvents()
      PASS : tst_QWindow::windowModality_QTBUG27039()
      PASS : tst_QWindow::visibility()
      PASS : tst_QWindow::mask()
      PASS : tst_QWindow::initialSize()
      PASS : tst_QWindow::modalDialog()
      PASS : tst_QWindow::modalDialogClosingOneOfTwoModal()
      PASS : tst_QWindow::modalWithChildWindow()
      PASS : tst_QWindow::modalWindowModallity()
      PASS : tst_QWindow::modalWindowPosition()
      FAIL! : tst_QWindow::modalWindowEnterEventOnHide_QTBUG35109() Compared values are not the same
      Actual (((root.enterEventCount))): 0
      Expected (1) : 1
      tst_qwindow.cpp(2066) : failure location
      PASS : tst_QWindow::windowsTransientChildren()
      PASS : tst_QWindow::requestUpdate()
      PASS : tst_QWindow::stateChange(normal->min->normal)
      PASS : tst_QWindow::stateChange(normal->maximized->normal)
      PASS : tst_QWindow::stateChange(normal->fullscreen->normal)
      PASS : tst_QWindow::stateChange(normal->maximized->fullscreen->normal)
      PASS : tst_QWindow::flags()
      PASS : tst_QWindow::testBlockingWindowShownAfterModalDialog()
      PASS : tst_QWindow::generatedMouseMove()
      PASS : tst_QWindow::cleanupTestCase()
      Totals: 51 passed, 2 failed, 0 skipped, 0 blacklisted, 19379ms
      ********* Finished testing of tst_QWindow *********

      Statistics on Grafana: https://testresults.qt.io/grafana/d/000000009/coin-single-test-details?orgId=1&var-project=qt%2Fqtbase&var-testcase=tests%2Fauto%2Fgui%2Fkernel%2Fqwindow&var-testfunction=testInputEvents&var-branch=5.11&var-branch=dev&var-inter=24h

      The failures intensified recently, but I wasn't able to find any cause for that.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-66798
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              kari.oikarinen Kari Oikarinen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes