pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
23 stars 18 forks source link

automation: always read complete lines #245

Closed tgummerer closed 2 months ago

tgummerer commented 3 months ago

This is the equivalent as https://github.com/pulumi/pulumi/pull/15778 for dotnet. When tailing the event log we currently don't make sure that we read complete lines. Lines can be flushed in the middle by the OS while they are being written down, leading to incomplete JSON.

The JSON encoder always ends each line with a newline, so we can stitch the lines back together even if we occasionally read a partly written line.

tgummerer commented 2 months ago

Closing this for now, since I can't confirm this is an actual issue in dotnet.