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

Fix a hang in nodejs remote components when an error is thrown within an apply #7365

Merged
merged 4 commits into from
Jun 26, 2021

Conversation

EvanBoyle
Copy link
Contributor

Description

The uncaught handler wasn't terminating the outstanding gRPC request causing a hang. This change adds/removes an uncaught handler around constructImpl calls that bubbles the uncaught error back via the gRPC callback.

Fixes # #6991

Checklist

  • I have added tests that prove my fix is effective or that my feature works

Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 1024 to 1026
if runtime.GOOS == WindowsOS {
t.Skip("Temporarily skipping test on Windows")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we try running it on Windows?

You'll need to update build.proj like:

pulumi/build.proj

Lines 283 to 286 in 634e97c

<Exec Command="yarn install"
WorkingDirectory="$(TestsDirectory)\integration\construct_component_unknown\testcomponent" />
<Exec Command="yarn link @pulumi/pulumi"
WorkingDirectory="$(TestsDirectory)\integration\construct_component_unknown\testcomponent" />

and

<Exec Command="yarn run tsc" WorkingDirectory="$(TestsDirectory)\integration\construct_component_unknown\testcomponent" />

sdk/nodejs/provider/server.ts Outdated Show resolved Hide resolved
@EvanBoyle
Copy link
Contributor Author

Flakey codegen test is unrelated. Merging.

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.

None yet

2 participants