pulumi/pkg/backend/filestate
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
..
backend.go [backend/filestate] Allow preview on locked stack (#8642) 2021-12-29 08:28:15 -08:00
backend_test.go [backend/filestate] Don't unwrap go-cloud errors (#8455) 2021-11-19 12:21:37 -08:00
bucket.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
bucket_test.go Fix 'pulumi stack ls' on Windows (#4094) 2020-03-18 13:57:25 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
gcpauth.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
lock.go Always lock in filestate backends, previously feature-flagged (#8565) 2021-12-09 09:51:33 -05:00
snapshot.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
stack.go [backend/filestate] Allow `pulumi stack ls` to see all stacks regardless of passphrase (#7660) 2021-07-27 18:37:25 -07:00
state.go [backend/filestate] Don't unwrap go-cloud errors (#8455) 2021-11-19 12:21:37 -08:00