-
Notifications
You must be signed in to change notification settings - Fork 469
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: run in both a child process and a worker thread #738
test: run in both a child process and a worker thread #738
Conversation
The CI failure might be related to nodejs/node#33508? |
@gabrielschulhof With my test I wanted to try use SetInstanceData/GetInstanceData in different threads at the same time. But the test was crashed by working different addons at same thread (addon_data and objectwrap). You new testrunner starts each addon at a new process. |
@anfilat understood. In that case, that's probably a test case to add to Node.js.core. |
@legendecas I had to fix the threadsafe_function_sum test because it was quitting before the promise was resolved. Can you please take another look? |
82bfab0
to
25b5985
Compare
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.
LGTM
This needs nodejs/node#33508 to be backported to 14.x and 12.x before it can land. |
CI: We're getting some intermittent segfaults. |
Re: nodejs#730 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
The TSFN sum test was not waiting for all TSFN calls to complete before releasing the TSFN completely. The main thread must only release the TSFN and resolve the deferred if all calls have completed.
25b5985
to
16cc763
Compare
Rebased. |
CI:
|
nodejs/node#33508 has been backported to 14.5.0 and 12.18.3. @gabrielschulhof is there any other blocking issue for this one? |
} | ||
|
||
testModules.forEach((name) => { | ||
runOneChild(name, 'child'); |
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.
I'd worried that all the cases were started at the same time. Can we wait for one case to finish then start another one?
@gabrielschulhof did you mean to close this? |
Re: #730
Signed-off-by: @gabrielschulhof