Skip a couple of Ractor tests

Koichi plans to rework Ractor implementation to address these failures.
He agreed to skip flaky Ractor tests for now.
This commit is contained in:
Takashi Kokubun 2022-12-02 10:18:49 -08:00
parent 1015e69d37
commit 85f041c0c5
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -284,7 +284,8 @@ assert_equal 30.times.map { 'ok' }.to_s, %q{
test i
}
} unless ENV['RUN_OPTS'] =~ /--mjit-call-threshold=5/ || # This always fails with --mjit-wait --mjit-call-threshold=5
(ENV.key?('TRAVIS') && ENV['TRAVIS_CPU_ARCH'] == 'arm64') # https://bugs.ruby-lang.org/issues/17878
(ENV.key?('TRAVIS') && ENV['TRAVIS_CPU_ARCH'] == 'arm64') || # https://bugs.ruby-lang.org/issues/17878
true # too flaky everywhere http://ci.rvm.jp/results/trunk@ruby-sp1/4321096
# Exception for empty select
assert_match /specify at least one ractor/, %q{
@ -479,6 +480,7 @@ assert_equal 'ok', %q{
}
# multiple Ractors can receive (wait) from one Ractor
yjit_enabled = ENV.key?('RUBY_YJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('yjit')
assert_equal '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]', %q{
pipe = Ractor.new do
loop do
@ -501,7 +503,7 @@ assert_equal '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]', %q{
rs.delete r
n
}.sort
}
} unless yjit_enabled # flaky with YJIT https://github.com/ruby/ruby/actions/runs/3603398545/jobs/6071549328#step:18:33
# Ractor.select also support multiple take, receive and yield
assert_equal '[true, true, true]', %q{