pulumi/pkg/backend
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
..
display Show the count of unchanged resources (#17257) 2024-09-17 08:41:53 +00:00
diy state move: show full set of delete commands when writing source stack fails (#17205) 2024-09-09 16:33:07 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Use AI settings from CreateUpdate to determine if Copilot is enabled (#17235) 2024-09-12 18:01:28 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Merge ESC Projects feature branch (#17226) 2024-09-10 23:08:09 +00:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
inmemoryPersister.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
login_manager.go Add LoginManager to backend package (#17199) 2024-09-10 09:04:49 +00:00
mock.go Merge ESC Projects feature branch (#17226) 2024-09-10 23:08:09 +00:00
policypack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
query.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
snapshot.go [snapshot] Elide writes for RRO with no changes (#15976) 2024-04-18 22:09:08 +00:00
snapshot_test.go Remove `Step.Apply`'s `preview` parameter (#16367) 2024-06-14 10:19:13 +00:00
stack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00