From efbd6eb2d6972428412246e7416db5fcc7b95398 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 02:05:26 +0000 Subject: [PATCH 1/2] Initial plan From 36e16b8b8f58bbd2cc8391cd2d1a4e5514e96379 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 02:13:46 +0000 Subject: [PATCH 2/2] Fix flaky test by waiting for orchestration to start before checking status Co-authored-by: YunchuWang <12449837+YunchuWang@users.noreply.github.com> --- .../GrpcDurableTaskClientIntegrationTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Grpc.IntegrationTests/GrpcDurableTaskClientIntegrationTests.cs b/test/Grpc.IntegrationTests/GrpcDurableTaskClientIntegrationTests.cs index 18892f1a..ae0a1516 100644 --- a/test/Grpc.IntegrationTests/GrpcDurableTaskClientIntegrationTests.cs +++ b/test/Grpc.IntegrationTests/GrpcDurableTaskClientIntegrationTests.cs @@ -420,8 +420,11 @@ public async Task ScheduleNewOrchestrationInstance_WithDedupeStatuses_AllowsCrea OrchestrationRuntimeStatus.Failed)); createdInstanceId.Should().Be(instanceId); + + // Wait for the instance to start before checking status + await server.Client.WaitForInstanceStartAsync(instanceId, default); - // Verify the instance was created + // Verify the instance was created and is running OrchestrationMetadata? metadata = await server.Client.GetInstanceAsync(instanceId, false); metadata.Should().NotBeNull(); metadata!.RuntimeStatus.Should().Be(OrchestrationRuntimeStatus.Running);