https://pulumi.com logo
Title
p

powerful-printer-57241

05/25/2021, 7:46 AM
We are using the Pulumi GitHub App together with the Pulumi GitHub Action to see the preview of the infrastructure changes as comments in our PRs. It works fine, but as a rather crucial omission, the comments do not display warnings that the
pulumi preview
command itself does. In particular, the PR comment shows a resource is going to be imported, but it doesn't tell that the import is going to fail. See the attached output of
pulumi preview
ran locally vs. the PR comment. Is there a way to display the warnings in the PR comments as well?
b

billowy-army-68599

05/25/2021, 3:35 PM
Could you open an issue for this? It looks like we just need to add support for it
c

colossal-beach-47527

05/25/2021, 10:48 PM
Yeah, definitely. IIRC, the reason we didn’t show the warnings in the GitHub App comments back in the day, was because at that time we weren’t serializing the engine events for the update. (So we didn’t actually have access to them…) But now we do and/or have ways of getting at those warnings. So definitely something we can fix soonish.
Filed https://github.com/pulumi/pulumi/issues/7138. Thank you for reporting this, @powerful-printer-57241. I’ll try to get this fixed ASAP.
p

powerful-printer-57241

05/26/2021, 6:27 AM
Thanks @colossal-beach-47527! I figured one could manually run
pulumi preview --json
, get the warnings and errors from the output and act upon that, but a native support will be so much better.