"preview" and "up" commands always show unchanged resources without an option to disable that
Hello!
- 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)
Issue details
The actions output is quite spammy if you have many resources in the stack, because all of them are shown in the output. It would be useful to have an option to match the behaviour to the usual "pulumi preview" command, which only shows the changes.
Steps to reproduce
- Use the actions with many resources
- We've got 200 resources and it's hard to understand what's actually changing.
Expected: compact output Actual: spammy output
Extra details
I tried to figure it out myself, and it seems like:
- Actions use pulumi automation SDK, which itself uses the Pulumi CLI.
- Pulumi CLI always shows spammy output in non-interactive mode.
- Interactive mode is determined here https://github.com/pulumi/pulumi/blob/4da051a79966673f58d8ca955d69e72a89a71aec/sdk/go/common/util/cmdutil/console.go#L48
- My thinking was to try and make it "interactive" with "--yes" flag/parameter passed. Should theoretically work with
PULUMI_DISABLE_CI_DETECTION=true PULUMI_SKIP_CONFIRMATIONS=true pulumi previewin Actions, right? - However, the SDK pipes Pulumi CLI output (checked with https://github.com/pulumi/pulumi/blob/2f433d64b73f270b4d56ccb7b566dc14d0d41d2b/sdk/python/lib/pulumi/automation/_cmd.py#L52 , presumably SDKs for other languages do the same) so it won't even work as per https://github.com/pulumi/pulumi/blob/4da051a79966673f58d8ca955d69e72a89a71aec/sdk/go/common/util/cmdutil/console.go#L62
Do either the diff (which will affect output) or comment-on-pr (which will post to your PR) options provide what you need here?
Thank you, the diff option did make it better! When I was reading the docs it didn't seem to give me less output with diff enabled.
comment-on-pr was already enabled, but was still hard to parse through ~200 lines.
Still, would be nice to have an option to have --show-sames disabled.