From 092cd52a834353a1ae4b07814c8b1dca6c3a32b7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 27 Jan 2022 20:15:43 +0100 Subject: [PATCH 1/2] Use the bundler shipped with ruby for non-MRI * Should workaround https://github.com/oracle/truffleruby/issues/2586 --- .github/workflows/non_mri.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/non_mri.yml b/.github/workflows/non_mri.yml index 693cac15b5..8b266b826d 100644 --- a/.github/workflows/non_mri.yml +++ b/.github/workflows/non_mri.yml @@ -45,6 +45,9 @@ jobs: apt-get: ragel brew: ragel mingw: _upgrade_ openssl ragel + # Use the bundler shipped with that ruby, + # temporary workaround for https://github.com/oracle/truffleruby/issues/2586 + bundler: none bundler-cache: true timeout-minutes: 10 From aa8df1254aa1f8587f4c6ae72429a47a932c94d9 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 27 Jan 2022 21:26:17 +0100 Subject: [PATCH 2/2] Make the test_lowlevel_error_message test more reliable --- test/test_puma_server.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_puma_server.rb b/test/test_puma_server.rb index bfa2b977e3..1856a29788 100644 --- a/test/test_puma_server.rb +++ b/test/test_puma_server.rb @@ -349,6 +349,11 @@ def test_lowlevel_error_message @server = Puma::Server.new @app, @events, {:force_shutdown_after => 2} server_run do + if TestSkips::TRUFFLE + # SystemStackError is too brittle, use something more reliable + raise Exception, "error" + end + require 'json' # will raise fatal: machine stack overflow in critical region