[前][次][番号順一覧][スレッド一覧]

ruby-changes:73063

From: Takashi <ko1@a...>
Date: Fri, 26 Aug 2022 03:38:18 +0900 (JST)
Subject: [ruby-changes:73063] 881bc2a176 (master): Skip running a DRb test on MinGW

https://git.ruby-lang.org/ruby.git/commit/?id=881bc2a176

From 881bc2a1765e7c19ab389c53841adc5ac329f1aa Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 25 Aug 2022 11:36:04 -0700
Subject: 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.
---
 test/drb/drbtest.rb      | 1 +
 test/drb/test_drbssl.rb  | 4 ++++
 test/rinda/test_rinda.rb | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index 3c33aedb6f..56d73eb509 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -90,6 +90,7 @@ module DRbBase https://github.com/ruby/ruby/blob/trunk/test/drb/drbtest.rb#L90
   end
 
   def teardown
+    return if @omitted
     @ext.stop_service if defined?(@ext) && @ext
     if defined?(@service_name) && @service_name
       @drb_service.manager.unregist(@service_name)
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index 0254c7ab50..4369c6614b 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -41,6 +41,10 @@ end https://github.com/ruby/ruby/blob/trunk/test/drb/test_drbssl.rb#L41
 class TestDRbSSLCore < Test::Unit::TestCase
   include DRbCore
   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
     super
     setup_service 'ut_drb_drbssl.rb'
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index dbe414b783..74d8d363b4 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -498,7 +498,7 @@ class TupleSpaceProxyTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L498
   def setup
     if RUBY_PLATFORM.match?(/mingw/)
       @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
     super
     ThreadGroup.new.add(Thread.current)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]