Subject: bug#41847: qTox build failure

From: Efraim Flashner <[email-masked]>
Date: Sun, 14 Jun 2020 14:30:56 +0300

On Sun, Jun 14, 2020 at 03:36:30PM +0430, Reza Alizadeh Majd wrote:
> as another try, I updated the `qTox` package version from `0.16.3` to
> `0.17.2`, but two of tests fails during package build:
> 
> --8<---------------cut here---------------start------------->8---
>  1/14 Test  #1: test_core ........................***Failed   91.08 sec
> ********* Start testing of TestCore *********
> Config: Using QtTest library 5.12.7, Qt 5.12.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
> PASS   : TestCore::initTestCase()
> QWARN  : TestCore::startup_without_proxy() Core starting without LAN discovery. Peers can only be found through DHT.
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() attempted to send message with network family 10 (probably IPv6) on IPv4 socket
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QSYSTEM: TestCore::startup_without_proxy() Could not resolve hostname, or invalid IP address
> QDEBUG : TestCore::startup_without_proxy() "Connecting to a bootstrap node..."
> FAIL!  : TestCore::startup_without_proxy() 'spyCore.wait(timeout)' returned FALSE. ()
>    Loc: [/tmp/guix-build-qtox-1.17.2.drv-0/qTox-1.17.2/test/core/core_test.cpp(118)]
> QWARN  : TestCore::startup_with_invalid_proxy() Core starting without LAN discovery. Peers can only be found through DHT.
> QDEBUG : TestCore::startup_with_invalid_proxy() using proxy "Test" : 9985
> QDEBUG : TestCore::startup_with_invalid_proxy() Proxy and UDP enabled, this is a security risk, forcing TCP only
> QSYSTEM: TestCore::startup_with_invalid_proxy() bad proxy, error code: 5
> QWARN  : TestCore::startup_with_invalid_proxy() Core starting without LAN discovery. Peers can only be found through DHT.
> QDEBUG : TestCore::startup_with_invalid_proxy() using proxy "Test" : 9985
> QDEBUG : TestCore::startup_with_invalid_proxy() Proxy and UDP enabled, this is a security risk, forcing TCP only
> QSYSTEM: TestCore::startup_with_invalid_proxy() bad proxy, error code: 5
> PASS   : TestCore::startup_with_invalid_proxy()
> PASS   : TestCore::cleanupTestCase()
> Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 90235ms
> ********* Finished testing of TestCore *********
> --8<---------------cut here---------------end--------------->8---
> 
> --8<---------------cut here---------------start------------->8---
>  6/14 Test  #6: test_bsu .........................***Failed    0.04 sec
> ********* Start testing of TestBootstrapNodesUpdater *********
> Config: Using QtTest library 5.12.7, Qt 5.12.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
> PASS   : TestBootstrapNodesUpdater::initTestCase()
> FAIL!  : TestBootstrapNodesUpdater::testOnline() 'result.size() > 0' returned FALSE. ()
>    Loc: [/tmp/guix-build-qtox-1.17.2.drv-0/qTox-1.17.2/test/net/bsu_test.cpp(58)]
> PASS   : TestBootstrapNodesUpdater::testLocal()
> PASS   : TestBootstrapNodesUpdater::cleanupTestCase()
> Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 7ms
> ********* Finished testing of TestBootstrapNodesUpdater *********
> --8<---------------cut here---------------end--------------->8---
> 
> is it acceptable to bypass these two tests and submit a patch with
> updated version of `qTox` ? 

It looks like both tests that fail expect to have network connectivity.
Since there's no network inside the container then disabling those tests
is the best option.

If you want you can suggest upstream that they test for network
connectivity before running those tests.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted