Skip to content

Loading…

parallel functions are returning argument errors #129

Closed
javajax opened this Issue · 11 comments

3 participants

@javajax

whenever I run the commands create, prepare, or seed I get an argument error.
any suggestions

rake parallel:create
or
bundle exec parallel:create

the error is.
block in non_options': file not found: db:drop (ArgumentError)
and in the stack trace it is trying to look in ruby 1.9.1
/Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:146:in
map!'

@grosser
Owner

try bundle exec rake parallel:create

@grosser
Owner

if it still fails, use -t to get a full backtrace + post it here

@javajax

yeah i have root$ bundle exec rake

@javajax

the only difference is this output at the top
** Invoke parallel:create (first_time)
** Execute parallel:create

other then that there are 8 errors in a row saying all the same thing.

@grosser
Owner
  • please post the trace of 1 of these errors
  • see if rake db:create works or if it throws the same error
@javajax

rake db:create works.
here is a trace.

/Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:167:in block in non_options': file not found: db:create (ArgumentError)
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:146:in
map!'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:146:in non_options'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:207:in
non_options'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:52:in process_args'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/minitest/unit.rb:891:in
_run'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/minitest/unit.rb:884:in run'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:21:in
run'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:326:in block (2 levels) in autorun'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:27:in
run_once'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'

@grosser
Owner

that`s deep inside test-unit, something is wrong in your setup...
there is no sign of parallel_tests in this trace

@javajax

I noticed there was no parallel test in here but this is in create.

you can use create, prepare and seed and get errors.
but you can run tests and it appears to work.
however i am just trying to get rid of all the errors.

I don't think test-unit is in used in rake db:create

@aduffeck

I had the same problem and it was caused by this: thoughtbot/shoulda-context#4

@grosser
Owner

can you make this into a pull-request / is there something people that have this bug can do ?

@aduffeck

@grosser i think it's not a bug in parallel_tests but some other gem.

@jthorne are you using shouldy, too, by any chance?

@grosser grosser closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.