-
Notifications
You must be signed in to change notification settings - Fork 117
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
yaml-url test has broken names #478
Comments
I'm hitting this on v0.16.16 w/ no dev packages in my package-lock.json and not using transformation actions. I'm getting them on pulumi & AWS resources:
|
Looks like this shipped in almost all recent versions of
|
We return that string from toString/toJSON. But we don't log that message. Logging was only in 16.18 and was rolled back in 16.19. |
Reopening since someone is still calling toString |
removing my assignment. if you still get htis after moving to 16.19, i can help you determine who is doing this. One thing you can do to help track this down is change the code inside Output.toString to instead call |
Sorry, just to clarify my understanding:
|
It could be anyone doing this. including |
Do you think that @metral running into this problem is evidence that this happening somewhere other than pulumi-kubernetes? |
Can confirm that the message goes away after blowing away |
So I'm not quite sure how to fix it, but I tracked down the offending line by throwing an error in the Here's the stack trace:
And here's the offending code: pulumi-kubernetes/sdk/nodejs/provider.ts Lines 2196 to 2201 in 4511a47
(Line 2200) |
It sounds like this has found an actual bug. One, or both, of 'id' or 'namespace' are Outputs. So doing this concatenation is just not valid. If these can be Outputs, then this should be written as However, this will lead to further problems based on how 'id' is used below. |
Yeah, confirmed that |
Given the wider impact caused by fixing the buggy line, this won't be fixed in M21, but will be addressed early in M22 |
Does this affect users? Or is it specific to this test? Also - was this always broken (as in did it previously emit [object Object] in names? I can’t quite follow how it could have worked correctly before but not anymore. |
@lukehoban It looks like it's been broken since the feature was introduced last August, but it wasn't on the common path. #409 is caused by the same underlying bug. In the common case, |
This specific problem happens when you do something like programmatically set a value (such as namespace) in We should be able to fix this quickly, I'm guessing... |
At some point recently, the
yaml-url
test started printing the following errors for resource names:Full output looks like this:
Here's the code for the test that shows the error'd name output:
but removing the namespace transformation makes it work as expected
Here's the
package.json
:The text was updated successfully, but these errors were encountered: