pulumi/sdk/dotnet/Pulumi/Deployment
Anton Tayanovskyy b0f51a6b2c
Fixes for C# concurrency bugs in 7492 (#7529)
* Reproduce the issue in a failing test

* Fix

* Tentative fix

* Update sdk/dotnet/Pulumi/Deployment/TaskMonitoringHelper.cs

Co-authored-by: Justin Van Patten <jvp@justinvp.com>

* Update sdk/dotnet/Pulumi/Deployment/TaskMonitoringHelper.cs

Co-authored-by: Justin Van Patten <jvp@justinvp.com>

* Update sdk/dotnet/Pulumi/Deployment/TaskMonitoringHelper.cs

Co-authored-by: Justin Van Patten <jvp@justinvp.com>

* Update sdk/dotnet/Pulumi/Deployment/Deployment.Runner.cs

Co-authored-by: Justin Van Patten <jvp@justinvp.com>

* Do not allocate TaskCompletionSource when not needed

* Update sdk/dotnet/Pulumi/Deployment/Deployment.Runner.cs

Co-authored-by: Josh Studt <32800478+orionstudt@users.noreply.github.com>

* Fix warning

* Cache delegate

* Simplify with named tuples

* Test early exception termination

* Test logging

* Remove the smelly method of suppressing engine exceptions

* Update sdk/dotnet/Pulumi/Deployment/TaskMonitoringHelper.cs

Co-authored-by: Josh Studt <32800478+orionstudt@users.noreply.github.com>

* Fix typo; check in xml docs

* Try CI again

* Add CHANGELOG entry

* Dedup exceptions before reporting

* Lock access to _exceptions list

* Fix typos

* Version of HandleExceptionsAsync that accepts N exceptions

* Do not aggregate exceptions prematurely

* Rename private members

* Formatting

* Summary markers

* Short-circuit return

* Stylistic fixes

* Strengthen test

* Check that we have only 1 exception

* Remove defensive clause about AggregateException from the test

* Simplify TerminatesEarly test

* Remove EmptyStack

* Notes on the regression nature of the WorksUnderStress test

* Remove race condition repro as it is a poor repro, impossible to trigger from user code

* Brace style

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
Co-authored-by: Josh Studt <32800478+orionstudt@users.noreply.github.com>
2021-07-22 12:49:14 -04:00
..
Deployment.cs Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00
Deployment.EnginerLogger.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment.Runner.cs Fixes for C# concurrency bugs in 7492 (#7529) 2021-07-22 12:49:14 -04:00
Deployment_Config.cs [sdk/dotnet] Warn when a secret config is read as a non-secret (#7079) 2021-05-18 15:01:57 -07:00
Deployment_Inline.cs [sdk/dotnet] - Fix swallowed nested exceptions with inline program so they correctly bubble to consumer (#7323) 2021-06-21 15:45:26 -04:00
Deployment_Invoke.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_Prepare.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_ReadOrRegisterResource.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_ReadResource.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_RegisterResource.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_RegisterResourceOutputs.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_RootResource.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
Deployment_Run.cs Fixes for C# concurrency bugs in 7492 (#7529) 2021-07-22 12:49:14 -04:00
Deployment_Serialization.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
DeploymentInstance.cs Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
GrpcEngine.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
GrpcMonitor.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
IDeployment.cs Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
IDeploymentInternal.cs Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00
IEngine.cs Unit testing in .NET (#3696) 2020-03-11 23:10:01 +01:00
IEngineLogger.cs Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00
IMonitor.cs Add support for serialized resource references. (#5041) 2020-10-27 10:12:12 -07:00
InlineDeploymentResult.cs Fix async await warnings (#7537) 2021-07-21 18:44:10 -04:00
InlineDeploymentSettings.cs [sdk/dotnet] - Fix swallowed nested exceptions with inline program so they correctly bubble to consumer (#7323) 2021-06-21 15:45:26 -04:00
InvokeOptions.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
IRunner.cs [sdk/dotnet] - Fix swallowed nested exceptions with inline program so they correctly bubble to consumer (#7323) 2021-06-21 15:45:26 -04:00
TaskMonitoringHelper.cs Fixes for C# concurrency bugs in 7492 (#7529) 2021-07-22 12:49:14 -04:00