diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d32c845b..b68335bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,9 +15,17 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '2.7', '3.0', '3.1', '3.2' ] + ruby: + - '2.7' + - '3.0' + - '3.1' + - '3.2' + - 'truffleruby' steps: - uses: actions/checkout@v2 + - name: Install deps + run: | + sudo apt-get install libsnappy-dev - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: diff --git a/.spin/packages.yml b/.spin/packages.yml new file mode 100644 index 00000000..675f6eb7 --- /dev/null +++ b/.spin/packages.yml @@ -0,0 +1 @@ +- libsnappy-dev diff --git a/dev.yml b/dev.yml new file mode 100644 index 00000000..6e976dea --- /dev/null +++ b/dev.yml @@ -0,0 +1,8 @@ +--- +# This file is for Shopify employees development environment. +# If you are an external contributor you don't have to bother with it. + +name: ci-queue + +up: + - snappy diff --git a/ruby/test/integration/grind_redis_test.rb b/ruby/test/integration/grind_redis_test.rb index e5ede7c0..700a9813 100644 --- a/ruby/test/integration/grind_redis_test.rb +++ b/ruby/test/integration/grind_redis_test.rb @@ -97,7 +97,7 @@ def test_grind_command_runs_tests def test_grind_max_time grind_count = 1000000 - timeout = RUBY_ENGINE == "truffleruby" ? 4 : 1 + timeout = RUBY_ENGINE == "truffleruby" ? 10 : 1 start = Process.clock_gettime(Process::CLOCK_MONOTONIC) _, err = capture_subprocess_io do diff --git a/ruby/test/integration/minitest_redis_test.rb b/ruby/test/integration/minitest_redis_test.rb index 3e29aa8b..46078415 100644 --- a/ruby/test/integration/minitest_redis_test.rb +++ b/ruby/test/integration/minitest_redis_test.rb @@ -520,7 +520,8 @@ def test_test_data_time_reporter .sort_by { |h| "#{h[:test_id]}##{h[:test_index]}" } .first - assert_in_delta start_time.to_i, failure[:test_start_timestamp], 5 + start_delta = RUBY_ENGINE == "truffleruby" ? 15 : 5 + assert_in_delta start_time.to_i, failure[:test_start_timestamp], start_delta, "start time" assert_in_delta end_time.to_i, failure[:test_finish_timestamp], 5 assert failure[:test_finish_timestamp] > failure[:test_start_timestamp] end