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

Using component resources as parents hangs program #421

Open
jkerken opened this issue Dec 4, 2024 · 2 comments
Open

Using component resources as parents hangs program #421

jkerken opened this issue Dec 4, 2024 · 2 comments
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed

Comments

@jkerken
Copy link
Contributor

jkerken commented Dec 4, 2024

What happened?

We tried to parent a CustomResource to a Component Resource from a c# component provider

In typescript this construct worked out perfectly fine. In C# this causes the whole program to hang forever

Example

var componentResource = new ComponentResource("test", "name", new  ComponentResourceOptions(){});

new CustomResource("test", "name",null, new  CustomResourceOptions()
{
    Parent = componentResource
});

Output of pulumi about

latest pulumi runtime and langue runtime

Additional context

No response

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).

@jkerken jkerken added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Dec 4, 2024
@justinvp justinvp added awaiting-feedback Blocked on input from the author needs-repro Needs repro steps before it can be triaged or fixed and removed needs-triage Needs attention from the triage team labels Dec 9, 2024
@justinvp
Copy link
Member

justinvp commented Dec 9, 2024

Hi @jkerken, I tried to reproduce this using a component from a provider implemented in TypeScript and couldn't:

pulumi new aws-csharp
dotnet add package Pulumi.Awsx
dotnet add package Pulumi.Random
using Pulumi;
using Pulumi.Awsx.Ec2;
using Pulumi.Random;
using System.Collections.Generic;

return await Deployment.RunAsync(() =>
{
    var vpc = new Vpc("vpc");

    var pet = new RandomPet("pet", null, new CustomResourceOptions {
        Parent = vpc,
    });

    return new Dictionary<string, object?>{};
});

Vpc is a component resource implemented in TypeScript.

So it may be specific to component providers implemented in C#.

Could you provide a minimal project that reproduces the issue?

@jkerken
Copy link
Contributor Author

jkerken commented Dec 9, 2024

@justinvp Yes I will try to come up with a reproducer and let you know.

@pulumi-bot pulumi-bot added needs-triage Needs attention from the triage team and removed awaiting-feedback Blocked on input from the author labels Dec 9, 2024
@justinvp justinvp removed the needs-triage Needs attention from the triage team label Dec 9, 2024
@justinvp justinvp added the awaiting-feedback Blocked on input from the author label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec needs-repro Needs repro steps before it can be triaged or fixed
Projects
None yet
Development

No branches or pull requests

3 participants