grosser / parallel_tests

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
3.38k stars 494 forks source link

jruby support - jdbc issue? #783

Open sorenessen opened 3 years ago

sorenessen commented 3 years ago

I've been trying to get this working for a while now and can't seem to figure out what the deal activerecord-jdbcmysql-adaptor is with this gem.

After installing the parallel_tests gem and configuring the database.yml and then running rake parallel:create we receive an output like:

You have requested:
  activerecord-jdbcmysql-adapter ~> 52.6

The bundle currently has activerecord-jdbcmysql-adapter locked at 52.6.
Try running `bundle update activerecord-jdbcmysql-adapter`

If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
Run `bundle install` to install missing gems.

Changing versions or following the output instructions always yields the same result.

grosser commented 3 years ago

same with bundle exec rake parallel:create ?

sorenessen commented 3 years ago

Yeah, same exact output as above with bundle exec rake parallel:create.

sorenessen commented 3 years ago

Do you think it's a compatibility problem with the version of activerecord-jdbcmysql-adapter?

grosser commented 3 years ago

yeah, no idea ... I would guess it changes ruby versions during the execution of the command ... maybe print RUBY_VERSION and ENV['BUNDLE_GEMFILE'] from inside the Gemfile to debug ... something weird is going on 😞