pulumi/pkg/backend
Justin Van Patten fb7400507a [auto] Fix hangs for remote previews
Retrieving engine events programmatically through automation api would result in the operation seemingly hanging for remote operations. This was particularly noticeable during remote previews, because preview in automation API programmatically inspects engine events to look for the summary event (which it doesn't do for up/refresh/destroy).

The problem is due to the lack of a terminating `CancelEvent`. Normally, for local operations, the event stream is always terminated by a `CancelEvent` which is the sentinel value used to indicate the operation is complete. However, when sending events to the service, the `CancelEvent` is not sent. So when we're retrieving events from the service for a remote operation, we weren't getting back a `CancelEvent`.

The fix is to send a synthesized `CancelEvent` after all the events have been read from the service (similar to what is done by the `pulumi replay-events` hidden debug command).
2022-10-28 10:33:43 -07:00
..
display [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
filestate Assume configFile is non-empty 2022-10-07 14:03:20 +02:00
httpstate [auto] Fix hangs for remote previews 2022-10-28 10:33:43 -07: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 Remove an unneeded check for ExperimentalPlans 2022-10-07 14:08:22 +01:00
backend.go Rename ExperimentalPlans to GeneratePlan 2022-10-10 09:19:32 +01:00
backend_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08: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 Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01: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 Thread rename through tests 2022-09-15 16:36:27 -04:00
snapshot_test.go Update pkg/backend/snapshot_test.go 2022-09-15 17:13:33 -04:00
stack.go Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01:00
updates.go Send update metadata about update plans 2022-10-12 22:55:59 +01:00
watch.go fix: Allow watch on macOS on Apple Silicon (#10605) 2022-09-02 10:38:39 -07:00