Skip Menu |

This queue is for tickets about the Data-Checker CPAN distribution.

Report information
The Basics
Id: 118541
Status: resolved
Priority: 0/
Queue: Data-Checker

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: RURBAN [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.06
Fixed in: (no value)



CC: RURBAN [...] cpan.org
Subject: t/ping.t fails (with recent Net::Ping versions?)
My smoker machines started to report the following failure in the test suite: ... getaddrinfo(aaa.bbb.ccc,,AF_INET) failed - hostname nor servname provided, or not known at /home/cpansand/.cpan/build/2016102915/Data-Checker-1.06-STvcDE/blib/lib/Data/Checker/Ping.pm line 37. t/ping.t .......... Dubious, test returned 83 (wstat 21248, 0x5300) No subtests run ... Statistical analysis suggests that this happens with Net::Ping 2.51 and newer: **************************************************************** Regression 'mod:Net::Ping' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 59065575679527832.00 [1='eq_2.43'] 0.0000 0.0000 0.00 [2='eq_2.43_01'] 0.0000 0.0000 11.36 [3='eq_2.44'] 0.0000 0.0000 3.95 [4='eq_2.51'] -1.0000 0.0000 -17808941141394090.00 [5='eq_2.55'] -1.0000 0.0000 -38667495931082712.00 R^2= 1.000, N= 97, K= 6 ****************************************************************
Yes, Net::Ping::External is still failing with Net::Ping 2.55 Investigating. -- Reini Urban
Show quoted text
> Statistical analysis suggests that this happens with Net::Ping 2.51 > and newer:
Technical analysis revealed that Net-Ping-External tests do cross-check for foreign hosts to match the result of ping with Net-Ping-External, but not with 127.0.0.1. On many hosts the firewall forbids now icmp to localhost. hence these tests error. Before Net-Ping 2.51 these tests were never executed. The Net-Ping-External tests need to be fixed for firewalled localhost ICMP. 1..6 ok 1 not ok 2 not ok 3 ok 4 not ok 5 not ok 6 Net::Ping::External version: 0.15 2/6 tests passed. Successful tests: use Net::Ping::External qw(ping) ping(host => 'some.non.existent.host.') Failed tests: ping(host => '127.0.0.1') ping(host => '127.0.0.1', timeout => 5) ping(host => '127.0.0.1', count => 10) ping(host => '127.0.0.1', size => 32) -- Reini Urban
cross-test: results for test 2: exit code for test 2: output for test 2: PING 127.0.0.1 (127.0.0.1): 56 data bytes --- 127.0.0.1 ping statistics --- 1 packets transmitted, 0 packets received, 100.0% packet loss -- Reini Urban
I've had several problems making the ping checks always work, so I've disabled them by default. I've released a new version which will not run the tests. I'll work on the tests separately to try to make them more robust.