Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running rails parallel:spec[4] does not recognize the CPU count #941

Closed
Bandes opened this issue Mar 29, 2024 · 2 comments
Closed

Running rails parallel:spec[4] does not recognize the CPU count #941

Bandes opened this issue Mar 29, 2024 · 2 comments

Comments

@Bandes
Copy link

Bandes commented Mar 29, 2024

The documentation and the code itself seems to indicate that if I add a number after the task, it will change the number of CPUs used to run the suite, but when I try this, I get errors like so:

RAILS_ENV=test rake parallel:spec[4]
zsh: no matches found: parallel:spec[4]

Without the brackets, I do not get an error, but it also doesn't limit the CPU count

RAILS_ENV=test rake parallel:spec 4
10 processes for 476 specs, ~ 47 specs per process

I would have expected at least one of these to result in 4 processes for 476 specs, ~120 specs per process (or something around 120, I didn't do the math... :) )

@grosser
Copy link
Owner

grosser commented Mar 29, 2024

zsh syntax for rake is:

RAILS_ENV=test rake "parallel:spec[4]"

@grosser
Copy link
Owner

grosser commented Mar 29, 2024

updated the readme to use the ugly but compatible syntax so we can avoid these in the future #942

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

No branches or pull requests

2 participants