-
Notifications
You must be signed in to change notification settings - Fork 48
Run tests on ruby 3.4.1 #448
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
ekohl
left a comment
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.
/opt/hostedtoolcache/Ruby/3.4.0/x64/lib/ruby/gems/3.4.0+1/gems/minitest-5.18.1/lib/minitest.rb:3: warning: mutex_m was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add mutex_m to your Gemfile or gemspec to silence this warning.
/opt/hostedtoolcache/Ruby/3.4.0/x64/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- mutex_m (LoadError)
But looking at theforeman/smart_proxy_salt#107 it also needs to add csv. With https://community.theforeman.org/t/smart-proxy-ci-now-running-on-ruby-3-4/43409 we're starting to run into this with various Smart Proxy plugins so it would be good to see it resolved.
|
I have had some issue with sqlite with this, let's see what ghas think |
ekohl
left a comment
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.
Overall 👍
.github/workflows/ruby.yml
Outdated
| - 2.7.0 | ||
| - 3.0.0 | ||
| - 3.2.0 | ||
| - 3.4.3 |
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.
Any reason you're not using 3.4?
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.
On ruby 3.4.0, I'm getting a lot of errors related to native extension loading
Dynflow::Executors::Parallel::Core::execution of run flow::suspended action::works when resumed after error#test_0001_anonymous:
Sequel::AdapterNotFound: LoadError: cannot load such file -- sqlite3/sqlite3_native
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'Kernel.require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sqlite3-2.6.0-x86_64-linux-gnu/lib/sqlite3.rb:6:in '<top (required)>'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'Kernel.require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sequel-5.93.0/lib/sequel/adapters/sqlite.rb:3:in '<top (required)>'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'Kernel.require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/3.4.0+1/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sequel-5.93.0/lib/sequel/database/connecting.rb:84:in 'Sequel::Database.load_adapter'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sequel-5.93.0/lib/sequel/database/connecting.rb:17:in 'Sequel::Database.adapter_class'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sequel-5.93.0/lib/sequel/database/connecting.rb:36:in 'Sequel::Database.connect'
/home/vagrant/.asdf/installs/ruby/3.4.0/lib/ruby/gems/3.4.0+1/gems/sequel-5.93.0/lib/sequel/core.rb:124:in 'Sequel::SequelMethods#connect'
/home/vagrant/dynflow/lib/dynflow/persistence_adapters/sequel.rb:312:in 'Dynflow::PersistenceAdapters::Sequel#initialize_db'
/home/vagrant/dynflow/lib/dynflow/persistence_adapters/sequel.rb:58:in 'Dynflow::PersistenceAdapters::Sequel#initialize'
/home/vagrant/dynflow/test/test_helper.rb:119:in 'Class#new'
/home/vagrant/dynflow/test/test_helper.rb:119:in 'WorldFactory.persistence_adapter'
/home/vagrant/dynflow/test/test_helper.rb:128:in 'WorldFactory.clean_coordinator_records'
/home/vagrant/dynflow/test/test_helper.rb:238:in 'Minitest::Test#setup'
This seems to be resolved in ruby-3.4.1, with the only change between .0 and .1 being version numbers changes. Guess this could cause ruby to look for native extensions in wrong place?
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.
3.4 should refer to the latest 3.4.x.
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.
Oh, til
Ruby 3.4.3
> {'a' => { 'b' => { 'c' => ['asdf'] } } }.inspect
"{\"a\" => {\"b\" => {\"c\" => [\"asdf\"]}}}"
Ruby 3.0.7
> "{\"a\"=>{\"b\"=>{\"c\"=>[\"asdf\"]}}}"
|
We're greenish, 3.0.0 seems to have gotten stuck on an unrelated thing and mysql in gha has been busted for ages. |
No description provided.