-
Notifications
You must be signed in to change notification settings - Fork 30.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
node v9 rc breaks test suite of worker-farm #16322
Comments
/cc reviewers of the linked commit: @tflanagan @cjihrig @santigimeno @bnoordhuis @Trott @imyller |
It looks like worker farm is wrapping I think worker farm could improve its error handling there. The alternative is to revert the commit in core. |
It seems like an easy fix on worker-farm's side. Since it seems to want to suppress exceptions, it can attach a no-op 'error' event listener to the child process object. I don't think we should revert f2b01cb. It was an exception to the rule that run-time errors are emitted asynchronously and it's good it got fixed. Reverting reintroduces runaway recursion risk: child.on('error', (e) => child.send(e));
child.send('boom'); |
I can confirm that the patch submitted above also fixes Jest's tests (using rc.0) 🙂 |
Aside: Would have running |
Yes. I talked with @cpojer about this, and he is open to it (as there's a requirement maintainers are responsive). The only issue I see with that is that the jest repo requires yarn - it's a hard dependency (it uses yarn workspaces (https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/ & https://yarnpkg.com/lang/en/docs/workspaces/)). CITGM currently has a hard requirement that projects must be installable using There is nodejs/citgm#415, though |
@bnoordhuis anything we can do as consumers of worker-farm to work around this other than forking and publishing a version with your fix? |
I think it's just a case of getting Rod's attention, I know he's been pretty busy lately. cc/ @rvagg |
👍 sorry for the delay, all good now in 1.5.1 |
v9.0.0-pre
(f2f391e)Darwin local.finn.no 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Running node from current master breaks the test suite of
worker-farm
, and by extensionjest
as it usesworker-farm
for parallelisation, with the following stack trace:Reverting f2b01cb makes both
worker-farm
's andjest
's test suites pass.See #16293
https://github.com/rvagg/node-worker-farm
The text was updated successfully, but these errors were encountered: