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

Advanced IPC deseralization may not be working in 3.10.0 #2535

Closed
niftylettuce opened this issue Jul 7, 2020 · 11 comments
Closed

Advanced IPC deseralization may not be working in 3.10.0 #2535

niftylettuce opened this issue Jul 7, 2020 · 11 comments

Comments

@niftylettuce
Copy link
Contributor

~/Projects/koa-better-error-handler master* 47s
❯ npm test

> koa-better-error-handler@4.0.3 test /Users/jack/Projects/koa-better-error-handler
> ava


⠧ internal/child_process/serialization.js:70
      yield deserializer.readValue();
                         ^

Error: Unable to deserialize cloned data.
    at parseChannelMessages (internal/child_process/serialization.js:70:26)
    at parseChannelMessages.next (<anonymous>)
    at Pipe.channel.onread (internal/child_process.js:566:18)
npm ERR! Test failed.  See above for more details.

From v3.8 to latest, something happened which causes this. If it was this big of a breaking change, then I would think this should have been a major semver bump to v4.0.

I am on node v12.18.0 and see that this was changed here in v3.9 it seems f06c506#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R10.

This should have definitely been a major semver bump... breaking latest Node LTS stable version is horrible.

@niftylettuce
Copy link
Contributor Author

ignore

@novemberborn novemberborn changed the title core breaking bug in latest version of ava *important* Advanced IPC deseralization may not be working in 3.10 Jul 7, 2020
@novemberborn
Copy link
Member

The same thing happened in this CI run: https://github.com/avajs/eslint-plugin-ava/runs/843031158?check_suite_focus=true

That ran 12.18.1. Let's keep this open and I'll pin it to see if others are running into the same issue.

The serialization change was introduced in 51fafed and it should detect based on the Node.js version… it's definitely not meant to be a breaking change!

@novemberborn novemberborn reopened this Jul 7, 2020
@novemberborn novemberborn pinned this issue Jul 7, 2020
@niftylettuce
Copy link
Contributor Author

Thanks, I thought I was crazy

@niftylettuce
Copy link
Contributor Author

Definitely happens as soon as I bump from v3.8 to v3.9 on Node v12.18.0

@novemberborn
Copy link
Member

Definitely happens as soon as I bump from v3.8 to v3.9 on Node v12.18.0

You mean 3.10 right?

What confuses me now is that our tests pass, yet AVA crashes for our eslint-plugin-ava tests.

@novemberborn
Copy link
Member

OK I'm seeing this sporadically with another package, which either hangs, runs fewer tests… or crashes. Will revert that change.

@niftylettuce
Copy link
Contributor Author

Correct, on v3.10 it is broken and has that error shared above.

@novemberborn novemberborn changed the title Advanced IPC deseralization may not be working in 3.10 Advanced IPC deseralization may not be working in 3.10.0 Jul 7, 2020
@novemberborn
Copy link
Member

3.10.1 is now available and should resolve this issue.

malept added a commit to electron/packager that referenced this issue Jul 10, 2020
3.10.0 contained a regression, see
avajs/ava#2535
@novemberborn novemberborn unpinned this issue Jul 27, 2020
@acchou
Copy link

acchou commented Aug 24, 2020

I think I'm seeing this with ava 3.12.0 on mac osx, using node v12.18.3:

internal/child_process/serialization.js:70
      yield deserializer.readValue();
                         ^

Error: Unable to deserialize cloned data.
    at parseChannelMessages (internal/child_process/serialization.js:70:26)
    at parseChannelMessages.next (<anonymous>)
    at Pipe.channel.onread (internal/child_process.js:566:18)

@novemberborn
Copy link
Member

Yes I re-enabled this with some workarounds. Clearly, this isn't something that can be worked around. Reverting…

@novemberborn
Copy link
Member

3.12.1 is now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants