Skip to content
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

feat: use child_process for --no-threads #1790

Conversation

sheremet-va
Copy link
Member

Possible solution for running tests in child_process, if your tests are failing with v8 segfault.

@sheremet-va sheremet-va requested a review from antfu August 4, 2022 19:05
@sheremet-va
Copy link
Member Author

sheremet-va commented Aug 4, 2022

@antfu this is just an idea for now, tell me what you think 👀

Most of the things are not optimized. For example, flow (https://github.com/avajs/ava/blob/main/lib/ipc-flow-control.cjs) and serializaton/deserelization with v8 can be improved.

Also, these processes are firing up really slowly, haven't check why yet 👀

@sheremet-va
Copy link
Member Author

sheremet-va commented Aug 5, 2022

The fix for workers already exist for Node 18, the fix for Node 16 will land on August 16th (nodejs/node#44098).

It was also backported to v14, but wasn't released yet, I think.

I guess we can close this PR 😄

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.

1 participant