pulumi/pkg/backend
Luke Hoban 21037c0d48
[backend/filestate] Allow preview on locked stack (#8642)
The httpstate backend allows previews to proceed even while an update is in progress.  This is potentially problematic as the preview may be relative to a partial state of the stack, but ensures that previews will not be blocked on stacks that have long running updates (for example, to allow for concurrent PR jobs to preview changes).  This behaviour has been consistent ~forever for the httpstate backend.

In the filestate backend, we recently introduced locking, using a quite different (more coarse-grained) approach. As part of this implementation, preview was added to the list of operations that require an exclusive lock on the stack.

For consistency, we should loosen this so that preview behaves the same relative to state locking in the filestate and httpstate backends.

In the future, we may well want to tighten this up for both backends, with some additional user controls.  Also, when the update plans feature lands shortly, that will provide some additional helpful guarantees that a previous preview was not accidentally relative to a partial state.

Fixes #8609.
2021-12-29 08:28:15 -08:00
..
display Update error handling (#8406) 2021-11-12 18:37:17 -08:00
filestate [backend/filestate] Allow preview on locked stack (#8642) 2021-12-29 08:28:15 -08:00
httpstate [cli] Log Secret Decryption events when using 3rd party secrets + service (#8563) 2021-12-15 23:38:56 +02: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 Update error handling (#8406) 2021-11-12 18:37:17 -08:00
backend.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
backend_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Add a link to docs for the 409 Conflict error message (#3207) 2019-09-10 13:25:08 -07:00
mock.go Paginate backend list operations (#7600) 2021-07-29 13:37:17 -07:00
policypack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
query.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
snapshot.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
snapshot_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
stack.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
updates.go Add user agent to the CLI, Go and Nodejs Automation API SDKs (#6935) 2021-04-30 07:26:23 -07:00
watch.go Fix lint (#7915) 2021-09-07 16:41:17 -04:00
watch_darwin_arm64.go Fix watch command in macos arm64 builds (#7345) 2021-06-21 14:33:30 -07:00