Skip to content

Update Ruby::Box context-mode test for per-box RubyGems#1221

Draft
st0012 wants to merge 1 commit into
masterfrom
codex/update-ruby-box-context-test
Draft

Update Ruby::Box context-mode test for per-box RubyGems#1221
st0012 wants to merge 1 commit into
masterfrom
codex/update-ruby-box-context-test

Conversation

@st0012
Copy link
Copy Markdown
Member

@st0012 st0012 commented May 31, 2026

Problem

Ruby upstream changed Ruby::Box so RubyGems state is separated per box; the upstream commit says each box has its own RubyGems copy (ruby/ruby@276f0d9). On Ruby head, TestIRB::ContextModeTest#test_context_mode_ruby_box failed because inherited Bundler setup evaluated irb.gemspec inside the box and raised uninitialized constant Gem::Specification (failed job).

The latest-reline matrix resolves reline from ruby/reline when WITH_LATEST_RELINE=true (Gemfile). Clearing Bundler setup without preserving the resolved require path made the Ruby 4.0/head latest-reline jobs fail to load reline (4.0 job, head job).

Solution

Clear the inherited Bundler environment for this Ruby::Box integration test while passing the resolved reline require path through RUBYLIB (commit). This keeps the existing context-mode isolation assertions focused on Integer#+ behavior (commit).

@st0012 st0012 force-pushed the codex/update-ruby-box-context-test branch from d841e82 to 46084c7 Compare May 31, 2026 20:44
@st0012 st0012 force-pushed the codex/update-ruby-box-context-test branch from 46084c7 to 4c10b96 Compare May 31, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant