pulumi/sdk
Fraser Waters 2943f35439
Fix race condition in reading EngineEvents from tailed logs (#9467)
* Fix race condition in reading EngineEvents from tailed logs

We we're seeing the odd test fail because preview returned that len(summaryEvents) was 0. This was because everything about this code is async and didn't do any synchronisation so it was pure luck that the file was read, the message was sent to the channel, and then the channel goroutine read the message and appened it to summaryEvents in time for the len check to pass.

Now we close off the file watcher and wait for the channels and goroutines to flush and signal done before checking the length of summaryEvents.

* Add to CHANGELOG

* lint
2022-04-25 17:26:01 +01:00
..
dotnet Add update plans to automation api (#9391) 2022-04-22 17:50:40 +01:00
go Fix race condition in reading EngineEvents from tailed logs (#9467) 2022-04-25 17:26:01 +01:00
nodejs Add update plans to automation api (#9391) 2022-04-22 17:50:40 +01:00
proto Allow attaching to running providers (#8979) 2022-04-19 12:41:18 +01:00
python Add update plans to automation api (#9391) 2022-04-22 17:50:40 +01:00
README.md Updating .NET references 2020-04-27 12:42:11 -07:00
go.mod Bump to github.com/gogo/protobuf@v1.3.2 (#9258) 2022-04-18 13:17:56 +03:00
go.sum Bump to github.com/gogo/protobuf@v1.3.2 (#9258) 2022-04-18 13:17:56 +03:00

README.md

Pulumi Language SDKs

This directory contains the Pulumi SDKs for all supported languages.

Please see the respective READMEs for information about installing and using these libraries:

The language providers work by implementing gRPC interfaces defined in proto/.