AnyEvent-Task icon indicating copy to clipboard operation
AnyEvent-Task copied to clipboard

Occasional test failures

Open eserte opened this issue 7 years ago • 1 comments

On some of my smoker systems I see the test suite failing:

Killing hung worker (6042)                                                                                                                                                                                                                                                
# Hung worker error: timed out after 2 seconds at /home/cpansand/.cpan/build/2018120418/AnyEvent-Task-0.805-0/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.                                                                                                         
                                                                                                                                                                                                                                                                          
#   Failed test 'no timed out err'                                                                                                                                                                                                                                        
#   at t/timeout-hung-worker.t line 47.                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                          
#   Failed test 'hung worker err'                                                                                                                                                                                                                                         
#   at t/timeout-hung-worker.t line 48.                                                                                                                                                                                                                                   
# Looks like you failed 2 tests of 3.                                                                                                                                                                                                                                     
t/timeout-hung-worker.t ..........                                                                                                                                                                                                                                        
Dubious, test returned 2 (wstat 512, 0x200)                                                                                                                                                                                                                               
Failed 2/3 subtests                                                                                                                                                                                                                                                       
...
#   Failed test 'no timed out err'                                                                                                                                                                                                                                        
#   at t/worker-_exits.t line 49.                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                          
#   Failed test 'sudden death err'                                                                                                                                                                                                                                        
#   at t/worker-_exits.t line 50.                                                                                                                                                                                                                                         
#                   'timed out after 1 seconds at /home/cpansand/.cpan/build/2018120418/AnyEvent-Task-0.805-0/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.                                                                                                         
# '
#     doesn't match '(?^u:worker connection suddenly died)'

#   Failed test 'got same fatal error after calling checkout again'
#   at t/worker-_exits.t line 57.
#                   'timed out after 1 seconds at /home/cpansand/.cpan/build/2018120418/AnyEvent-Task-0.805-0/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.
# '
#     doesn't match '(?^u:worker connection suddenly died)'
# Looks like you failed 3 tests of 4.
t/worker-_exits.t ................ 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/4 subtests 

eserte avatar Dec 04 '18 20:12 eserte

We have the same issue on FreeBSD (tested on FreeBSD 15 amd64) plus multiple warnings.

===>  Testing for p5-AnyEvent-Task-0.805
PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/args.t ......................... ok
t/dont_refork_after_error.t ...... 1/7 Warning: unable to close filehandle properly: Bad file descriptor during global destruction.
t/dont_refork_after_error.t ...... ok
t/error-clears-checkout-queue.t .. ok
t/logger.t ....................... ok
t/manual-request-abort.t ......... ok
t/max_checkouts.t ................ ok
t/sequential.t ................... 1/7 Warning: unable to close filehandle properly: Bad file descriptor during global destruction.
t/sequential.t ................... ok
t/setup-errors.t ................. ok
t/setup.t ........................ 1/2 Warning: unable to close filehandle properly: Bad file descriptor during global destruction.
t/setup.t ........................ ok
t/surge.t ........................ ok
t/timeout-connect.t .............. ok
t/timeout-hung-worker.t .......... Killing hung worker (32619)
# Hung worker error: timed out after 2 seconds at /wrkdirs/usr/ports/devel/p5-AnyEvent-Task/work/AnyEvent-Task-0.805/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.
t/timeout-hung-worker.t .......... 1/3
#   Failed test 'no timed out err'
#   at t/timeout-hung-worker.t line 47.

#   Failed test 'hung worker err'
#   at t/timeout-hung-worker.t line 48.
# Looks like you failed 2 tests of 3.
t/timeout-hung-worker.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests
t/timeout-in-progress.t .......... ok
t/timeout-log-defer.t ............ ok
t/worker-_exits.t ................ 1/4
#   Failed test 'no timed out err'
#   at t/worker-_exits.t line 49.

#   Failed test 'sudden death err'
#   at t/worker-_exits.t line 50.
#                   'timed out after 1 seconds at /wrkdirs/usr/ports/devel/p5-AnyEvent-Task/work/AnyEvent-Task-0.805/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.
# '
#     doesn't match '(?^u:worker connection suddenly died)'
t/worker-_exits.t ................ 4/4
#   Failed test 'got same fatal error after calling checkout again'
#   at t/worker-_exits.t line 57.
#                   'timed out after 1 seconds at /wrkdirs/usr/ports/devel/p5-AnyEvent-Task/work/AnyEvent-Task-0.805/blib/lib/AnyEvent/Task/Client/Checkout.pm line 127.
# '
#     doesn't match '(?^u:worker connection suddenly died)'
# Looks like you failed 3 tests of 4.
t/worker-_exits.t ................ Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/4 subtests

Test Summary Report
-------------------
t/timeout-hung-worker.t        (Wstat: 512 (exited 2) Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 2
t/worker-_exits.t              (Wstat: 768 (exited 3) Tests: 4 Failed: 3)
  Failed tests:  2-4
  Non-zero exit status: 3
Files=15, Tests=175, 10 wallclock secs ( 0.08 usr  0.01 sys +  1.48 cusr  0.21 csys =  1.77 CPU)
Result: FAIL
Failed 2/15 test programs. 5/175 subtests failed.
*** Error code 3

rosorio avatar Apr 26 '25 16:04 rosorio