[DRE-maint] Bug#816640: ruby-eventmachine: FTBFS under pbuilder with USENETWORK=no: TestResolver fails (no implicit conversion of nil into String)

Daniel Schepler dschepler at gmail.com
Thu Mar 3 16:13:45 UTC 2016


Source: ruby-eventmachine
Version: 1.0.7-3
Severity: normal

From the build log at reproducible.debian.net, which I can reproduce locally:

...
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.2 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.2.0:/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-eventmachine/usr/share/rubygems-integration/2.2.0:/var/lib/gems/2.2.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.2.0:/usr/share/rubygems-integration/2.2.0:/usr/share/rubygems-integration/2.2:/usr/share/rubygems-integration/all ruby2.2 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.2 -I"tests"  "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "tests/test_attach.rb" "tests/test_basic.rb" "tests/test_channel.rb" "tests/test_completion.rb" "tests/test_connection_count.rb" "tests/test_connection_write.rb" "tests/test_defer.rb" "tests/test_deferrable.rb" "tests/test_epoll.rb" "tests/test_error_handler.rb" "tests/test_exc.rb" "tests/test_file_watch.rb" "tests/test_futures.rb" "tests/test_handler_check.rb" "tests/test_hc.rb" "tests/test_httpclient.rb" "tests/test_httpclient2.rb" "tests/test_inactivity_timeout.rb" "tests/test_iterator.rb" "tests/test_kb.rb" "tests/test_line_protocol.rb" "tests/test_ltp.rb" "tests/test_ltp2.rb" "tests/test_many_fds.rb" "tests/test_next_tick.rb" "tests/test_object_protocol.rb" "tests/test_pause.rb" "tests/test_pending_connect_timeout.rb" "tests/test_pool.rb" "tests/test_process_watch.rb" "tests/test_processes.rb" "tests/test_proxy_connection.rb" "tests/test_pure.rb" "tests/test_queue.rb" "tests/test_resolver.rb" "tests/test_running.rb" "tests/test_sasl.rb" "tests/test_send_file.rb" "tests/test_servers.rb" "tests/test_shutdown_hooks.rb" "tests/test_smtpclient.rb" "tests/test_smtpserver.rb" "tests/test_spawn.rb" "tests/test_ssl_args.rb" "tests/test_ssl_methods.rb" "tests/test_ssl_verify.rb" "tests/test_stomp.rb" "tests/test_system.rb" "tests/test_threaded_resource.rb" "tests/test_tick_loop.rb" "tests/test_timers.rb" "tests/test_ud.rb" "tests/test_unbind_reason.rb" -v
Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
Started
TestAttach: 
  test_attach:						.: (0.122920)
  test_attach_pipe:					.: (0.000591)
  test_attach_server:					.: (0.102335)
  test_read_write_pipe:					.: (0.001106)
  test_set_readable:					.: (0.001425)
TestBasic: 
  test_bubble_errors_from_initialize:			.: (0.002619)
  test_bubble_errors_from_post_init:			.: (0.008129)
  test_byte_range_send:					.: (0.002100)
  test_connection_class_cache:				.: (0.005756)
  test_em:						.: (0.001659)
  test_error_handler_idempotent:			.: (0.001930)
  test_fork_safe:					.: (0.010795)
  test_reactor_thread?:					.: (0.005200)
  test_run_block:					.: (0.001303)
  test_schedule_close:					.: (0.001699)
  test_schedule_from_thread:				.: (0.015753)
  test_schedule_on_reactor_thread:			.: (0.000453)
  test_server:						.: (0.000691)
  test_set_heartbeat_interval:				.: (0.000742)
  test_timer:						.: (0.205651)
  test_unbind_error:					.: (0.001696)
TestCompletion: 
  test_callback:					.: (0.000589)
  test_cleared_completions:				.: (0.000324)
  test_completed:					.: (0.000215)
  test_completions:					.: (0.004456)
  test_does_not_enqueue_when_completed:			.: (0.000319)
  test_errback:						.: (0.000232)
  test_fail:						.: (0.000225)
  test_late_defined_callbacks:				.: (0.000266)
  test_latent_completion:				.: (0.000306)
  test_recursive_callbacks:				.: (0.000252)
  test_skip_completed_callbacks:			.: (0.000340)
  test_state:						.: (0.000107)
  test_stateback:					.: (0.000242)
  test_succeed:						.: (0.000243)
  test_timeout:						.: (0.000320)
  test_timeout_gets_cancelled:				.: (0.000250)
TestConnectionCount: 
  test_idle_connection_count:				.: (0.000562)
  test_num_close_scheduled:				.: (0.000523)
  test_with_some_connections:				.: (0.000668)
TestConnectionWrite: 
  test_with_naughty_callback:				.: (0.016159)
TestDefer: 
  test_defers:						.: (0.062487)
TestDeferrable: 
  test_timeout_with_args:				.: (0.003105)
  test_timeout_without_args:				.: (0.000227)
TestEMChannel: 
  test_channel_pop:					.: (0.000580)
  test_channel_reactor_thread_callback:			.: (0.019582)
  test_channel_reactor_thread_push:			.: (0.008214)
  test_channel_subscribe:				.: (0.000181)
  test_channel_unsubscribe:				.: (0.000171)
TestEMQueue: 
  test_num_waiting:					.: (0.000405)
  test_queue_pop:					.: (0.000207)
  test_queue_push:					.: (0.000208)
  test_queue_reactor_thread:				.: (0.041431)
TestEmTickLoop: 
  test_em_tick_loop:					.: (0.000553)
  test_immediate_stops:					.: (0.000166)
  test_start_twice:					.: (0.000327)
  test_stop:						.: (0.000316)
  test_stopped:						.: (0.000114)
  test_tick_loop_on_stop:				.: (0.000185)
TestEpoll: 
  test_attach_detach:					.: (0.018294)
  test_datagrams:					.: (0.000710)
  test_rlimit:						.: (0.000327)
TestErrorHandler: 
  test_error_handler:					.: (0.000462)
  test_without_error_handler:				.: (0.000881)
TestFileWatch: 
  test_events:						.: (0.030175)
TestFutures: 
  test_delayed_callbacks:				.: (0.000331)
  test_double_calls:					.: (0.000148)
  test_future:						.: (0.000149)
  test_future_1:					.: (0.000220)
  test_future_2:					.: (0.000138)
  test_future_3:					.: (0.000128)
  test_recursive_callbacks:				.: (0.000265)
  test_syntactic_sugar:					.: (0.000096)
  test_timeout:						.: (0.013670)
TestHandlerCheck: 
  test_with_correct_class:				.: (0.000500)
  test_with_incorrect_class:				.: (0.000327)
  test_with_module:					.: (0.000299)
TestHeaderAndContentProtocol: 
  test_content:						.: (0.017609)
  test_interpret_headers:				.: (0.013333)
  test_no_content:					.: (0.011046)
  test_several_requests:				.: (0.015209)
TestHttpClient: 
  test_http_chunked_encoding_content:			HttpClient is deprecated and will be removed. EM-Http-Request should be used instead.
.: (0.050208)
  test_http_empty_content:				.: (0.001079)
  test_post:						.: (0.005338)
TestHttpClient2: 
  test_authheader:					.: (0.018684)
  test_bad_port:					.: (0.000414)
  test_bad_server:					.: (0.000751)
  test_connect:						.: (0.000525)
TestInactivityTimeout: 
  test_default:						.: (0.000723)
  test_for_real:					.: (0.038915)
  test_set_and_get:					.: (0.000333)
TestIterator: 
  test_changing_concurrency_affects_active_iteration:	.: (9.031503)
  test_concurrency_bigger_than_list_size:		.: (1.003156)
  test_concurrency_is_0:				.: (0.000973)
  test_default_concurrency:				.: (10.043504)
  test_inject:						.: (0.084954)
  test_map:						.: (0.609590)
TestKeyboardEvents: 
  test_kb:						O
