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
Using parallel_split_test, seeing Errno::ENOENT: No such file or directory - /usr/sbin/sysctl #300
Comments
thx parallel/lib/parallel/processor_count.rb Line 16 in f456129
are you running on mac ? |
/cc @pedromartinez |
pedro@pedros-mac-mini ~ % /usr/sbin/sysctl -n hw.physicalcpu
6 |
I'll open a PR to revert. |
Note:
Even after my PR, parallel tests still returned 12 for processor_count. |
@pamgluss-slack can you try and find out why sysctl is missing for you ? |
it uses processor_count https://github.com/grosser/parallel_tests/blob/master/lib/parallel_tests.rb#L20 |
let's revert for now since it looks like we need a different fix |
I can get details for you guys in the morning PST, but I believe Jenkins runs Linux machines os.arch | amd64 |
@grosser I agree, it should probably use the same method for both libraries. Here are two different work projects. A smaller project: 6x:
12x:
and A larger project: 6x:
12x:
|
For reference: pedro@pedros-mac-mini % sysctl -n hw.physicalcpu
6
pedro@pedros-mac-mini % sysctl -n hw.ncpu
12 |
seems to be unclear, so I'd rather use 12 since changing parallel_tests
impacts more peoples workflow
…On Wed, Aug 25, 2021 at 7:44 AM Pedro Martinez ***@***.***> wrote:
@grosser <https://github.com/grosser> I agree, it should probably use the
same method for both libraries.
Here are two different work projects.
A smaller project:
6x:
426 examples, 0 failures
Took 50 seconds
12x:
426 examples, 0 failures
Took 59 seconds
and
A larger project:
6x:
8949 examples, 0 failures, 4 pendings
Took 406 seconds (6:46)
12x:
8949 examples, 0 failures, 4 pendings
Took 332 seconds (5:32)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACYZ4BNCV7ASWLC376HNTT6T6URANCNFSM5CX6GSNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Agreed! |
see grosser/parallel#300 it seems to be faster and it is the same as parallel_tests uses
done |
should be fixed in 1.21.0 |
see grosser/parallel#300 it seems to be faster and it is the same as parallel_tests uses
Error we're getting:
bundle exec parallel_split_test spec --tag ~unstable --tag ~skip_regression 17:29:50 bundler: failed to load command: parallel_split_test (/mnt/jenkinsslave/workspace/webapp-regression-api/tests/rspec-api-tests/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bin/parallel_split_test) 17:29:50 Errno::ENOENT: No such file or directory - /usr/sbin/sysctl
The time we started seeing this was 3:30 PM on our Jenkins builds. This lines up with the release of 1.20.2. A workaround is for us to use 1.20.1 but I wanted to bring this to yalls attention.
Ruby version 2.4.1
Rspec Version 3.9.0
The text was updated successfully, but these errors were encountered: