-
Notifications
You must be signed in to change notification settings - Fork 31
Fix CI and ruby-lsp benchmark #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e40c457 to
98e8427
Compare
a98d945 to
325af28
Compare
55bb0c2 to
fc66b52
Compare
| # Benchmarks that need Bundler (e.g., railsbench) set up their own via use_gemfile. | ||
| # This is important when running tests under `bundle exec rake test`. | ||
| result = if defined?(Bundler) | ||
| Bundler.with_unbundled_env do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added here because if someone runs benchmark with bundle, like bundle exec ruby -I harness benchmarks/fib.rb, it should pass & not be affected by project-level bundle too.
After ruby/ruby#15825, `tsort` becomes a bundled gem and projects using it must declare it as a dependency. `rbs`, which is a dependency of `ruby-lsp`, only added `tsort` in its 4.0 releases. So this change bumps ruby-lsp's dependencies, specifically rbs, to 4.0.
- Add Gemfile with test dependencies (minitest,csv, gruff, etc.) - Pin minitest to version 5.x to avoid breaking changes introduced in minitest 6.x - Require minitest/mock in test_helper.rb for stub method - Update CI to use bundler-cache and bundle exec
fc66b52 to
1d18bb3
Compare
|
🙏 Thanks |
|
To link things together, this broke the |
Bump ruby-lsp dependencies to fix crash with Ruby master
After ruby/ruby#15825,
tsortbecomes a bundled gem and projects using it must declare it as a dependency.rbs, which is a dependency ofruby-lsp, only addedtsortin its 4.0 releases. So this change bumps ruby-lsp's dependencies, specifically rbs, to 4.0.Fix Ruby 4.0 compatibility issues