Skip to content

Conversation

@adamruzicka
Copy link
Contributor

No description provided.

Copy link
Contributor

@ekohl ekohl left a 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.

@adamruzicka
Copy link
Contributor Author

I have had some issue with sqlite with this, let's see what ghas think

Copy link
Contributor

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall 👍

- 2.7.0
- 3.0.0
- 3.2.0
- 3.4.3
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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\"]}}}"
@adamruzicka adamruzicka changed the title Run tests on ruby 3.4.0 Run tests on ruby 3.4.1 Jun 2, 2025
@adamruzicka
Copy link
Contributor Author

We're greenish, 3.0.0 seems to have gotten stuck on an unrelated thing and mysql in gha has been busted for ages.

@adamruzicka adamruzicka merged commit dcfa414 into Dynflow:master Jun 3, 2025
6 of 8 checks passed
@adamruzicka adamruzicka deleted the ruby-3.4 branch June 3, 2025 08:19
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