-
Notifications
You must be signed in to change notification settings - Fork 156
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
Unit testing resources with dangling type refs fails in node #4585
Comments
Indeed, this is very unfortunate. Are some of the resources more important for your use case than other resources? Trying to see what our options are here, fixing the entire list necessitates breaking changes that need to wait until the v7, but some of the smaller ones can be possibly tidied up before v7 taking a minor break. Full list:
The remediation for #2565 we're looking at right now produces a side-by-side schema that has the references corrected, that does not fix the SDKs though (intentionally). Let me have a quick look at the repro to see if there's any other remediation ideas. |
As a workaround it should be possible to unit test in languages other than Node where the overlays are not present perhaps, like Python. |
From
Another workaround would be to use the string-passing forms instead of the overlay union types correct? |
@t0yv0 For my use cases with the MLCs we cannot switch the language as they're already written in node. For other users I feel like the language decision shouldn't be made based on this, but rather what they're most comfortable using. Changing the code to use the string passing forms is definitely a viable workaround. Having to make code changes to get tests to work is not really intuitive for users though. Especially because the error message doesn't hint at this being the issue at all. In terms of what dangling refs have the biggest impact, I'd say it's the |
Describe what happened
When unit testing with jest in node I'm getting failures for resources with dangling type refs:
The interesting bit is:
The provider currently has multiple resources with dangling refs, see: #2565.
One example is the
role
property of theaws.iam.RolePolicyAttachment
resource.Sample program
Log output
No response
Affected Resource(s)
No response
Output of
pulumi about
pulumi v3.134.1
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).
The text was updated successfully, but these errors were encountered: