Issue #11543 has been reported by Vit Ondruch.

----------------------------------------
Bug #11543: Run Rinda/DRb tests on localhost
https://bugs.ruby-lang.org/issues/11543

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby -v: ruby 2.3.0dev (2015-09-18 trunk 51895) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
I am trying to setup Ruby CI workers using Fedora's Jenkins instance [1, 2]. Unfortunately, the Rinda/DRb tests typically timeouts [3] with failures such as:

~~~
  3) Error:
DRbTests::TestDRbAry#test_02_collect:
DRb::DRbConnError: druby://jenkins-slave-f22.fedorainfracloud.org:60570 - #<Errno::ETIMEDOUT: Connection timed out - connect(2) for "jenkins-slave-f22.fedorainfracloud.org" port 60570>
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:744:in `rescue in block in open'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:738:in `block in open'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:737:in `each'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:737:in `open'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1247:in `initialize'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1227:in `new'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1227:in `open'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1140:in `block in method_missing'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1159:in `with_friend'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1139:in `method_missing'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/invokemethod.rb:10:in `block_yield'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/invokemethod.rb:17:in `block in perform_with_block'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/invokemethod.rb:14:in `collect'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/invokemethod.rb:14:in `perform_with_block'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1581:in `perform'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1656:in `block (2 levels) in main_loop'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1652:in `loop'
    (druby://localhost:39217) /chkbuild/tmp/build/20150918T070333Z/ruby/lib/drb/drb.rb:1652:in `block in main_loop'
    /chkbuild/tmp/build/20150918T070333Z/ruby/test/drb/drbtest.rb:301:in `test_02_collect'
~~~

Apparently, this is because the Jenkins builder have all ports except 22 and 80 blocked. The fix is to use localhost by default for tests of Rinda/DRb. I submitted the PR [4] fixing this issue. I'd appreciate if it can be merged. It would enable CI for latest Fedoras and possibly RHEL.



[1] http://jenkins.fedorainfracloud.org/job/ruby/
[2] http://jenkins.fedorainfracloud.org/job/ruby-chkbuild/configure
[3] http://jenkins.fedorainfracloud.org/job/ruby-chkbuild/label=F22/ws/tmp/build/20150918T070333Z/log/*view*/
[4] https://github.com/ruby/ruby/pull/1027



-- 
https://bugs.ruby-lang.org/