Skip to content

Commit da34f07

Browse files
authored
ci: add truffleruby (#194)
1 parent 9bc1d8a commit da34f07

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- {redis: '6.2', ruby: '3.0'}
3737
- {redis: '5.0', ruby: '2.7'}
3838
- {ruby: 'jruby'}
39+
- {ruby: 'truffleruby'}
3940
- {task: test_cluster_state, redis: '7.0', replica: '2', compose: compose.replica.yaml}
4041
- {task: test_cluster_state, redis: '6.2', replica: '2', compose: compose.replica.yaml}
4142
- {task: test_cluster_broken, redis: '7.0', restart: 'no'}

test/redis_client/test_cluster.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def test_call_once
5959
end
6060

6161
def test_blocking_call
62+
skip("FIXME: this case is buggy on #{RUBY_ENGINE}") if RUBY_ENGINE == 'truffleruby' # FIXME: buggy
63+
6264
assert_raises(ArgumentError) { @client.blocking_call(TEST_TIMEOUT_SEC) }
6365

6466
@client.call_v(%w[RPUSH foo hello])

test/test_concurrency.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def teardown
1717
end
1818

1919
def test_forking
20-
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby].include?(RUBY_ENGINE)
20+
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby truffleruby].include?(RUBY_ENGINE)
2121

2222
pids = Array.new(MAX_THREADS) do
2323
Process.fork do
@@ -36,7 +36,7 @@ def test_forking
3636
end
3737

3838
def test_forking_with_pipelining
39-
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby].include?(RUBY_ENGINE)
39+
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby truffleruby].include?(RUBY_ENGINE)
4040

4141
pids = Array.new(MAX_THREADS) do
4242
Process.fork do

0 commit comments

Comments
 (0)