Repository navigation
Add mutex_m to the shipit Gemfile for non-CRuby implementations - #580
Merged
Merged
Conversation
Member
Author
|
As a note, I was surprised |
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 <noreply@anthropic.com>
eregon
force-pushed
the
shipit-mutex_m
branch
from
November 16, 2026 20:53
098237a to
0a00ebe
Compare
k0kubun
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
shipitbenchmark fails to load on Ruby implementations other than CRuby (found on TruffleRuby) with:Cause
Dependency chain:
shipit-engine->explicit-parameters->virtus->axiom-types/descendants_tracker->thread_safe0.3.6.thread_safe picks its cache backend by
RUBY_ENGINE. For any engine other thanruby,jrubyandrbxit usesSynchronizedCacheBackend, which doesrequire '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 it cannot be loaded.CRuby is unaffected because it never takes this code path (it uses a different cache backend that does not require mutex_m).
Fix
Add
mutex_mtobenchmarks/shipit/Gemfileand the corresponding entries tobenchmarks/shipit/Gemfile.lock(mutex_m 0.3.0, no dependencies).bundle lockproduces no further changes to the lockfile other than theBUNDLED WITHversion, which is left as is.Status on TruffleRuby
With this change the shipit benchmark gets further on TruffleRuby: it loads and serves requests. It does not make shipit pass there on its own, though:
ptylibrary (Implement the pty standard library truffleruby/truffleruby#4553).Generated by Claude Code