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

tst_QHostInfo::reverseLookup() fails on qemu and blocks CI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • dev
    • Network
    • None
    • QNX
    • 3c5e37fe0 (dev), 744313ae7 (6.7), 0ecb6b018 (6.6), 237c2c9bc (tqtc/lts-6.5)

    Description

      The test function is flaky and blocks integrations.

      https://testresults.qt.io/coin/log/qt/qtbase/e3909bbb16283260fd607ab622f7267a7f3cfdac/LinuxUbuntu_22_04x86_64LinuxQEMUarm64GCCqtci-linux-Ubuntu-22.04-x86_64-51-fc8706Sccache_UseConfigure/0ea7034bf842e8d1f34a883d8b27192e5b7a5515/test_1705758053

      https://testresults.qt.io/grafana/d/3dhio4K7k/fastcheck-ci-test-info?var-testCase=tst_qhostinfo&var-testFunction=reverseLookup&orgId=1&var-branch=dev

      EDIT by jimis:

      This bug is about the error "socket.gaierror: [Errno -3] Temporary failure in name resolution" in tst_QHostInfo:

      agent:2023/12/31 09:44:23 build.go:404: qt-testrunner.py    DEBUG: Running test command line: ['/home/qt/work/qt/qtbase_standalone_tests/tests/auto/network/kernel/qhostinfo/tst_qhostinfo', '-o', '/home/qt/work/testresults/tst_qhostinfo-1704015857179.xml,xml', '-o', '/home/qt/work/testresults/tst_qhostinfo-1704015857179.junit.xml,junitxml', '-o', '/home/qt/work/testresults/tst_qhostinfo-1704015857179.txt,txt', '-o', '-,txt', '-v2', '-maxwarnings', '0', 'reverseLookup:WithCache:dns.google']
      agent:2023/12/31 09:44:23 build.go:404: ********* Start testing of tst_QHostInfo *********
      agent:2023/12/31 09:44:23 build.go:404: Config: Using QtTest library 6.7.0, Qt 6.7.0 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 10.2.0), b2qt 3.2
      agent:2023/12/31 09:44:23 build.go:404: INFO   : tst_QHostInfo::initTestCase() entering
      agent:2023/12/31 09:44:23 build.go:404: PASS   : tst_QHostInfo::initTestCase()
      agent:2023/12/31 09:44:23 build.go:404: INFO   : tst_QHostInfo::reverseLookup() entering
      agent:2023/12/31 09:44:23 build.go:404: Traceback (most recent call last):
      agent:2023/12/31 09:44:23 build.go:404:   File "<string>", line 1, in <module>
      agent:2023/12/31 09:44:23 build.go:404: socket.gaierror: [Errno -3] Temporary failure in name resolution
      agent:2023/12/31 09:44:23 build.go:404: QDEBUG : tst_QHostInfo::reverseLookup(WithCache) [     0.004 D] default unknown:0 unknown()  -  Python failed, falling back to nslookup
      agent:2023/12/31 09:44:23 build.go:404: QDEBUG : tst_QHostInfo::reverseLookup(WithCache) [     0.041 D] default unknown:0 unknown()  -  Failure to parse nslookup output:  QList("** server can't find 8.8.8.8.in-addr.arpa: SERVFAIL", "", "")
      agent:2023/12/31 09:44:23 build.go:404: QDEBUG : tst_QHostInfo::reverseLookup(WithCache:dns.google) [     5.162 D] default unknown:0 unknown()  -  Failure: expecting QList() ,got  "8.8.8.8"
      agent:2023/12/31 09:44:23 build.go:404: INFO   : tst_QHostInfo::reverseLookup(WithCache:dns.google) QVERIFY(hostNames.contains(info.hostName()))
      agent:2023/12/31 09:44:23 build.go:404:    Loc: [/home/qt/work/qt/qtbase/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp(452)]
      agent:2023/12/31 09:44:23 build.go:404: FAIL!  : tst_QHostInfo::reverseLookup(WithCache:dns.google) 'hostNames.contains(info.hostName())' returned FALSE. ()
      agent:2023/12/31 09:44:23 build.go:404:    Loc: [/home/qt/work/qt/qtbase/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp(452)]
      agent:2023/12/31 09:44:23 build.go:404: INFO   : tst_QHostInfo::cleanupTestCase() entering
      agent:2023/12/31 09:44:23 build.go:404: PASS   : tst_QHostInfo::cleanupTestCase()
      agent:2023/12/31 09:44:23 build.go:404: Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 5836ms
      agent:2023/12/31 09:44:23 build.go:404: ********* Finished testing of tst_QHostInfo *********
      agent:2023/12/31 09:44:23 build.go:404: qt-testrunner.py     INFO: Test process exited with code: 1
      agent:2023/12/31 09:44:23 build.go:404: qt-testrunner.py     INFO: Test has FAILed despite all repetitions! re-runs:5 failures:5
      

      Attachments

        Issue Links

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

          Activity

            People

              manordheim MÃ¥rten Nordheim
              axelspoerl Axel Spoerl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change