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

ruby-changes:53689

From: k0kubun <ko1@a...>
Date: Wed, 21 Nov 2018 20:33:30 +0900 (JST)
Subject: [ruby-changes:53689] k0kubun:r65905 (trunk): test_gem_remote_fetcher.rb: give up testing MJIT here

k0kubun	2018-11-21 20:33:25 +0900 (Wed, 21 Nov 2018)

  New Revision: 65905

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65905

  Log:
    test_gem_remote_fetcher.rb: give up testing MJIT here
    
    because we can't configure timeout for remote fetcher.
    
    We've sometimes hit timeout.
    https://app.wercker.com/ruby/ruby/runs/mjit-test2/5bf5213c183106002857d355?step=5bf530de63e94600071b0785
    https://app.wercker.com/ruby/ruby/runs/mjit-test2/5be3d719567ae90007681ed6?step=5be43b3887436a0006d00d21

  Modified files:
    trunk/test/rubygems/test_gem_remote_fetcher.rb
Index: test/rubygems/test_gem_remote_fetcher.rb
===================================================================
--- test/rubygems/test_gem_remote_fetcher.rb	(revision 65904)
+++ test/rubygems/test_gem_remote_fetcher.rb	(revision 65905)
@@ -124,9 +124,13 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L124
     Gem::RemoteFetcher.fetcher = nil
     @stub_ui = Gem::MockGemUi.new
     @fetcher = Gem::RemoteFetcher.fetcher
+
+    RubyVM::MJIT.pause(wait: false) if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # sometimes timeout is too short for --jit-wait, but remote_fetcher can't configure timeout
   end
 
   def teardown
+    RubyVM::MJIT.resume if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # enable testing again
+
     @fetcher.close_all
     self.class.stop_servers
     super

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

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