Issue #16921 has been updated by jaruga (Jun Aruga).


Can we apply [the patch](https://bugs.ruby-lang.org/attachments/8500) mentioned at https://bugs.ruby-lang.org/issues/16492#note-11 to the following tests using `assert_in_out_err` in those too?

* TestProcess#test_status_quit
* TestRubyOptions#test_segv_test
* TestRubyOptions#test_segv_loaded_features
* TestRubyOptions#test_segv_setproctitle
* TestSignal#test_ignored_interrupt


----------------------------------------
Bug #16921: s390x: random test failures for timeout or segmentation fault
https://bugs.ruby-lang.org/issues/16921#change-86769

* Author: jaruga (Jun Aruga)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I observed the following error related to timeout or segmentation fault on Ruby 2.7.1 s390x in Fedora builds. The tests somtimes fail. It seems the s390x machine used in CI is slow. It's great if we can change the timeout casually if it essentially comes from the length of the timeout.

It might be related to #16492 .


```
  1) Failure:
Fiddle::TestFunction#test_nogvl_poll [/builddir/build/BUILD/ruby-2.7.1/test/fiddle/test_function.rb:95]:
slept amount of time.
Expected |200 - 714| (514) to be <= 180.
```

```
  2) Error:
TestProcess#test_status_quit:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
pid 2682640 killed by SIGKILL (signal 9)
|-
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:1446:in `block in test_status_quit'
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:37:in `block (2 levels) in with_tmpchdir'
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:36:in `chdir'
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:36:in `block in with_tmpchdir'
    /builddir/build/BUILD/ruby-2.7.1/lib/tmpdir.rb:89:in `mktmpdir'
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:34:in `with_tmpchdir'
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_process.rb:1445:in `test_status_quit'
```


```
  3) Error:
TestRubyOptions#test_segv_test:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
pid 2683275 killed by SIGABRT (signal 6) (core dumped)
```

```
  1) Error:
TestRubyOptions#test_segv_loaded_features:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
pid 2181948 killed by SIGKILL (signal 9)
|-
| -e:1: [BUG] Segmentation fault at 0x00214b3c000003e8
```

```
  2) Error:
TestRubyOptions#test_segv_setproctitle:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
pid 2181951 killed by SIGKILL (signal 9)
|-
| -e:1: [BUG] Segmentation fault at 0x00214b3f000003e8
```

```
  1) Error:
TestSignal#test_ignored_interrupt:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
pid 2032663 killed by SIGKILL (signal 9)
| 
    /builddir/build/BUILD/ruby-2.7.1/test/ruby/test_signal.rb:294:in `test_ignored_interrupt'
Finished tests in 564.613810s, 37.2130 tests/s, 4826.1873 assertions/s.
```





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>