-
Notifications
You must be signed in to change notification settings - Fork 7
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
Figure out why Travis shows failures for RBX #9
Comments
Still fails occasionally, even after #12. Still sad 😢 |
Can you post the Travis output when it fails? |
This is the most recent failure: https://travis-ci.org/bruceadams/pmap/jobs/89927576 I'm assuming that's a public web page. It doesn't always fail. When it does failure, the failure is consistent, including before your enhancements:
Since I just did a release of 1.1.0, there are several more jobs running now: https://travis-ci.org/bruceadams/pmap/builds (again, I'm assuming you can see that). |
I think the intent of the test is confused. The test that fails is Can we find a better way to test the default thread limit that doesn't depend on the performance of the system or implementation running it? All we really need to test is that the thread pool will receive a limit of 64 by default (aka, when we don't override it with an argument). A separate test could confirm that the thread pool adheres to the given limit. |
Several of the tests use The other tests leaning on This failing test is using 64 threads. Apparently starting 64 threads on Rubinius in a Travis-CI container can take a full second of real time. I find that surprisingly slow, but agree it is boiling down to performance, which is not the goal. Using a mock in this to see that the default pool size gets used gets us what we need and avoids this failure. Thanks for helping think this one through! |
Check out this commit as a potential solution: https://github.com/davidbiehl/pmap/commit/a54e1d75b7b1f79bb320cd4ffb5b12325922d698 I'm not quite sure if I like it ... but it ...
If you're OK with it, I'll create a PR from that branch and have Travis test it. |
Fixed via 5091a3e |
Yikes! A new surprise: https://travis-ci.org/bruceadams/pmap/jobs/92478348
|
I wonder if checking the ThreadGroup size is really an effective test ... I think checking sleep times is probably better |
The tests run fine on my local laptop on the same RBX version that is failing on Travis.
The text was updated successfully, but these errors were encountered: