Regression in Pulumi v3.149.0: NullReferenceException in TestDotnet_Guestbook
#456
Labels
impact/regression
Something that used to work, but is now broken
kind/bug
Some behavior is incorrect or out of spec
language/dotnet
p1
A bug severe enough to be the next item assigned to an engineer
resolution/fixed
This issue was fixed
Milestone
What happened?
When testing
TestDotnet_Guestbook
in pulumi/pulumi-kubernetes using Pulumi versionsv3.149.0
andv3.150.0,
previously working tests began failing with aNullReferenceException
.Error Output:
The following error occurs during pulumi preview:
The issue appears to originate from the following line in the Pulumi program:
Guestbook.cs#L73.
Switching from
Labels =redisLeaderDeployment.Metadata.Apply(metadata => metadata.Labels)
to using a concrete object,Labels = redisMasterLabels
, allows the Pulumi program to successfully run.It appears to be potentially a bug in the way inputs/outputs are being handled.
Example
Use the sample program in: https://github.com/pulumi/examples/blob/master/kubernetes-cs-guestbook/simple/Guestbook.cs
(Note, the example here, and the test program use in pulumi-kubernetes'
TestDotnet_Guestbook
are identical)Example failing test run: https://github.com/pulumi/pulumi-kubernetes/actions/runs/13210581683/job/36883489034
This is the exact line that triggers the error: https://github.com/pulumi/examples/blob/15391fd17ef276219d810a4308c96a78b5dbd29e/kubernetes-cs-guestbook/simple/Guestbook.cs#L73
Output of
pulumi about
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: