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

Facing the error "The command line is too long." when cmd array is very long #980

Open
rajaramaniyer opened this issue Dec 26, 2024 · 2 comments

Comments

@rajaramaniyer
Copy link

I am on Windows and OS command length limit is 8191

I traced the line where it fails and it is here:

output = IO.popen(env, cmd, popen_options) do |io|

I cannot increase the number of process just to reduce the number of tests in each group. Machine resources are not enough to increase it anymore.

Can we not batch it and run?

Any help in this appreciated!

@grosser
Copy link
Owner

grosser commented Dec 26, 2024

batching should be possible,
just each_slice the input and then combine the output
... ideally make it automatic in windows and maybe a --max-files-per-test=100 so it is easy to reproduce in any other env

@rajaramaniyer
Copy link
Author

I just raised a pull request, suggesting my idea on batching. #981 please have a look.

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