-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: split simple into io/simple, run in parallel #172
Conversation
I'm still +1 in a favor of calling it |
Here is a test split at the moment:
I think it could be closer to 50% |
d477aab
to
e610552
Compare
Support mixed parallel/sequential tests. Merge the `io` and `simple message` test runs together in a Makefile
e610552
to
8ed9bf1
Compare
In general, LGTM. A few thoughts:
|
@@ -90,7 +90,7 @@ distclean: | |||
-rm -rf node_modules | |||
|
|||
test: all | |||
$(PYTHON) tools/test.py --mode=release simple message | |||
$(PYTHON) tools/test.py --mode=release simple message io -J |
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.
Is -J
a typo? It's -j <jobs>
, isn't it?
New test running time will make you cry, guys:
|
@bnoordhuis: btw, |
Windows result:
IOW, only the message tests are being run. |
With a trivial fix (updating https://github.com/iojs/io.js/blob/165b70f146e163b82a09bb869463708516c08cf6/vcbuild.bat#L166):
That's great! I know it may not look so great to y'all spoiled unix users but that's 4 times faster than I'm used to. Two small issues turned up. 1: I got a lot of these:
That's the test runner failing to delete a temp file. It doesn't cause any issues but it'd be nice to find out why it happens and if we should silence the error. 2: test-tls-server-verify timed out That test used to time out a lot but I hadn't seen any failures recently. |
Nice, LGTM. Just curious, is there a reason you had to change tests that bind to a random port? |
LGTM. 👏 |
However... I do see a number of failures on the CI. |
@bnoordhuis: Gosh, this is what I was fighting all day, and basically the reason why I was changing tests from |
@bnoordhuis seems to be fixed by latest commit: https://jenkins-node-forward.nodesource.com/job/iojs+any-pr+multi/ |
LGTM, although I don't understand why changing from a random port to common.PORT would fix tests. |
@bnoordhuis it looks like we was running the CI job in a wrong way. Also, the random port thing may conflict with |
Reviewed-By: Ben Noordhuis <[email protected]> PR-URL: #172 Fix: #139
* Allow running tests in mixed parallel/sequential modes * Add -J flag for running tests on all available CPUs * Support TEST_THREAD_ID in test/common.js and use it for tmpDir and PORT * make: use -J flag Reviewed-By: Ben Noordhuis <[email protected]> PR-URL: #172 Fix: #139
Before:
After:
Fix #139