pulumi/pkg/backend/display
Will Jones 5da8772dbf
Show the count of unchanged resources (#17257)
The Pulumi CLI does not show details of unchanged resources by default,
since generally it is expected that users only care about what *will*
change when they run their Pulumi program. If the number of unchanged
resources is large, or if no resources have changed, the CLI may spend
long periods of time displaying nothing, or appearing to have hung. The
`--show-sames` argument instructs the CLI to show unchanged resources,
but if the number is large, then this can result in an overly noisy
display, which is not desirable either.

This commit adapts the work of #15975 to display a count of unchanged
resources when `--show-sames` is not enabled. In doing so we can
indicate to the user that progress is being made without introducing
noise or clutter. When the operation is complete, the count is hidden
and replaced with the final summary, which includes the figure as well
as other statistics (such as the number of resources that will change,
and so on). In order to avoid double counting (which appeared to affect
the work in #15975), this commit uses a set keyed by URNs rather than an
`int`.

Closes #15975

Co-authored-by: Pat Gavlin <pat@pulumi.com>
2024-09-17 08:41:53 +00:00
..
internal/terminal Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
testdata Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
wasm [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
diff.go Use events to report downloads as system messages (#17019) 2024-09-03 12:12:04 +00:00
diff_test.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
display.go Include all engine events in the event log (#17101) 2024-08-30 10:31:19 +00:00
display_test.go Include all engine events in the event log (#17101) 2024-08-30 10:31:19 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
events.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
events_test.go Don't omit an empty detailedDiff (#15213) 2024-01-23 00:00:14 +00:00
json.go Fix deletes not being show in `refresh` when using json output (#16851) 2024-09-09 10:16:10 +00:00
jsonmessage.go Hide unnecessary rows in non-interactive mode (#17188) 2024-09-09 07:44:27 +00:00
object_diff.go Fix mangled diffs of strings containing url-encoded chars (#16147) 2024-05-08 08:23:40 +00:00
object_diff_test.go Fix a panic in diff display when parsing YAML strings (#14710) 2023-12-02 01:24:13 +00:00
options.go Export a helper for rendering progress to a "simple" terminal (#17147) 2024-09-06 03:17:49 +00:00
progress.go Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
progress_bar.go Use events to report downloads as system messages (#17019) 2024-09-03 12:12:04 +00:00
progress_bar_test.go Use events to report downloads as system messages (#17019) 2024-09-03 12:12:04 +00:00
progress_test.go Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
query.go Use events to report downloads as system messages (#17019) 2024-09-03 12:12:04 +00:00
rows.go Display `[retain]` in all cases of delete retention (#16506) 2024-06-28 23:19:26 +00:00
sigint_unix.go [cli] Reimplement the interactive renderer 2022-11-07 22:02:44 -08:00
sigint_windows.go [cli] Reimplement the interactive renderer 2022-11-07 22:02:44 -08:00
tableutil.go [color] Use graphemes to measure strings. 2022-11-09 08:23:00 -08:00
tree.go Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
tree_test.go Clean up display rewinding and wrapping (#17007) 2024-08-19 15:30:48 +00:00
watch.go Use events to report downloads as system messages (#17019) 2024-09-03 12:12:04 +00:00