Skip to content

Conversation

@tikkss
Copy link
Contributor

@tikkss tikkss commented Dec 15, 2025

GitHub: GH-235, GH-346

On Windows, file descriptors 3 and above cannot be passed to child processes. So we use TCPSocket instead of IO.pipe.

GitHub: test-unitGH-235, test-unitGH-346

On Windows, file descriptors 3 and above cannot be passed to child
processes. So we use `TCPSocket` instead of `IO.pipe`.
@tikkss
Copy link
Contributor Author

tikkss commented Dec 15, 2025

Test results are correct as below.

3.4 on Windows:
475 tests, 1613 assertions, 0 failures, 0 errors, 0 pendings, 6 omissions, 0 notifications

3.4 on Windows + Process:
475 tests, 1613 assertions, 0 failures, 0 errors, 0 pendings, 6 omissions, 0 notifications

By the way, 3.4 on Windows + Process implementation is slow:

3.4 + Process:
Finished in 1.067083044 seconds.
475 tests, 1625 assertions, 0 failures, 0 errors, 0 pendings, 2 omissions, 0 notifications

3.4 on Windows + Process:
Finished in 6.236543 seconds.
475 tests, 1613 assertions, 0 failures, 0 errors, 0 pendings, 6 omissions, 0 notifications

3.4 on Windows:
Finished in 1.341669 seconds.
475 tests, 1613 assertions, 0 failures, 0 errors, 0 pendings, 6 omissions, 0 notifications

@kou
Copy link
Member

kou commented Dec 16, 2025

We can improve performance later.

@tikkss
Copy link
Contributor Author

tikkss commented Dec 16, 2025

We can improve performance later.

Thanks for saying that.

I think that communication between processes (not start TCP server and accept client) may be slow.

Because this always yields.

Co-authored-by: Sutou Kouhei <kou@clear-code.com>
@kou kou merged commit 2528070 into test-unit:master Dec 18, 2025
39 checks passed
@tikkss tikkss deleted the add-support-for-process-based-parallel-test-running-on-windows branch December 18, 2025 03:06
tikkss added a commit to tikkss/test-unit that referenced this pull request Jan 8, 2026
GitHub: follow up test-unitGH-348

This patch changes from sequential `spawn` and `accept` to batch them.
Because waiting for each worker process to start one by one was slow.
kou added a commit that referenced this pull request Jan 9, 2026
GitHub: follow up GH-348

This patch changes from sequential `spawn` and `accept` to batch them.
Because waiting for each worker process to start one by one was slow.

---------

Co-authored-by: Sutou Kouhei <kou@clear-code.com>
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

Successfully merging this pull request may close these issues.

2 participants