-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Concurrency limit #7770
Concurrency limit #7770
Conversation
Note this would close #6183 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Can we fix this for circus as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dope solution, if we make this configurable and default to Infinity can it go in a minor?
We pass https://github.com/facebook/jest/blob/3edccf64a6f46350d0e2688af79ae52a080ad9f4/packages/jest-jasmine2/src/index.js#L25-L31 |
Updated! I've added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing due to an outdated snapshot, could you update it?
Also, please update the docs to mention this opton
The new test is failing on node 6. 😞 |
The remaining fails look unrelated, right? |
Yup, we're having some issues with windows on CI currently |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The current implementation of
test.concurrent
makes it quite difficult to use since all the tests in a testsuite run concurrently, swamping the CPU (even worse when there's a lot of I/O).This PR implements a queue so that at most 5 tests ever run at the same time within the same testsuite. I'd like to implement an option for that, but I'm not too sure how to get the Jest options from within Jasmine.
Fixes #6183
Test plan
Added a test.