From 6530ba337a3322c28ad270eb3d4a67389b4009e9 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 27 Jan 2022 22:07:05 +0100 Subject: [PATCH] Use the bundler shipped with ruby for non-MRI (#2811) * Should workaround https://github.com/oracle/truffleruby/issues/2586 * Make the test_lowlevel_error_message test more reliable --- .github/workflows/non_mri.yml | 3 +++ test/test_puma_server.rb | 5 +++++ 2 files changed, 8 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 diff --git a/test/test_puma_server.rb b/test/test_puma_server.rb index 298e44b439..24e8a06b3f 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