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

ruby-changes:53487

From: k0kubun <ko1@a...>
Date: Tue, 13 Nov 2018 14:46:46 +0900 (JST)
Subject: [ruby-changes:53487] k0kubun:r65703 (trunk): appveyor.yml: run memory-exchausting test separately

k0kubun	2018-11-13 14:46:41 +0900 (Tue, 13 Nov 2018)

  New Revision: 65703

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

  Log:
    appveyor.yml: run memory-exchausting test separately
    
    r65690 had no impact
    https://ci.appveyor.com/project/ruby/ruby/builds/20253561/job/p5u235m8xx85t9o5.
    Gave up to solve the issue inside the test.

  Modified files:
    trunk/appveyor.yml
    trunk/test/ruby/test_array.rb
Index: test/ruby/test_array.rb
===================================================================
--- test/ruby/test_array.rb	(revision 65702)
+++ test/ruby/test_array.rb	(revision 65703)
@@ -2943,7 +2943,6 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L2943
     Bug11235 = '[ruby-dev:49043] [Bug #11235]'
 
     def test_push_over_ary_max
-      GC.start # avoid NoMemoryError on the next line
       assert_separately(['-', ARY_MAX.to_s, Bug11235], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 30)
       begin;
         a = Array.new(ARGV[0].to_i)
Index: appveyor.yml
===================================================================
--- appveyor.yml	(revision 65702)
+++ appveyor.yml	(revision 65703)
@@ -93,9 +93,9 @@ for: https://github.com/ruby/ruby/blob/trunk/appveyor.yml#L93
     - set /a JOBS=%NUMBER_OF_PROCESSORS%
     - nmake -l "TESTOPTS=-v -q" btest
     - nmake -l "TESTOPTS=-v -q" test-basic
-    - nmake -l "TESTOPTS=-q -j%JOBS% --subprocess-timeout-scale=3.0 --exclude win32ole --exclude test_syntax --exclude test_open-uri --exclude test_bundled_ca" test-all
-    # separately execute tests that may crash worker without -j.
-    - nmake -l "TESTOPTS=-v --subprocess-timeout-scale=3.0" test-all TESTS="../test/win32ole ../test/ruby/test_syntax.rb ../test/open-uri/test_open-uri.rb ../test/rubygems/test_bundled_ca.rb"
+    - nmake -l "TESTOPTS=-q -j%JOBS% --subprocess-timeout-scale=3.0 --exclude win32ole --exclude test_syntax --exclude test_open-uri --exclude test_bundled_ca --exclude ruby/test_array" test-all
+    # separately execute tests without -j which may exhaust memory (ruby/test_array.rb) or crash worker (others) with -j.
+    - nmake -l "TESTOPTS=-v --subprocess-timeout-scale=3.0" test-all TESTS="../test/ruby/test_array.rb ../test/win32ole ../test/ruby/test_syntax.rb ../test/open-uri/test_open-uri.rb ../test/rubygems/test_bundled_ca.rb"
     - nmake -l test-spec MSPECOPT=-fs # not using `-j` because sometimes `mspec -j` silently dies on Windows
 -
   matrix:
@@ -136,7 +136,7 @@ for: https://github.com/ruby/ruby/blob/trunk/appveyor.yml#L136
     - mingw32-make DESTDIR=../install install-nodoc
   test_script:
     - mingw32-make test
-    - mingw32-make test-all TESTOPTS="--retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5 -j %JOBS% --exclude win32ole --exclude test_open-uri"
-    # separately execute tests that may crash worker without -j.
-    - mingw32-make test-all TESTOPTS="--retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5" TESTS="../ruby/test/win32ole ../ruby/test/open-uri/test_open-uri.rb"
+    - mingw32-make test-all TESTOPTS="--retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5 -j %JOBS% --exclude ruby/test_array --exclude win32ole --exclude test_open-uri"
+    # separately execute tests without -j which may exhaust memory (ruby/test_array.rb) or crash worker (others) with -j.
+    - mingw32-make test-all TESTOPTS="--retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5" TESTS="../ruby/test/ruby/test_array.rb ../ruby/test/win32ole ../ruby/test/open-uri/test_open-uri.rb"
     - mingw32-make test-spec MSPECOPT=-fs # not using `-j` because sometimes `mspec -j` silently dies on Windows

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

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