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

[sdk] Wait on remote component dependencies #7541

Merged
merged 7 commits into from
Jul 16, 2021
Merged

Conversation

lukehoban
Copy link
Member

@lukehoban lukehoban commented Jul 15, 2021

When a resource dependsOn a remote component, we were not correctly waiting on it, because we were skipping over waiting on components, and only waiting on their custom resource children. For remote components, we do not know the children, but waiting on the remote component will always wait on all children.

This fixes the Node.js and .NET SDKs which both contain this approach to collecting transitive dependencies. The Go and Python SDKs use a different approach which did not have this bug. #7542 is tracking aligning the implementations as a follow-up.

Fixes #7540.

When a resource `dependsOn` a remote component, we were not correctly waiting on it, because we were skipping over waiting on comoponents, and only waiting on their custom resource children.  For remote components, we do not know the children, but waiting on the remote component will always wait on all children.

Fixes #7540
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Mike Metral <1112768+metral@users.noreply.github.com>
@lukehoban lukehoban changed the title [sdk/nodejs] Wait on remote componet dependencies [sdk/nodejs] Wait on remote component dependencies Jul 15, 2021
@lukehoban lukehoban requested a review from pgavlin July 16, 2021 00:07
sdk/nodejs/runtime/resource.ts Outdated Show resolved Hide resolved
@lukehoban lukehoban changed the title [sdk/nodejs] Wait on remote component dependencies [sdk] Wait on remote component dependencies Jul 16, 2021
There were baseline differences here (which are now fixed by this PR) - so this commit brings the tests into alignment across languages since we now expect to have the same behaviour in each.
@lukehoban lukehoban merged commit 0bcca38 into master Jul 16, 2021
@pulumi-bot pulumi-bot deleted the lukehoban/7540 branch July 16, 2021 23:11
abhinav pushed a commit to pulumi/pulumi-dotnet that referenced this pull request Jan 11, 2023
When a resource `dependsOn` a remote component, we were not correctly waiting on it, because we were skipping over waiting on comoponents, and only waiting on their custom resource children.  For remote components, we do not know the children, but waiting on the remote component will always wait on all children.

Co-authored-by: Mike Metral <1112768+metral@users.noreply.github.com>
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.

[sdk/nodejs] dependsOn of a multi-language component resource doesn't wait on the children of the component
3 participants