Skip to content

Run bundle with the Ruby running the tests - #3099

Merged
soutaro merged 1 commit into
ruby:masterfrom
hsbt:claude/ruby-ci-job-failure-a4dfa1
Aug 26, 2026
Merged

Run bundle with the Ruby running the tests#3099
soutaro merged 1 commit into
ruby:masterfrom
hsbt:claude/ruby-ci-job-failure-a4dfa1

Conversation

@hsbt

@hsbt hsbt commented Aug 25, 2026

Copy link
Copy Markdown
Member

The bundle executable found in PATH does not always belong to the Ruby running the tests. In ruby/ruby CI the suite runs with a freshly built ruby and a RUBYLIB pointing at the build tree, so the bundle from the setup-ruby toolchain loads that tree's rbconfig.rb and aborts with ruby lib version (4.1.0) doesn't match executable version (3.1.7). That is why test_collection_install__nongem_stdlib_no_warning fails there, and why tool/rbs_skip_tests in ruby/ruby keeps growing with entries for RBS::CliTest.

Running bundle through RbConfig.ruby removes the mismatch. I reproduced the CI failure locally by putting another Ruby's bundle first in PATH while RUBYLIB pointed at the running Ruby, and with this change all 21 test_collection_* cases pass in that setup.

The `bundle` executable in `PATH` can belong to another Ruby installation.
In ruby/ruby CI the tests run with a freshly built `ruby` whose `RUBYLIB`
points at the build tree, so the `bundle` from the setup-ruby toolchain
aborts with `ruby lib version (4.1.0) doesn't match executable version
(3.1.7)`, failing `test_collection_install__nongem_stdlib_no_warning`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@soutaro
soutaro added this pull request to the merge queue Aug 26, 2026
Merged via the queue into ruby:master with commit 65887ec Aug 26, 2026
24 checks passed
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.

2 participants