<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/tool/lib/test/unit/parallel.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Fix a typo</title>
<updated>2024-08-06T17:34:46+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-08-06T17:34:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2c35a379185fed125bea6c191a18ef2ff91f5075'/>
<id>2c35a379185fed125bea6c191a18ef2ff91f5075</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Dump all-thread backtraces when test parallel worker exceeds time limit</title>
<updated>2024-08-06T12:11:41+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-08-06T11:09:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=062f85e141e4fb806b5d4b6dbf6a8cb1f3ce682d'/>
<id>062f85e141e4fb806b5d4b6dbf6a8cb1f3ce682d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Launchable into CI</title>
<updated>2024-02-23T13:10:01+00:00</updated>
<author>
<name>Naoto Ono</name>
<email>onoto1998@gmail.com</email>
</author>
<published>2024-01-31T07:45:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3371936b6f863ab0aae0ad5a106cad03b377b88e'/>
<id>3371936b6f863ab0aae0ad5a106cad03b377b88e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor the settings of test-all out</title>
<updated>2023-11-15T10:27:10+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2023-11-15T08:52:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5bf75c20a2098e626d0dd65708a35c46039c5310'/>
<id>5bf75c20a2098e626d0dd65708a35c46039c5310</id>
<content type='text'>
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same
settings. However, some settings were copied and pasted, while some were
added only to test/runner.rb.
This changeset creates tool/test/init.rb for all settings of test-unit,
which is loaded not only by test/runner.rb but also
tool/lib/test/unit/parallel.rb.

Background: the GEM_HOME environment variable was removed in
test/runner.rb, which prohibit `require "rake"` (note that rake is a
bundled gem). However the parallel mode didn't refrect this setting,
i.e., `require "rake"` was allowed.
This leads to an inconsistency, which actually affected a test test
defines s test class *only when* `require "rake"` is successful.
(test/rubygems/test_gem_package_task.rb)

https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#step:8:1714
```
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError)

                suites.map! {|r| ::Object.const_get(r[:testcase])}
                                         ^^^^^^^^^^
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same
settings. However, some settings were copied and pasted, while some were
added only to test/runner.rb.
This changeset creates tool/test/init.rb for all settings of test-unit,
which is loaded not only by test/runner.rb but also
tool/lib/test/unit/parallel.rb.

Background: the GEM_HOME environment variable was removed in
test/runner.rb, which prohibit `require "rake"` (note that rake is a
bundled gem). However the parallel mode didn't refrect this setting,
i.e., `require "rake"` was allowed.
This leads to an inconsistency, which actually affected a test test
defines s test class *only when* `require "rake"` is successful.
(test/rubygems/test_gem_package_task.rb)

https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#step:8:1714
```
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError)

                suites.map! {|r| ::Object.const_get(r[:testcase])}
                                         ^^^^^^^^^^
```
</pre>
</div>
</content>
</entry>
<entry>
<title>fix test/rubygems/test_gem_package_task.rb when in -j mode</title>
<updated>2023-02-27T21:34:27+00:00</updated>
<author>
<name>lukeg</name>
<email>luke.gru@gmail.com</email>
</author>
<published>2023-02-26T22:20:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ba55706fb6b98a01f17909bf5830b66aa68f8fc4'/>
<id>ba55706fb6b98a01f17909bf5830b66aa68f8fc4</id>
<content type='text'>
This test skipped sometimes due to failure to load 'rake/packagetask'.
This is due to manipulation of $LOAD_PATH by other rubygems tests. If
rake is loaded before any rubygems tests run, then it works fine.

To reproduce the skipping behavior:
  $ make test-all TESTOPTS="-j6 --test-order=sorted test/rubygems/test_*.rb"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This test skipped sometimes due to failure to load 'rake/packagetask'.
This is due to manipulation of $LOAD_PATH by other rubygems tests. If
rake is loaded before any rubygems tests run, then it works fine.

To reproduce the skipping behavior:
  $ make test-all TESTOPTS="-j6 --test-order=sorted test/rubygems/test_*.rb"
</pre>
</div>
</content>
</entry>
<entry>
<title>Supressing warnings messages like:</title>
<updated>2023-01-18T07:14:00+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-01-18T07:14:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ba45be3c43c65e172a8b9d2d8dbfa369f894e500'/>
<id>ba45be3c43c65e172a8b9d2d8dbfa369f894e500</id>
<content type='text'>
  Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.

  Revert "Clear gem paths for each test"

  This reverts commit 6698b580ddad8cfa8c5c86df9328472820d3ee6a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.

  Revert "Clear gem paths for each test"

  This reverts commit 6698b580ddad8cfa8c5c86df9328472820d3ee6a.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clear gem paths for each test</title>
<updated>2023-01-15T14:57:43+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-14T14:56:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6698b580ddad8cfa8c5c86df9328472820d3ee6a'/>
<id>6698b580ddad8cfa8c5c86df9328472820d3ee6a</id>
<content type='text'>
So that rubygems can find the bundled rake.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So that rubygems can find the bundled rake.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "introduce check code for mysterious EBADF"</title>
<updated>2021-10-26T08:06:57+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-10-26T02:55:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a49c7e4812a3f6d027dac1a574f47f125886935'/>
<id>8a49c7e4812a3f6d027dac1a574f47f125886935</id>
<content type='text'>
This reverts commit 7864efa105921eb3900c843126f2e0db02b9c6ae.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7864efa105921eb3900c843126f2e0db02b9c6ae.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "check other IO#close calls"</title>
<updated>2021-10-26T08:06:57+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-10-26T02:55:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1424f7f7e0903c4b9c676edda02ecddd4333fef'/>
<id>d1424f7f7e0903c4b9c676edda02ecddd4333fef</id>
<content type='text'>
This reverts commit a1c4cab11d613d7df037a81a770ee44a23a2e9be.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit a1c4cab11d613d7df037a81a770ee44a23a2e9be.
</pre>
</div>
</content>
</entry>
<entry>
<title>check other IO#close calls</title>
<updated>2021-10-25T08:38:23+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-10-25T08:34:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a1c4cab11d613d7df037a81a770ee44a23a2e9be'/>
<id>a1c4cab11d613d7df037a81a770ee44a23a2e9be</id>
<content type='text'>
http://ci.rvm.jp/results/trunk@ruby-iga/3690333
&gt; tool/lib/test/unit/parallel.rb:68:in `close': Bad file descriptor (Errno::EBADF)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
http://ci.rvm.jp/results/trunk@ruby-iga/3690333
&gt; tool/lib/test/unit/parallel.rb:68:in `close': Bad file descriptor (Errno::EBADF)
</pre>
</div>
</content>
</entry>
</feed>
