1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip running a DRb test on MinGW

It hangs even after a retry
https://github.com/ruby/ruby/runs/7966439530?check_suite_focus=true

We contacted GitHub Suppport about this before, and we concluded that
the problem is on our end. Unfortunately we don't have a bandwidth to
fix this MinGW problem, so until we get to work on it, this should be
just skipped to avoid a sporadic CI timeout.
This commit is contained in:
Takashi Kokubun 2022-08-25 11:36:04 -07:00
parent af9fa16c96
commit 881bc2a176
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
3 changed files with 6 additions and 1 deletions

View file

@ -90,6 +90,7 @@ module DRbBase
end end
def teardown def teardown
return if @omitted
@ext.stop_service if defined?(@ext) && @ext @ext.stop_service if defined?(@ext) && @ext
if defined?(@service_name) && @service_name if defined?(@service_name) && @service_name
@drb_service.manager.unregist(@service_name) @drb_service.manager.unregist(@service_name)

View file

@ -41,6 +41,10 @@ end
class TestDRbSSLCore < Test::Unit::TestCase class TestDRbSSLCore < Test::Unit::TestCase
include DRbCore include DRbCore
def setup def setup
if RUBY_PLATFORM.match?(/mingw/)
@omitted = true
omit 'This test seems to randomly hang on GitHub Actions MinGW'
end
@drb_service = DRbSSLService.new @drb_service = DRbSSLService.new
super super
setup_service 'ut_drb_drbssl.rb' setup_service 'ut_drb_drbssl.rb'

View file

@ -498,7 +498,7 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
def setup def setup
if RUBY_PLATFORM.match?(/mingw/) if RUBY_PLATFORM.match?(/mingw/)
@omitted = true @omitted = true
omit 'This test seems to randomly hang on GitHub Actions MinGW UCRT64' omit 'This test seems to randomly hang on GitHub Actions MinGW'
end end
super super
ThreadGroup.new.add(Thread.current) ThreadGroup.new.add(Thread.current)