Project

General

Profile

Bug #11543

Run Rinda/DRb tests on localhost

Added by vo.x (Vit Ondruch) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby -v: ruby 2.3.0dev (2015-09-18 trunk 51895) [x86_64-linux]
[ruby-core:<unknown>]

Description

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

Associated revisions

Revision edb7a6e2
Added by nagachika (Tomoyuki Chikanaga) about 4 years ago

merge revision(s) 51916: [Backport #11543]

    * test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
      patch by voxik.

    * test/rinda/test_rinda.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 52305
Added by nagachika (Tomoyuki Chikanaga) about 4 years ago

merge revision(s) 51916: [Backport #11543]

* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
  patch by voxik.

* test/rinda/test_rinda.rb: ditto

Revision 694463ba
Added by usa (Usaku NAKAMURA) about 4 years ago

merge revision(s) 51916: [Backport #11543]

    * test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
      patch by voxik.

    * test/rinda/test_rinda.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 52353
Added by usa (Usaku NAKAMURA) about 4 years ago

merge revision(s) 51916: [Backport #11543]

* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
  patch by voxik.

* test/rinda/test_rinda.rb: ditto

History

#1

Updated by vo.x (Vit Ondruch) about 4 years ago

  • Status changed from Open to Closed
  • Assignee set to seki (Masatoshi Seki)

Resolved by r51916.

Updated by nagachika (Tomoyuki Chikanaga) about 4 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE

Backported into ruby_2_2 branch at r52305.

Updated by usa (Usaku NAKAMURA) about 4 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE

ruby_2_1 r52353 merged revision(s) 51916.

Also available in: Atom PDF