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

Q12020 Flaky failing autotest function elapsed in qelapsedtimer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0
    • 5.12, 5.15
    • Core: Date/Time
    • None
    • Linux/X11
    • 21
    • Qt6_Foundation_Sprint 17

    Description

      This a new instance of the bug report instead of reopening one related QTBUG-58713.

      Many platforms have this bug blacklisted. Is it possible to fix the root cause of flaky failures?

      Here is the log from the incident

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

      Host OS version: Ubuntu_18_04, target OS version QEMU. GCC compiler

      Log #1: http://coin/coin/logview/qt/qtbase/f545bbb9bf9bc3bcb161e07e97ebbdaab3624cd2/LinuxUbuntu_18_04x86_64LinuxQEMUarm64GCCqtci-linux-Ubuntu-18.04-x86_64-1b5846/ba4b8ec1d6f073fbfc38b87f066885c3124631f1/test_1583395553

      ********* Start testing of tst_QElapsedTimer *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 6.4.0)
      PASS : tst_QElapsedTimer::initTestCase()
      QDEBUG : tst_QElapsedTimer::statics() Clock type is 1
      QDEBUG : tst_QElapsedTimer::statics() Said clock is monotonic
      QDEBUG : tst_QElapsedTimer::statics() Current time is 460416
      PASS : tst_QElapsedTimer::statics()
      PASS : tst_QElapsedTimer::validity()
      QDEBUG : tst_QElapsedTimer::basics() value1: 460418 t1: (460418)
      QDEBUG : tst_QElapsedTimer::basics() value2: 460419 t1: (460419) elapsed: 1 nsecs: 1139548
      PASS : tst_QElapsedTimer::basics()
      FAIL! : tst_QElapsedTimer::elapsed() 'elapsed < 3*minResolution' returned FALSE. ()
      Loc: [tst_qelapsedtimer.cpp(132)]
      PASS : tst_QElapsedTimer::cleanupTestCase()
      Totals: 5 passed, 1 failed, 0 skipped, 0 blacklisted, 539ms
      ********* Finished testing of tst_QElapsedTimer *********
      ...
      ********* Start testing of tst_QElapsedTimer *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 6.4.0)
      PASS : tst_QElapsedTimer::initTestCase()
      PASS : tst_QElapsedTimer::elapsed()
      PASS : tst_QElapsedTimer::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 238ms
      ********* Finished testing of tst_QElapsedTimer *********
      ...
      ********* Start testing of tst_QElapsedTimer *********
      Config: Using QtTest library 5.12.8, Qt 5.12.8 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 6.4.0)
      PASS : tst_QElapsedTimer::initTestCase()
      FAIL! : tst_QElapsedTimer::elapsed() 'elapsed < 3*minResolution' returned FALSE. ()
      Loc: [tst_qelapsedtimer.cpp(132)]
      PASS : tst_QElapsedTimer::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 644ms
      ********* Finished testing of tst_QElapsedTimer *********
      
      

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

      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

      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%2Fkernel%2Fqelapsedtimer&var-testfunction=elapsed&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. 

      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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes