Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2010-01-24 Thread gregor herrmann
On Sat, 09 Jan 2010 20:30:38 +0100, Lucas Nussbaum wrote:

  If it is possible, when you are dooing the next run of the archive
  rebuild, could you sent this to the bugreport?
 Hi,
 here is the log (two build attempts, both failed).

Thanks alot!


And now for the interesting aspect: 

 t/getrusage.t . 
 1..2
 # getrusage
 # ru = 1.356084 0.008 0 0 0 0 1001 0 0 0 0 0 0 0 0 71
 # times
 # tsu = 1.35, tss = 0
 # sleep(6)
 # real = 9
 # ruu = 1.356084, tsu = 1.35
 # rus = 0.008, tss = 0
 # ruc = 1.364084, tsc = 1.35
 # real = 9
 # far: a = 1.356084, b = 1.35, r = 0.2
 # far: abs(a/b-1) = 0.00450
 # far: a = 0.008, b = 0, r = 0.4
 # far: abs(a/b-1) = -
 ok 1
 # @ru = (2.708169 0.008 0 0 0 0 1056 0 0 0 0 0 0 0 1 152)
 # far: a = 2.708169, b = 2.708169, r = 0.2
 # far: abs(a/b-1) = 0
 # far: a = 0.008, b = 0.008, r = 0.4
 # far: abs(a/b-1) = 0
 ok 2
 ok

 t/times.t . 
 1..2
 # CORE::times()  = 2.69 0.01 0 0
 # times  = 2.692168 0.016001 0 0
 # BSD::Resource::times() = 2.692168 0.016001 0 0
 # far: a = 2.692168, b = 2.69, r = 0.1
 # far: abs(a/b-1) = 0.000805947955390351
 # far: a = 0.016001, b = 0.01, r = 0.5
 # far: abs(a/b-1) = 0.6001
 not ok 1
 # far: a = 2.692168, b = 2.692168, r = 0.1
 # far: abs(a/b-1) = 0
 # far: a = 0.016001, b = 0.016001, r = 0.1
 # far: abs(a/b-1) = 0
 # far: a = 0, b = 0, r = 0.1
 # far: abs(a/b-1) = -
 # far: a = 0, b = 0, r = 0.1
 # far: abs(a/b-1) = -
 ok 2
 Failed 1/2 subtests 
 
 Test Summary Report
 ---
 t/times.t   (Wstat: 0 Tests: 2 Failed: 1)
   Failed test:  1
 Files=8, Tests=41, 20 wallclock secs ( 0.04 usr  0.00 sys +  5.54 cusr  0.06 
 csys =  5.64 CPU)
 Result: FAIL

 t/getrusage.t . 
 1..2
 # getrusage
 # ru = 3.336208 0.024001 0 0 0 0 1002 0 0 0 0 0 0 0 1 58
 # times
 # tsu = 3.33, tss = 0.02
 # sleep(6)
 # real = 9
 # ruu = 3.336208, tsu = 3.33
 # rus = 0.024001, tss = 0.02
 # ruc = 3.360209, tsc = 3.35
 # real = 9
 # far: a = 3.336208, b = 3.33, r = 0.2
 # far: abs(a/b-1) = 0.00186426426426434
 # far: a = 0.024001, b = 0.02, r = 0.4
 # far: abs(a/b-1) = 0.20005
 ok 1
 # @ru = (6.008375 0.028001 0 0 0 0 1057 0 0 0 0 0 0 0 2 99)
 # far: a = 6.008375, b = 6.008375, r = 0.2
 # far: abs(a/b-1) = 0
 # far: a = 0.028001, b = 0.028001, r = 0.4
 # far: abs(a/b-1) = 0
 ok 2
 ok

 t/times.t . 
 1..2
 # CORE::times()  = 5.34 0.01 0 0
 # times  = 5.344334 0.016001 0 0
 # BSD::Resource::times() = 5.344334 0.016001 0 0
 # far: a = 5.344334, b = 5.34, r = 0.1
 # far: abs(a/b-1) = 0.000811610486891379
 # far: a = 0.016001, b = 0.01, r = 0.5
 # far: abs(a/b-1) = 0.6001
 not ok 1
 # far: a = 5.344334, b = 5.344334, r = 0.1
 # far: abs(a/b-1) = 0
 # far: a = 0.016001, b = 0.016001, r = 0.1
 # far: abs(a/b-1) = 0
 # far: a = 0, b = 0, r = 0.1
 # far: abs(a/b-1) = -
 # far: a = 0, b = 0, r = 0.1
 # far: abs(a/b-1) = -
 ok 2
 Failed 1/2 subtests 
 
 Test Summary Report
 ---
 t/times.t   (Wstat: 0 Tests: 2 Failed: 1)
   Failed test:  1
 Files=8, Tests=41, 19 wallclock secs ( 0.03 usr  0.02 sys + 11.50 cusr  0.07 
 csys = 11.62 CPU)
 Result: FAIL

So this time t/getrusage.t passes twice, but now t/times.t fails
twice. *sigh*

I'm thinking more and more that these tests are broken by design, and
I'm inclined to skip them.

Cheers,
gregor
-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin,  developer - http://www.debian.org/
 `. `'   Member of VIBE!AT  SPI, fellow of Free Software Foundation Europe
   `-NP: Bob Dylan: Visions of Johanna


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2010-01-09 Thread Lucas Nussbaum
On 07/01/10 at 20:38 +0100, Salvatore Bonaccorso wrote:
 Hi Lucas
 
 On Tue, Dec 29, 2009 at 03:15:01PM +0200, Damyan Ivanov wrote:
  -=| gregor herrmann, Tue, Dec 29, 2009 at 12:34:33PM +0100 |=-
   Hm, we could also skip this test since it seems rather arbitrary ...
   But I won't stop anyone from implementing the looping idea :)
  
  As discussed on IRC, I've replaced the standard test with a verbose 
  one. We'll ask Lucas for test rebuilds after the upload and see what 
  happens.
 
 If it is possible, when you are dooing the next run of the archive
 rebuild, could you sent this to the bugreport?

Hi,

here is the log (two build attempts, both failed).

- Lucas

DC-Build-Header: libbsd-resource-perl 1.2903-2 / Fri Jan 08 20:30:38 +0100 2010
sbuild (Debian sbuild) 0.59.0 (02 Aug 2009) on griffon-82.nancy.grid5000.fr

╔══╗
║ libbsd-resource-perl 1.2903-2 (amd64)  08 Jan 2010 20:30 ║
╚══╝

Package: libbsd-resource-perl
Version: 1.2903-2
Architecture: amd64
Start Time: 20100108-2030

┌──┐
│ Fetch source files   │
└──┘


Check APT
─

Checking available source versions...

Download source files with APT
──

Reading package lists...
Building dependency tree...
Reading state information...
Need to get 63.5kB of source archives.
Get:1 http://localhost sid/main libbsd-resource-perl 1.2903-2 (dsc) [1505B]
Get:2 http://localhost sid/main libbsd-resource-perl 1.2903-2 (tar) [59.3kB]
Get:3 http://localhost sid/main libbsd-resource-perl 1.2903-2 (diff) [2705B]
Fetched 63.5kB in 0s (179kB/s)
Download complete and in download only mode

Check arch
──

** Using build dependencies supplied by package:
Build-Depends: perl (= 5.8), debhelper (= 7.0.50), libtest-pod-perl, 
libtest-pod-coverage-perl

┌──┐
│ Install build dependencies   │
└──┘

Checking for already installed source dependencies...
perl: already installed (5.10.1-8 = 5.8 is satisfied)
debhelper: missing
Using default version 7.4.11
libtest-pod-perl: missing
libtest-pod-coverage-perl: missing
Checking for source dependency conflicts...
Installing positive dependencies: debhelper libtest-pod-perl 
libtest-pod-coverage-perl
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  bsdmainutils file gettext gettext-base groff-base html2text intltool-debian
  libcroco3 libdevel-symdump-perl libglib2.0-0 libio-stringy-perl libmagic1
  libpcre3 libpod-coverage-perl libxml2 man-db po-debconf
Suggested packages:
  wamerican wordlist whois vacation dh-make gettext-doc groff www-browser
  libmail-box-perl
Recommended packages:
  curl wget lynx cvs libglib2.0-data shared-mime-info xml-core
  libmail-sendmail-perl
The following NEW packages will be installed:
  bsdmainutils debhelper file gettext gettext-base groff-base html2text
  intltool-debian libcroco3 libdevel-symdump-perl libglib2.0-0
  libio-stringy-perl libmagic1 libpcre3 libpod-coverage-perl
  libtest-pod-coverage-perl libtest-pod-perl libxml2 man-db po-debconf
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 9119kB of archives.
After this operation, 27.0MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  bsdmainutils groff-base man-db libmagic1 file gettext-base libpcre3 libxml2
  html2text libglib2.0-0 libcroco3 gettext intltool-debian po-debconf
  debhelper libdevel-symdump-perl libio-stringy-perl libpod-coverage-perl
  libtest-pod-coverage-perl libtest-pod-perl
Authentication warning overridden.
Get:1 http://localhost sid/main bsdmainutils 8.0.5 [200kB]
Get:2 http://localhost sid/main groff-base 1.20.1-6 [1156kB]
Get:3 http://localhost sid/main man-db 2.5.6-5 [1492kB]
Get:4 http://localhost sid/main libmagic1 5.03-5 [393kB]
Get:5 http://localhost sid/main file 5.03-5 [47.6kB]
Get:6 http://localhost sid/main gettext-base 0.17-8 [133kB]
Get:7 http://localhost sid/main libpcre3 7.8-3 [215kB]
Get:8 http://localhost sid/main libxml2 2.7.6.dfsg-1 [876kB]
Get:9 http://localhost sid/main html2text 1.3.2a-14 [103kB]
Get:10 http://localhost sid/main libglib2.0-0 2.22.3-2 [999kB]
Get:11 http://localhost sid/main libcroco3 0.6.2-1 [125kB]
Get:12 http://localhost sid/main gettext 0.17-8 [2503kB]
Get:13 http://localhost sid/main intltool-debian 0.35.0+20060710.1 [30.8kB]
Get:14 http://localhost sid/main po-debconf 1.0.16 [224kB]
Get:15 http://localhost sid/main 

Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2010-01-07 Thread Salvatore Bonaccorso
Hi Lucas

On Tue, Dec 29, 2009 at 03:15:01PM +0200, Damyan Ivanov wrote:
 -=| gregor herrmann, Tue, Dec 29, 2009 at 12:34:33PM +0100 |=-
  Hm, we could also skip this test since it seems rather arbitrary ...
  But I won't stop anyone from implementing the looping idea :)
 
 As discussed on IRC, I've replaced the standard test with a verbose 
 one. We'll ask Lucas for test rebuilds after the upload and see what 
 happens.

If it is possible, when you are dooing the next run of the archive
rebuild, could you sent this to the bugreport?

Many thanks in advance,
Bests
Salvatore


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-29 Thread gregor herrmann
On Mon, 21 Dec 2009 18:11:59 +0200, Damyan Ivanov wrote:

  I tried to rebuild libbsd-resource-perl, and t/getrusage.t test does
  not fail here. Could someone of the Debian Perl Group try to reproduce
  this too?
 
 Builds here (amd64 cowbuilder).
 
 The failing test file has two tests. Both check whether some resource 
 consumption is approximately the same as what times() reports. There 
 is a tolerance (20% for user time and 40% for system time) and the 
 tests fail if the measured resource consumprion diverges by aa great 
 factor.

The tests point to INSTALL which has an interested paragraph
concerning this specific test:

#v+
NOTE 1: The test t/getrusage.t is known to be tricky and to fail once
in a while. This is because the results depend on timing issues and
the activity of the operating system, it is moderately icky to
guestimate such tolerances that leave some slack while still proving
anything. Please retry 'make test' for a couple times, eventually
the test should pass. If even that fails, please see that the $debug
in the script is 1 and then run the test separately:

perl -Mblib t/getrusage.t

or (if the above does not work)

perl -Iblib/arch -Iblib/lib t/getrusage.t

and send the results to me. Ditto for the other tests: running them
separately with the $debug on is useful for, well, debugging.
#v-

I just built the package in 3 cowbuilder sid chroots (i386, amd64,
and armel) -- and it passes the tests everywhere. Hm.


Cheers,
gregor
-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin,  developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-NP: Limahl: Neverending Story


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-29 Thread Damyan Ivanov
-=| gregor herrmann, Tue, Dec 29, 2009 at 11:24:08AM +0100 |=-
 On Mon, 21 Dec 2009 18:11:59 +0200, Damyan Ivanov wrote:
  The failing test file has two tests. Both check whether some 
  resource consumption is approximately the same as what times() 
  reports. There is a tolerance (20% for user time and 40% for 
  system time) and the tests fail if the measured resource 
  consumprion diverges by aa great factor.
 
 The tests point to INSTALL which has an interested paragraph
 concerning this specific test:
 
 #v+
 NOTE 1: The test t/getrusage.t is known to be tricky and to fail once
 in a while. This is because the results depend on timing issues and
 the activity of the operating system, it is moderately icky to
 guestimate such tolerances that leave some slack while still proving
 anything. Please retry 'make test' for a couple times, eventually
 the test should pass. If even that fails, please see that the $debug
 in the script is 1 and then run the test separately:
 
 perl -Mblib t/getrusage.t
 
 or (if the above does not work)
 
 perl -Iblib/arch -Iblib/lib t/getrusage.t
 
 and send the results to me. Ditto for the other tests: running them
 separately with the $debug on is useful for, well, debugging.
 #v-

Nice catch!

We could loop tests several times until either a) they pass; or b) 
N loops were done and then try one final loop with debugging on. At 
least this can help upstream help us :)

-- 
dam


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-29 Thread gregor herrmann
On Tue, 29 Dec 2009 13:06:10 +0200, Damyan Ivanov wrote:

  NOTE 1: The test t/getrusage.t is known to be tricky and to fail once
  in a while. This is because the results depend on timing issues and
  the activity of the operating system, it is moderately icky to
  guestimate such tolerances that leave some slack while still proving
  anything. Please retry 'make test' for a couple times, eventually
  the test should pass. If even that fails, please see that the $debug
  in the script is 1 and then run the test separately:
 We could loop tests several times until either a) they pass; or b) 
 N loops were done and then try one final loop with debugging on. At 
 least this can help upstream help us :)

Next detail:
$ nl t/getrusage.t | grep debug | head -n 1
 9  my $debug = 1;

:)

When run in my normal environment I indeed get debug output:

$ perl Makefile.PL
[..]
$ make
[..]
$ prove --blib --verbose t/getrusage.t
t/getrusage.t .. 
1..2
# getrusage
# ru = 2.258656 0.095985 4880 0 0 0 855 0 0 0 0 0 0 0 0 832
# times
# tsu = 2.26, tss = 0.09
# sleep(6)
# real = 9
# ruu = 2.258656, tsu = 2.26
# rus = 0.095985, tss = 0.09
# ruc = 2.354641, tsc = 2.35
# real = 9
# far: a = 2.258656, b = 2.26, r = 0.2
# far: abs(a/b-1) = 0.000594690265486753
# far: a = 0.095985, b = 0.09, r = 0.4
# far: abs(a/b-1) = 0.0665
ok 1
# @ru = (4.605299 0.173973 4880 0 0 0 910 0 0 0 0 0 0 0 1 1749)
# far: a = 4.605299, b = 4.605299, r = 0.2
# far: abs(a/b-1) = 0
# far: a = 0.173973, b = 0.173973, r = 0.4
# far: abs(a/b-1) = 0
ok 2
ok
All tests successful.
Files=1, Tests=2, 12 wallclock secs ( 0.13 usr  0.02 sys +  4.61 cusr  0.17 
csys =  4.93 CPU)
Result: PASS

Oh, but only with --verbose, otherwise:

$ prove --blib t/getrusage.t
t/getrusage.t .. ok   
All tests successful.
Files=1, Tests=2, 12 wallclock secs ( 0.09 usr  0.01 sys +  4.99 cusr  0.18 
csys =  5.27 CPU)
Result: PASS


Hm, we could also skip this test since it seems rather arbitrary ...
But I won't stop anyone from implementing the looping idea :)

Cheers,
gregor 
 
-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin,  developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-NP: The Beatles: Ob-La-Di Ob-La-Da


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-29 Thread Damyan Ivanov
-=| gregor herrmann, Tue, Dec 29, 2009 at 12:34:33PM +0100 |=-
 Hm, we could also skip this test since it seems rather arbitrary ...
 But I won't stop anyone from implementing the looping idea :)

As discussed on IRC, I've replaced the standard test with a verbose 
one. We'll ask Lucas for test rebuilds after the upload and see what 
happens.

-- 
dam


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-21 Thread Salvatore Bonaccorso
Hey

On Fri, Dec 11, 2009 at 01:18:10PM +0100, Lucas Nussbaum wrote:
 Source: libbsd-resource-perl
 Version: 1.2903-1
 Severity: serious
 User: debian...@lists.debian.org
 Usertags: qa-ftbfs-20091210 qa-ftbfs
 Justification: FTBFS on amd64
 
 Hi,
 
 During a rebuild of all packages in sid, your package failed to build on
 amd64.
 
 Relevant part:
  make[1]: Entering directory 
  `/build/user-libbsd-resource-perl_1.2903-1-amd64-i6oXlK/libbsd-resource-perl-1.2903'
  PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e 
  test_harness(0, 'blib/lib', 'blib/arch') t/*.t
  t/getpriority.t ... ok
  t/getrlimit.t . ok
  t/getrusage.t . 
  Failed 1/2 subtests 
  t/pod-coverage.t .. ok
  t/pod.t ... ok
  t/setpriority.t ... ok
  t/setrlimit.t . ok
  Failed 1/8 test programs. 1/41 subtests failed.
  t/times.t . ok
  
  Test Summary Report
  ---
  t/getrusage.t   (Wstat: 0 Tests: 2 Failed: 1)
Failed test:  1
  Files=8, Tests=41, 19 wallclock secs ( 0.04 usr  0.02 sys + 10.84 cusr  
  0.05 csys = 10.95 CPU)
  Result: FAIL
  make[1]: *** [test_dynamic] Error 255

I tried to rebuild libbsd-resource-perl, and t/getrusage.t test does
not fail here. Could someone of the Debian Perl Group try to reproduce
this too?

Bests
Salvatore


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-21 Thread Damyan Ivanov
-=| Salvatore Bonaccorso, Mon, Dec 21, 2009 at 12:55:00PM +0100 |=-
   Test Summary Report
   ---
   t/getrusage.t   (Wstat: 0 Tests: 2 Failed: 1)
 Failed test:  1
 
 I tried to rebuild libbsd-resource-perl, and t/getrusage.t test does
 not fail here. Could someone of the Debian Perl Group try to reproduce
 this too?

Builds here (amd64 cowbuilder).

The failing test file has two tests. Both check whether some resource 
consumption is approximately the same as what times() reports. There 
is a tolerance (20% for user time and 40% for system time) and the 
tests fail if the measured resource consumprion diverges by aa great 
factor.

The divergence varries, although I wasn't able to make the test fail, 
no mater how much I loaded the CPU.

Maybe this gives some clues.

-- 
dam


signature.asc
Description: Digital signature


Bug#560643: libbsd-resource-perl: FTBFS: tests failed

2009-12-11 Thread Lucas Nussbaum
Source: libbsd-resource-perl
Version: 1.2903-1
Severity: serious
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20091210 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
 make[1]: Entering directory 
 `/build/user-libbsd-resource-perl_1.2903-1-amd64-i6oXlK/libbsd-resource-perl-1.2903'
 PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e 
 test_harness(0, 'blib/lib', 'blib/arch') t/*.t
 t/getpriority.t ... ok
 t/getrlimit.t . ok
 t/getrusage.t . 
 Failed 1/2 subtests 
 t/pod-coverage.t .. ok
 t/pod.t ... ok
 t/setpriority.t ... ok
 t/setrlimit.t . ok
 Failed 1/8 test programs. 1/41 subtests failed.
 t/times.t . ok
 
 Test Summary Report
 ---
 t/getrusage.t   (Wstat: 0 Tests: 2 Failed: 1)
   Failed test:  1
 Files=8, Tests=41, 19 wallclock secs ( 0.04 usr  0.02 sys + 10.84 cusr  0.05 
 csys = 10.95 CPU)
 Result: FAIL
 make[1]: *** [test_dynamic] Error 255

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2009/12/10/libbsd-resource-perl_1.2903-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org