From 0a00ebe5f1385bca4f8a6c3635b04ce7cd98817e Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 16 Nov 2026 21:52:58 +0100 Subject: [PATCH] Add mutex_m to the shipit Gemfile shipit-engine depends on thread_safe 0.3.6 (via explicit-parameters -> virtus -> axiom-types / descendants_tracker). thread_safe picks its cache backend by RUBY_ENGINE and, for any engine other than ruby, jruby and rbx, uses SynchronizedCacheBackend which does `require 'mutex_m'`. mutex_m is no longer a default gem since Ruby 3.4 and thread_safe does not declare it as a dependency, so under Bundler the benchmark fails to load on e.g. TruffleRuby with "cannot load such file -- mutex_m". CRuby never hits this code path. Co-Authored-By: Claude Fable 5.2 --- benchmarks/shipit/Gemfile | 4 ++++ benchmarks/shipit/Gemfile.lock | 3 +++ 2 files changed, 7 insertions(+) diff --git a/benchmarks/shipit/Gemfile b/benchmarks/shipit/Gemfile index 70981b5c..3ffccf6d 100644 --- a/benchmarks/shipit/Gemfile +++ b/benchmarks/shipit/Gemfile @@ -12,3 +12,7 @@ gem "puma", ">= 5.0" gem "tzinfo-data", platforms: %i[ windows jruby ] gem "shipit-engine", ">= 0.40.0" + +# thread_safe (a dependency of shipit-engine via virtus) requires mutex_m on Ruby implementations other than CRuby, +# and does not declare it as a dependency. mutex_m is no longer a default gem since Ruby 3.4. +gem "mutex_m" diff --git a/benchmarks/shipit/Gemfile.lock b/benchmarks/shipit/Gemfile.lock index 772bbb07..bd8cf361 100644 --- a/benchmarks/shipit/Gemfile.lock +++ b/benchmarks/shipit/Gemfile.lock @@ -183,6 +183,7 @@ GEM multi_xml (0.8.1) bigdecimal (>= 3.1, < 5) multipart-post (2.4.1) + mutex_m (0.3.0) net-imap (0.6.3) date net-protocol @@ -378,6 +379,7 @@ PLATFORMS x86_64-linux DEPENDENCIES + mutex_m puma (>= 5.0) rails (~> 8.1) shipit-engine (>= 0.40.0) @@ -455,6 +457,7 @@ CHECKSUMS msgpack (1.8.0) sha256=e64ce0212000d016809f5048b48eb3a65ffb169db22238fb4b72472fecb2d732 multi_xml (0.8.1) sha256=addba0290bac34e9088bfe73dc4878530297a82a7bbd66cb44dcd0a4b86edf5a multipart-post (2.4.1) sha256=9872d03a8e552020ca096adadbf5e3cb1cd1cdd6acd3c161136b8a5737cdb4a8 + mutex_m (0.3.0) sha256=cfcb04ac16b69c4813777022fdceda24e9f798e48092a2b817eb4c0a782b0751 net-imap (0.6.3) sha256=9bab75f876596d09ee7bf911a291da478e0cd6badc54dfb82874855ccc82f2ad net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3 net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8