pulumi/pkg/resource
Will Jones 0bec028ad7
Support pruning snapshots (#17408)
An important precondition of Pulumi state snapshots is that there are no
*dangling references* -- that is, references to resources which do not
exist in the snapshot. Snapshots which have such references will yield
snapshot integrity errors when `Snapshot.VerifyIntegrity` is called.
This commit introduces the `Snapshot.Prune` method, which walks a
snapshot and removes dangling references. The snapshot is assumed to be
toplogically sorted and URN changes due to dangling parent references
are propagated appropriately. In combination with the recently added
`Topsort` method, this should set us in good stead for introducing a
`state repair` command to automatically clean up many kinds of invalid
snapshots.
2024-10-01 12:44:22 +00:00
..
analyzer Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
deploy Support pruning snapshots (#17408) 2024-10-01 12:44:22 +00:00
edit Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
graph Centralize resource state dependency traversal (#17320) 2024-09-23 08:37:34 +00:00
provider turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
stack Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
testdata ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00