-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Function serialization broken in NodeJS 19.2 #11488
Comments
Well would you look at that, Node.js 19.2.0 dropped yesterday 2022-11-29. I'm guessing that's changed some internal details, we better make sure we're testing on 19.2 and some older versions for this. |
Node 19.2 updated to a newer version of V8, and it looks like V8 has started to remove that "[[Scopes]]" property: v8/v8@735401e This stuff hasn't been touched for four years, and I'm not sure what we could do to lookup captured variables without going through [[Scopes]]. Given this is hard blocking everything I'm going to state that we do not support NodeJS 19.2 and higher for the time being. I'll update docs and CI quickly now to get pipelines moving, and then we need to work out if we can fix this. |
11490: Limit NodeJS to 19.1 r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Workaround for #11488 Co-authored-by: Fraser Waters <fraser@pulumi.com>
11490: Limit NodeJS to 19.1 r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Workaround for #11488 Co-authored-by: Fraser Waters <fraser@pulumi.com>
11490: Limit NodeJS to 19.1 r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Workaround for #11488 Co-authored-by: Fraser Waters <fraser@pulumi.com>
I believe we can take the p1 label off of this, as I've reached out to Chromium engineers and they will revert and cherry pick the revert into the next V8 release. See: https://bugs.chromium.org/p/chromium/issues/detail?id=1365858#c13 I will file an issue with Node requesting they ensure this is cherry-picked during the 19.x release cycle. |
The upstream issue should be resolved, with details in pulumi/pulumi#11932 and pulumi/pulumi#11488. This should be merged after pulumi/pulumi#11932 has merged in case there are any other issues with Node current.
11932: ci: Resume testing on Node current with 19.4 release r=justinvp a=AaronFriel Fixes #11488. Upstream PR to Node was merged and included in 19.4: https://github.com/nodejs/node/releases/tag/v19.4.0 Co-authored-by: Aaron Friel <mayreply@aaronfriel.com>
The upstream issue should be resolved, with details in pulumi/pulumi#11932 and pulumi/pulumi#11488. This should be merged after pulumi/pulumi#11932 has merged in case there are any other issues with Node current.
Update on issue
If you encounter this error, update to Node 19.4 or newer.
What happened?
When opening a new PR unrelated to the Node SDK, tests related to function serialization fail due to a missing internal property
[[Scopes]]
Steps to reproduce
Run Node SDK unit tests in CI
Expected Behavior
If no code changes have been made, no tests should fail.
Actual Behavior
Tests are failing
Output of
pulumi about
Not terribly relevant, but:
CLI
Version 3.46.2-dev.0
Go Version go1.19.2
Go Compiler gc
Host
OS ubuntu
Version 20.04
Arch x86_64
Backend
Name pulumi.com
URL https://app.pulumi.com/kpitzen
User kpitzen
Organizations kpitzen, EpicGames, pulumi
Additional context
Here is the original failing job:
https://github.com/pulumi/pulumi/actions/runs/3577856744/jobs/6017440059
And a no-op job with only a README change:
https://github.com/pulumi/pulumi/actions/runs/3578273088/jobs/6018337627
The failing branch of code ends here:
pulumi/sdk/nodejs/runtime/closure/v8_v11andHigher.ts
Line 59 in e43e98e
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: