From 840494d1ae909999c1455b9b71cc5cb179f46e1c Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 15 Apr 2026 23:24:26 +0200 Subject: [PATCH 1/2] Exclude test causing transient timeouts on TruffleRuby --- test/date/test_date_parse.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb index 720624c0..8308f258 100644 --- a/test/date/test_date_parse.rb +++ b/test/date/test_date_parse.rb @@ -591,13 +591,7 @@ def test__parse_odd_offset end def test__parse_too_long_year - # Math.log10 does not support so big numbers like 10^100_000 on TruffleRuby - unless RUBY_ENGINE == 'truffleruby' - str = "Jan 1" + "0" * 100_000 - h = EnvUtil.timeout(3) {Date._parse(str, limit: 100_010)} - assert_equal(100_000, Math.log10(h[:year])) - assert_equal(1, h[:mon]) - end + omit 'transient' if RUBY_ENGINE == 'truffleruby' str = "Jan - 1" + "0" * 100_000 h = EnvUtil.timeout(3) {Date._parse(str, limit: 100_010)} From 5c6c5a7bbbbc113252adb3d8856bf5297d19b2ac Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 15 Apr 2026 23:26:14 +0200 Subject: [PATCH 2/2] Add truffleruby in CI --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a870d54c..f55c34ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ jobs: name: build (${{ matrix.ruby }} / ${{ matrix.os }}) needs: ruby-versions strategy: + fail-fast: false matrix: ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ ubuntu-latest, macos-latest, windows-latest ] @@ -29,6 +30,8 @@ jobs: os: windows-latest - ruby: mswin os: windows-2022 + - ruby: truffleruby + os: ubuntu-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6