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

Q12020 Flaky failing autotest function startFinish in qfuturewatcher

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0.0
    • 5.12
    • Core: Threads
    • None
    • Windows
    • 21
    • Qt6_Foundation_Sprint 17

    Description

      I made a quick check if there is already a bug report or a bug fix for this test case. No obvious explicit information was found. Therefore a new bug report is added.

      Here is the log from the incident

      Coin task #1: http://coin/coin/integration/qt/qtbase/tasks/1582281584

      Host OS: Windows_10, target OS: Windows_10, MSVC2017 compiler

      Log #1: http://coin/coin/logview/qt/qtbase/0f496981b284b634ba1e74c304e0c13e01c163a3/WindowsWindows_10x86_64WindowsWindows_10x86_64MSVC2017qtci-windows-10-x86_64-10-2c54d8/f8930b3a2d099dccbf3965271755acd446c51007/test_1582281748

      ********* Start testing of tst_QFutureWatcher *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2017)
      PASS : tst_QFutureWatcher::initTestCase()
      FAIL! : tst_QFutureWatcher::startFinish() Compared values are not the same
      Actual (finishedSpy.count()): 1
      Expected (0) : 0
      tst_qfuturewatcher.cpp(87) : failure location
      PASS : tst_QFutureWatcher::progressValueChanged()
      PASS : tst_QFutureWatcher::canceled()
      PASS : tst_QFutureWatcher::resultAt()
      PASS : tst_QFutureWatcher::resultReadyAt()
      PASS : tst_QFutureWatcher::futureSignals()
      PASS : tst_QFutureWatcher::watchFinishedFuture()
      PASS : tst_QFutureWatcher::watchCanceledFuture()
      PASS : tst_QFutureWatcher::disconnectRunningFuture()
      PASS : tst_QFutureWatcher::tooMuchProgress()
      PASS : tst_QFutureWatcher::progressText()
      PASS : tst_QFutureWatcher::sharedFutureInterface()
      PASS : tst_QFutureWatcher::changeFuture()
      PASS : tst_QFutureWatcher::cancelEvents()
      PASS : tst_QFutureWatcher::pauseEvents()
      PASS : tst_QFutureWatcher::finishedState()
      PASS : tst_QFutureWatcher::throttling()
      PASS : tst_QFutureWatcher::incrementalMapResults()
      PASS : tst_QFutureWatcher::incrementalFilterResults()
      PASS : tst_QFutureWatcher::qfutureSynchronizer()
      PASS : tst_QFutureWatcher::warnRace()
      PASS : tst_QFutureWatcher::matchFlags()
      PASS : tst_QFutureWatcher::cleanupTestCase()
      Totals: 23 passed, 1 failed, 0 skipped, 0 blacklisted, 2773ms
      ********* Finished testing of tst_QFutureWatcher *********
      ...
      ********* Start testing of tst_QFutureWatcher *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2017)
      PASS : tst_QFutureWatcher::initTestCase()
      PASS : tst_QFutureWatcher::startFinish()
      PASS : tst_QFutureWatcher::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 105ms
      ********* Finished testing of tst_QFutureWatcher *********
      ...
      ********* Start testing of tst_QFutureWatcher *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2017)
      PASS : tst_QFutureWatcher::initTestCase()
      FAIL! : tst_QFutureWatcher::startFinish() Compared values are not the same
      Actual (finishedSpy.count()): 1
      Expected (0) : 0
      tst_qfuturewatcher.cpp(87) : failure location
      PASS : tst_QFutureWatcher::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 470ms
      ********* Finished testing of tst_QFutureWatcher *********
      
      

      Externally accessible log: https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1582281584

      The wanted action

      • Please delegate this task to a suitable developer
      • Fix the autotest flakiness in all affected versions, not just one. 
      • Cherry-pick the fix to all relevant branches
      • Mark the fix versions to Jira
      • Try to fix the actual issue instead of just blacklisting the test function
      • Find any possible directly or indirectly related bug reports and mark it as a resolved duplicate.

      Guidelines for debugging

      Please see the internal page https://intranet.qt.io/display/QTRD/Metrics+Guidelines+for+Grafana+Tool+for+Autotests+with+Issues

      How to locate the failed flaky test:

      Please open the link to the Grafana dashboard showing the failure history of the test:

      https://testresults.qt.io/grafana/d/5GKDJSPZz/02-qt-framework-please-fix-these-flaky-tests-random-fails?orgId=1&from=now%2Fy&to=now&var-project=qt%2Fqtbase&var-testcase=tests%2Fauto%2Fcorelib%2Fthread%2Fqfuturewatcher&var-testfunction=startFinish&var-branch=5.12&var-branch=5.13&var-branch=5.14&var-branch=5.15&var-branch=dev&var-inter=24h

      Please see the panel List of the recent flaky tests (both passed and failed). Sort it based on the results to see the failed instances. 

      Please open the links to the Coin tasks containing the logs. Please see the test section containing state "Error" and open corresponding logs. 

      Need to know more about the test binary execution history?

      Please see this Grafana dashboard: 

      https://testresults.qt.io/grafana/d/C-1oxSEWz/04-qt-framework-please-see-the-flakiness-history-of-tests?orgId=1&from=now%2Fy&to=now&var-project=qt%2Fqtbase&var-testcase=tests%2Fauto%2Fcorelib%2Fthread%2Fqfuturewatcher&var-testfunction=All&var-branch=5.12&var-branch=5.13&var-branch=5.14&var-branch=5.15&var-branch=dev&var-inter=24h

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            assaarel Asmo Saarela (Inactive)
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes