pulumi/pkg/backend/diy
Thomas Gummerer cd9d1603ba
Fix race condition when listing stacks (#15931)
When listing stacks, we currently try to get all the stacks from the
backend, and then get the checkpoint to for each stack to show the
summary.

However there's a race between listing the stacks and getting the
checkpoints, so the checkpoint may be missing by the time we get to that
part of the code.

Unfortunately the errors we're getting form getCheckpoint are not
structured, so we can't tell if we got a 404 from the cloud here, so the
next best option we have is re-checking whether the stack still exists.

This is another attempt at fixing
https://github.com/pulumi/pulumi/issues/15658.
2024-04-15 11:25:20 +00:00
..
backend.go Fix race condition when listing stacks (#15931) 2024-04-15 11:25:20 +00:00
backend_legacy_test.go Lift context parameter to SerializeDeployment/Resource/Operations/Properties (#15929) 2024-04-15 07:45:46 +00:00
backend_test.go Lift context parameter to SerializeDeployment/Resource/Operations/Properties (#15929) 2024-04-15 07:45:46 +00:00
bucket.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
bucket_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
doc.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
lock.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
snapshot.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
stack.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
state.go Always use the snapshot secret manager (#15768) 2024-03-25 10:30:14 +00:00
store.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
store_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00