-
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
Fix a hang in nodejs remote components when an error is thrown within an apply #7365
Conversation
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
if runtime.GOOS == WindowsOS { | ||
t.Skip("Temporarily skipping test on Windows") | ||
} |
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.
Can we try running it on Windows?
You'll need to update build.proj
like:
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
Line 298 in 634e97c
<Exec Command="yarn run tsc" WorkingDirectory="$(TestsDirectory)\integration\construct_component_unknown\testcomponent" /> |
tests/integration/construct_component_error_apply/nodejs/component.ts
Outdated
Show resolved
Hide resolved
tests/integration/construct_component_error_apply/nodejs/index.ts
Outdated
Show resolved
Hide resolved
tests/integration/construct_component_error_apply/testcomponent/index.ts
Show resolved
Hide resolved
Flakey codegen test is unrelated. Merging. |
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