diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-01-09 17:43:47 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-01-09 17:43:47 -0800 |
commit | 9792d9e40f790e6deb18ead56a8befc9d5c4bc51 (patch) | |
tree | d523a67b59ef31fa77f4b55705af089c07c76293 | |
parent | df76c54fc251904c2eaf4cc9354ed8726336c289 (diff) | |
download | ruby-9792d9e40f790e6deb18ead56a8befc9d5c4bc51.tar.gz |
Revert "Re-enable test_ractor for YJIT"
This reverts commit 650a20a3e1205f47224a987676cdbad7d826d597.
Now that 3.2.0 is released, let's disable flaky tests. Koichi said he'll
rework Ractor implementation for this, and it has not been done yet.
-rw-r--r-- | bootstraptest/test_ractor.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index 67e66b03ee..e7103d975f 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -480,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 @@ -502,7 +503,8 @@ assert_equal '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]', %q{ rs.delete r n }.sort -} unless /mswin/ =~ RUBY_PLATFORM # randomly hangs on mswin https://github.com/ruby/ruby/actions/runs/3753871445/jobs/6377551069#step:20:131 +} unless /mswin/ =~ RUBY_PLATFORM || # randomly hangs on mswin https://github.com/ruby/ruby/actions/runs/3753871445/jobs/6377551069#step:20:131 + 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{ @@ -1501,7 +1503,7 @@ assert_equal "#{n}#{n}", %Q{ end end }.map{|r| r.take}.join -} +} unless yjit_enabled # flaky with YJIT https://github.com/ruby/ruby/actions/runs/3692339025/jobs/6251137785 # NameError assert_equal "ok", %q{ @@ -1542,7 +1544,7 @@ assert_equal "ok", %q{ 1_000.times { idle_worker, tmp_reporter = Ractor.select(*workers) } "ok" -} +} unless yjit_enabled # flaky with YJIT https://github.com/ruby/ruby/actions/runs/3575374374/jobs/6011846425 assert_equal "ok", %q{ def foo(*); ->{ super }; end |