===============================================================================
omitted. [test_kb(TestKeyboardEvents)]
/build/ruby-eventmachine-1.0.7/tests/test_kb.rb:21:in `test_kb'
===============================================================================
: (0.016069)
TestLineAndTextProtocol: 
  test_binary_text:					.: (0.103931)
  test_lines_and_text:					.: (0.103577)
  test_overlength_lines:				.: (0.102033)
  test_simple_lines:					.: (0.101739)
TestLineProtocol: 
  test_simple_lines:					.: (0.000619)
  test_simple_split_line:				.: (0.000245)
TestLineText2: 
  test_basic:						.: (0.000441)
  test_binary:						.: (0.000554)
  test_binary_pairs:					.: (0.000325)
  test_binary_tail:					.: (0.024873)
  test_change_delimiter:				.: (0.000381)
  test_multichar:					.: (0.000484)
  test_receive_end_of_binary_data:			.: (0.033463)
  test_throw_back:					.: (0.000891)
  test_unsized_binary:					.: (0.049127)
TestManyFDs: 
  test_connection_class_cache:				.: (0.279918)
TestNextTick: 
  test_cleanup_after_stop:				.: (0.000924)
  test_pre_run_queue:					.: (0.000164)
  test_run_run:						.: (0.000166)
  test_run_run_2:					.: (0.000142)
  test_run_run_3:					.: (0.000164)
  test_schedule_from_thread:				.: (0.023354)
  test_schedule_on_reactor_thread:			.: (0.000211)
  test_tick_arg:					.: (0.000181)
  test_tick_block:					.: (0.000159)
TestObjectProtocol: 
  test_send_receive:					.: (0.002394)
TestPause: 
  test_pause_in_receive_data:				.: (0.502884)
  test_pause_resume:					.: (0.103610)
TestPendingConnectTimeout: 
  test_default:						.: (0.000556)
  test_set_and_get:					.: (0.000255)
TestPool: 
  test_catches_successful_deferrables:			.: (0.000581)
  test_contents:					.: (0.000201)
  test_contents_when_perform_errors_and_on_error_is_not_set:.: (0.000246)
  test_contents_when_perform_errors_and_on_error_is_set:.: (0.000274)
  test_exceptions_in_the_work_block_bubble_up_raise_and_fail_the_resource:.: (0.000568)
  test_num_waiting:					.: (0.000591)
  test_prunes_locked_and_removed_resources:		.: (0.000228)
  test_removed_list_does_not_leak_on_errors:		.: (0.000203)
  test_reques_resources_on_error:			.: (0.000319)
  test_supports_custom_error_handler:			.: (0.000266)
  test_supports_more_work_than_resources:		.: (0.000283)
TestProcesses: 
  test_deferrable_child_process:			.: (0.030304)
  test_em_popen_pause_resume:				.: (0.523900)
  test_em_system:					.: (0.027833)
  test_em_system_cmd_arguments:				.: (0.027950)
  test_em_system_pid:					.: (0.019745)
  test_em_system_spaced_arguments:			.: (0.335936)
  test_em_system_with_proc:				.: (0.023811)
  test_em_system_with_two_procs:			.: (0.052007)
TestProxyConnection: 
  test_early_close:					.: (0.001653)
  test_partial_proxy_connection:			.: (0.006376)
  test_proxied_bytes:					.: (0.007869)
  test_proxy_connection:				.: (0.000963)
TestPure: 
  test_connaccepted:					.: (0.006505)
  test_connrefused:					.: (0.011500)
  test_exception_handling_releases_resources:		.: (0.001618)
  test_reactor_running:					.: (0.000394)
TestResolver: 
  test_failure_timer_cleanup:				E
===============================================================================
Error: test_failure_timer_cleanup(TestResolver): TypeError: no implicit conversion of nil into String
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/connection.rb:518:in `send_datagram'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/connection.rb:518:in `send_datagram'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/resolver.rb:105:in `send_packet'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/resolver.rb:185:in `send'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/resolver.rb:157:in `tick'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/em/resolver.rb:149:in `block in initialize'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:968:in `call'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:968:in `block in run_deferred_callbacks'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:965:in `times'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:965:in `run_deferred_callbacks'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in `run_machine'
/build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine/usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in `run'
/build/ruby-eventmachine-1.0.7/tests/test_resolver.rb:71:in `test_failure_timer_cleanup'
     68:   end
     69: 
     70:   def test_failure_timer_cleanup
  => 71:     EM.run {
     72:       d = EM::DNS::Resolver.resolve "asdfasdf"
     73:       d.callback { assert false }
     74:       d.errback {
===============================================================================
: (0.017785)
  test_garbage:						.: (0.000839)
  test_localhost:					.: (0.000520)
TestRunning: 
  test_running:						.: (0.000429)
TestSASL: 
  test_sasl:						.: (0.014076)
TestSSLMethods: 
  test_ssl_methods:					.: (0.020648)
TestSendFile: 
  test_send_file:					.: (0.016126)
  test_send_large_file:					.: (0.017689)
  test_stream_bad_file:					.: (0.008453)
  test_stream_chunked_file_data:			.: (0.027438)
  test_stream_file_data:				.: (0.023043)
  test_stream_large_chunked_file_data:			.: (0.033810)
  test_stream_large_file_data:				.: (0.030913)
TestServers: 
  test_stop_server:					.: (0.219806)
TestShutdownHooks: 
  test_hook_order:					.: (0.000388)
  test_shutdown_hooks:					.: (0.000170)
TestSmtpClient: 
  test_a:						.: (0.094262)
  test_content:						.: (0.000484)
TestSmtpServer: 
  test_mail:						.: (0.001844)
TestSomeExceptions: 
  test_a:						.: (0.000379)
  test_b:						.: (0.000168)
TestSpawn: 
  test_another_fibonacci:				.: (0.016758)
  test_block_scope:					.: (0.000330)
  test_fibonacci:					.: (0.000425)
  test_fibonacci_chain:					.: (0.000779)
  test_multiparms:					.: (0.000181)
  test_parms:						.: (0.000216)
  test_ping_pong:					.: (0.000299)
  test_race:						.: (0.000196)
  test_resume:						.: (0.000162)
  test_run:						.: (0.000187)
  test_self_notify:					.: (0.000249)
  test_stop:						.: (0.014247)
  test_yield:						.: (0.000267)
  test_yield_and_notify:				.: (0.000272)
TestSslArgs: 
  test_tls_params_file_does_exist:			.: (0.000719)
  test_tls_params_file_doesnt_exist:			.: (0.000487)
TestSslVerify: 
  test_accept_server:					.: (0.089385)
  test_deny_server:					.: (0.087841)
TestStomp: 
  test_content_length_in_bytes:				.: (0.016080)
TestSystem: 
  test_system:						.: (0.038536)
  test_system_with_string:				.: (0.037920)
TestThreadedResource: 
  test_dispatch_failure:				.: (0.005001)
  test_dispatch_threading:				.: (0.007930)
  test_shutdown:					.: (0.017986)
TestTimers: 
  test_add_periodic_timer:				.: (0.054048)
  test_add_periodic_timer_cancel:			.: (0.023729)
  test_periodic_timer:					.: (0.047922)
  test_periodic_timer_cancel:				.: (0.039796)
  test_periodic_timer_self_cancel:			.: (0.000647)
  test_timer_cancel:					.: (0.027455)
  test_timer_change_max_outstanding:			.: (0.001926)
  test_timer_with_block:				.: (0.000266)
  test_timer_with_proc:					.: (0.000146)
TestUnbindReason: 
  test_connect_refused:					.: (0.000616)
  test_optional_argument:				.: (0.012329)
TestUserDefinedEvents: 
  test_a:						.: (0.000279)

Finished in 25.327507069 seconds.
------
212 tests, 1439 assertions, 0 failures, 1 errors, 0 pendings, 1 omissions, 0 notifications
99.5261% passed
------
8.37 tests/s, 56.82 assertions/s
rake aborted!
Command failed with status (1): [ruby -I"tests"  "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "tests/test_attach.rb" "tests/test_basic.rb" "tests/test_channel.rb" "tests/test_completion.rb" "tests/test_connection_count.rb" "tests/test_connection_write.rb" "tests/test_defer.rb" "tests/test_deferrable.rb" "tests/test_epoll.rb" "tests/test_error_handler.rb" "tests/test_exc.rb" "tests/test_file_watch.rb" "tests/test_futures.rb" "tests/test_handler_check.rb" "tests/test_hc.rb" "tests/test_httpclient.rb" "tests/test_httpclient2.rb" "tests/test_inactivity_timeout.rb" "tests/test_iterator.rb" "tests/test_kb.rb" "tests/test_line_protocol.rb" "tests/test_ltp.rb" "tests/test_ltp2.rb" "tests/test_many_fds.rb" "tests/test_next_tick.rb" "tests/test_object_protocol.rb" "tests/test_pause.rb" "tests/test_pending_connect_timeout.rb" "tests/test_pool.rb" "tests/test_process_watch.rb" "tests/test_processes.rb" "tests/test_proxy_connection.rb" "tests/test_pure.rb" "tests/test_queue.rb" "tests/test_resolver.rb" "tests/test_running.rb" "tests/test_sasl.rb" "tests/test_send_file.rb" "tests/test_servers.rb" "tests/test_shutdown_hooks.rb" "tests/test_smtpclient.rb" "tests/test_smtpserver.rb" "tests/test_spawn.rb" "tests/test_ssl_args.rb" "tests/test_ssl_methods.rb" "tests/test_ssl_verify.rb" "tests/test_stomp.rb" "tests/test_system.rb" "tests/test_threaded_resource.rb" "tests/test_tick_loop.rb" "tests/test_timers.rb" "tests/test_ud.rb" "tests/test_unbind_reason.rb" -v]

Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.2" failed. Exiting.
dh_auto_install: dh_ruby --install /build/ruby-eventmachine-1.0.7/debian/ruby-eventmachine returned exit code 1
debian/rules:12: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/build/ruby-eventmachine-1.0.7'
debian/rules:6: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

(This failure does go away if I temporarily change the configuration to set
USENETWORK=yes; however, I'd rather not have to do so.)
-- 
Daniel Schepler


More information about the Pkg-ruby-extras-maintainers mailing list