classifier-reborn icon indicating copy to clipboard operation
classifier-reborn copied to clipboard

[JRuby] Tests fail with jar-dependencies version mismatch

Open mkasberg opened this issue 1 year ago • 0 comments

Our JRuby tests are failing with this error:

Gem::LoadError: You have already activated jar-dependencies 0.4.1, but your Gemfile requires jar-dependencies 0.4.2. Since jar-dependencies is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports jar-dependencies as a default gem.

Triggered by this command:

bundle exec ruby -Ilib:test -I/home/runner/.rubies/jruby-9.3.4.0/lib/ruby/gems/shared/gems/rake-12.3.3/lib /home/runner/.rubies/jruby-9.3.4.0/lib/ruby/gems/shared/gems/rake-12.3.3/lib/rake/rake_test_loader.rb ./test/backends/backend_memory_test.rb ./test/backends/backend_redis_test.rb ./test/bayes/bayesian_integration_test.rb ./test/bayes/bayesian_memory_test.rb ./test/bayes/bayesian_redis_test.rb ./test/extensions/hasher_test.rb ./test/extensions/matrix_test.rb ./test/extensions/zero_vector_test.rb ./test/lsi/lsi_test.rb ./test/lsi/word_list_test.rb

Though I suspect any bundle command with the BUNDLE_GEMFILE: Gemfile-jruby env variable set would cause this.

Looks to be possibly related to this issue: https://github.com/jruby/jruby/issues/7262

I'm not sure what the right solution is yet but JRuby tests on GitHub Actions will fail in the mean time...

mkasberg avatar Aug 30 '22 01:08 mkasberg