m icon indicating copy to clipboard operation
m copied to clipboard

Issue with parallelize

Open jclusso opened this issue 3 years ago • 2 comments

If I run my test using m I get this error when I have parallelize(workers: :number_of_processors) in my test. If I run my test with bin/rails test I have no issues.

/Users/jarrett/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/drb/drb.rb:1795:in current_server': DRb::DRbServerNotFound (DRb::DRbServerNotFound)`

jclusso avatar Aug 09 '21 16:08 jclusso

Is this issue still happening?

zamith avatar Jun 01 '22 15:06 zamith

I just so happened to try to run a test through m today and it does still happen.

The test does run and reports status correctly. It is just noisy since it starts up too many workers.

You can get around it by setting PARALLEL_WORKERS=1 in your command line since that skips out on parallel workers completely.

I haven't tried using m to run an entire directory, so this problem might only really occur when running individual tests.

wheresrobert avatar Jun 02 '22 15:06 wheresrobert