cpp-netlib: FTBFS: test failures when no internet connection available

Bug #1256583 reported by Andreas Moog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cpp-netlib (Debian)
Fix Released
Unknown
cpp-netlib (Ubuntu)
Fix Released
High
Andreas Moog

Bug Description

Imported from Debian bug http://bugs.debian.org/731011:

Package: cpp-netlib
Version: 0.10.1-1
Severity: serious
Justification: Fails to build from source

Hi there,

some of the tests in your package require internet connectivity and/or
an active network interface. The former may not be available on the
build daemon, resulting in an error like:

> Running 12 test cases...
> unknown location(0): fatal error in "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags29http_default_8bit_tcp_resolveELj1ELj0EEE>": std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags29http_default_8bit_udp_resolveELj1ELj0EEE>": std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags31http_keepalive_8bit_tcp_resolveELj1ELj0EEE>": std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags31http_keepalive_8bit_udp_resolveELj1ELj0EEE>": std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags27http_async_8bit_udp_resolveELj1ELj0EEE>": std::runtime_error: Host not found (authoritative)
> terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error> >'
> what(): boost thread: trying joining itself: Resource deadlock avoided
>
> Start 14: cpp-netlib-http-client_get_timeout_test
> 14/18 Test #14: cpp-netlib-http-client_get_timeout_test ............. Passed 0.02 sec
> Start 15: cpp-netlib-http-client_get_streaming_test
> 15/18 Test #15: cpp-netlib-http-client_get_streaming_test ...........***Exception: Other 0.01 sec
> terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error> >'
> Running 4 test cases...
> unknown location(0): fatal error in "http_client_get_streaming_test<N5boost7network4http12basic_clientINS1_4tags27http_async_8bit_udp_resolveELj1ELj0EEE>": std::runtime_error: Host not found (authoritative)
> /build/buildd/cpp-netlib-0.10.1/libs/network/test/http/client_get_streaming_test.cpp(37): last checkpoint
> what(): boost thread: trying joining itself: Resource deadlock avoided
>
> Start 16: cpp-netlib-http-server_constructor_test
> 16/18 Test #16: cpp-netlib-http-server_constructor_test ............. Passed 0.01 sec
> Start 17: cpp-netlib-http-server_async_run_stop_concurrency
> 17/18 Test #17: cpp-netlib-http-server_async_run_stop_concurrency ... Passed 1.31 sec
> Start 18: mime-roundtrip
> 18/18 Test #18: mime-roundtrip ...................................... Passed 0.01 sec
>
> 83% tests passed, 3 tests failed out of 18

A full build-log can for example be found at
https://launchpadlibrarian.net/157509492/buildlog_ubuntu-trusty-i386.cpp-netlib_0.10.1-1_FAILEDTOBUILD.txt.gz
Note that this particular build was done on Ubuntu trusty, but I
verified the same error on an up-to-date unstable running inside
Virtualbox with the network interface disabled.

The easiest solution in my opinion would be to disable the tests that
require connectivity/an active network interface.

--
Andreas Moog, Berliner Str. 29, 36205 Sontra/Germany
PGP-encrypted mails preferred (Key-ID: 74DE6624)
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624

Tags: ftbfs trusty
Andreas Moog (ampelbein)
Changed in cpp-netlib (Ubuntu):
importance: Undecided → High
tags: added: ftbfs trusty
Changed in cpp-netlib (Ubuntu):
status: New → In Progress
assignee: nobody → Andreas Moog (amoog)
Changed in cpp-netlib (Debian):
importance: Undecided → Unknown
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cpp-netlib - 0.10.1-1ubuntu1

---------------
cpp-netlib (0.10.1-1ubuntu1) trusty; urgency=low

  * Disable tests that require internet connection and/or a working network
    interface. These tests fail on the build daemons: (Closes: #731011)
    (LP: #1256583)
    - cpp-netlib-http-client_get_test
    - cpp-netlib-http-client_get_different_port_test
    - cpp-netlib-http-client_get_streaming_test
 -- Andreas Moog <email address hidden> Sun, 01 Dec 2013 00:11:56 +0100

Changed in cpp-netlib (Ubuntu):
status: In Progress → Fix Released
Changed in cpp-netlib (Debian):
status: New → Confirmed
Changed in cpp-netlib (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.